OpenPisco.Optim.Criteria.Regionalization module#

OpenPisco.Optim.Criteria.Regionalization.CheckIntegrity()[source]#
OpenPisco.Optim.Criteria.Regionalization.GenerateConcatData(mesh: Mesh, dimensionality, dataValues)[source]#

Concatenate values for mesh with mixed elements :param mesh: mesh, self-explanatory :param dimensionality: integer, dimension of the computational support :param dataValues: np.array, elements local value (only one value per element) :return values: np.array, concatenated values :return numElemByType: ordered dict, number of each type of element by type of element :return idxByName: dict, local element indices by type of element

OpenPisco.Optim.Criteria.Regionalization.GetElemFilterRegion(mesh: Mesh, dimensionality, submethod, regionId, numberOfRegions, concatDataValues)[source]#
OpenPisco.Optim.Criteria.Regionalization.GetElemFilterRegionFromIndices(mesh, dimensionality, localIdsByElem)[source]#

Build the tags to be used from the region element indices :param mesh: mesh, self-explanatory :param dimensionality: integer, dimension of the computational support :param localIdsByElem: dict, local numerotation to the elements of the elements with respect to their type :param tagsPrefix: string, tags prefix to be used to compute the criteria-related value for the region of interest :return ff: ElementFilter, filter with suitable tags and dimension for a given region

OpenPisco.Optim.Criteria.Regionalization.GetGlobalIndicesInRegion(submethod, regionID, numRegion, concatValues)[source]#

Get the indices of the geometrical support depending on the values and the region ID. :param submethod: string, name of the submethod to be used for defining the region :param regionID: integer, id number of the region :param numRegion: integer, total number of regions expected :param concatValues: array, value for the geometrical support entities considered :return: array, global numerotation indices of the geometrical support entities part of the region regionID

OpenPisco.Optim.Criteria.Regionalization.GetLocalElemIndicesInRegion(submethod, regionId, numberOfRegions, concatDataValues, numElelmByType)[source]#

Assign the indices of the elements with respect to their type of elements for a given region :param submethod: string, name of the submethod to be used for defining the region :param regionID: integer, id number of the region :param numberOfRegions: integer, total number of regions expected :param concatValues: array, value for the geometrical support entities considered :param numElelmByType: ordered dict, number of each type of elements :return localElemIdByElemType: dict, local numerotation to the elements of the elements with respect to their type

OpenPisco.Optim.Criteria.Regionalization.Regionalization(criteria, submethod, params)[source]#

Decorator of criteria :param criteria: class, semi-infinite criteria class :param submethod: string, name of the submethod to be used for defining the region :param params: dict, parameters specific to the Regionalization method :return a semi-infinite criteria instance decorated by the regionalization

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

Bases: object

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