OpenPisco.Optim.Criteria.Regionalization module#

OpenPisco.Optim.Criteria.Regionalization.CheckIntegrity()[source]#
OpenPisco.Optim.Criteria.Regionalization.GenerateConcatData(mesh: Mesh, dimensionality: int, dataValues: np.ndarray) Tuple[np.ndarray, Dict, Dict][source]#

Concatenate values for mesh with mixed elements

Parameters
  • mesh (Mesh) – mesh

  • dimensionality (int) – dimension of the computational support

  • dataValues (np.ndarray) – elements local value (only one value per element)

Returns

concatenated values, number of each type of element by type of element, local element indices by type of element

Return type

Tuple[np.ndarray,Dict,Dict]

OpenPisco.Optim.Criteria.Regionalization.GetElemFilterRegion(mesh: Mesh, dimensionality: int, submethod: str, regionId: int, numberOfRegions: int, concatDataValues: np.ndarray) ElementFilter[source]#

Get element filter by region

Parameters
  • mesh (Mesh) – _description_

  • dimensionality (int) – dimension of the computational support

  • submethod (str) – name of the submethod to be used for defining the region

  • regionId (int) – id number of the region

  • numberOfRegions (int) – total number of regions expected

  • concatDataValues (np.ndarray) – elements local value (only one value per element)

Returns

element filter by region

Return type

ElementFilter

OpenPisco.Optim.Criteria.Regionalization.GetElemFilterRegionFromIndices(mesh: Mesh, dimensionality: int, localIdsByElem: Dict) ElementFilter[source]#

Build the tags to be used from the region element indices

Parameters
  • mesh (Mesh) – Mesh

  • dimensionality (int) – dimension of the computational support

  • localIdsByElem (Dict) – local numerotation to the elements of the elements with respect to their type

Returns

filter with suitable tags and dimension for a given region

Return type

ElementFilter

OpenPisco.Optim.Criteria.Regionalization.GetGlobalIndicesInRegion(submethod: str, regionID: int, numRegion: int, concatValues: np.ndarray) List[source]#

Get the sorted indices of the geometrical support depending on the values and the region ID.

Parameters
  • submethod (str) – name of the submethod to be used for defining the region

  • regionID (int) – id number of the region

  • numRegion (int) – total number of regions expected

  • concatValues (np.ndarray) – value for the geometrical support entities considered

Returns

sorted global numerotation indices of the geometrical support entities part of the region regionID

Return type

List

OpenPisco.Optim.Criteria.Regionalization.GetLocalElemIndicesInRegion(submethod: str, regionId: int, numberOfRegions: np.ndarray, concatDataValues: np.ndarray, numElelmByType: Dict) Dict[source]#

Assign the indices of the elements with respect to their type of elements for a given region

Parameters
  • submethod (str) – name of the submethod to be used for defining the region

  • regionId (int) – id number of the region

  • numberOfRegions (np.ndarray) – total number of regions expected

  • concatDataValues (np.ndarray) – value for the geometrical support entities considered

  • numElelmByType (Dict) – number of each type of elements

Returns

local element ids by element types

Return type

Dict

OpenPisco.Optim.Criteria.Regionalization.Regionalization(criteria: Type, submethod: str, params: Dict) Type[source]#

Decorator of criteria for regionalization feature

Parameters
  • criteria (Type) – semi-infinite criteria class

  • submethod (str) – name of the submethod to be used for defining the region

  • params (Dict) – parameters specific to the Regionalization method

Returns

semi-infinite criteria instance decorated by the regionalization

Return type

RegionalizedCriteria

class OpenPisco.Optim.Criteria.Regionalization.TestRegionsGeneration[source]#

Bases: object

test_GlobalIndicesAllRegions()[source]#
test_LocalIndicesAllRegions()[source]#
test_filtersAllRegion()[source]#