Enumerations | |
enum | AssignType { AssignType::cell, AssignType::pattern, AssignType::manual } |
Enum item for reporting id assign types. More... | |
Functions | |
std::vector< dof_id_type > | getCellwiseIntegerIDs (const std::vector< std::unique_ptr< libMesh::ReplicatedMesh >> &meshes, const std::vector< std::vector< unsigned int >> &pattern, const bool use_exclude_id, const std::vector< bool > &exclude_ids) |
assign IDs for each component in pattern in sequential order More... | |
std::vector< dof_id_type > | getPatternIntegerIDs (const std::vector< std::unique_ptr< libMesh::ReplicatedMesh >> &meshes, const std::vector< std::vector< unsigned int >> &pattern) |
assign IDs for each input component type More... | |
std::vector< dof_id_type > | getManualIntegerIDs (const std::vector< std::unique_ptr< libMesh::ReplicatedMesh >> &meshes, const std::vector< std::vector< unsigned int >> &pattern, const std::vector< std::vector< dof_id_type >> &id_pattern) |
assign IDs based on user-defined mapping defined in id_pattern More... | |
std::set< SubdomainID > | getCellBlockIDs (const std::vector< std::unique_ptr< libMesh::ReplicatedMesh >> &meshes, const std::vector< std::vector< unsigned int >> &pattern) |
get list of block IDs in input mesh cells More... | |
std::map< SubdomainID, unsigned int > | getDuckBlockIDs (const MeshBase &mesh, const bool has_assembly_boundary, const std::set< subdomain_id_type > background_blk_ids, const std::set< SubdomainID > &blks) |
get list of block IDs for the assembly duck regions More... | |
void | assignReportingIDs (MeshBase &mesh, const unsigned int extra_id_index, const ReportingIDGeneratorUtils::AssignType assign_type, const bool use_exclude_id, const std::vector< bool > &exclude_ids, const bool has_assembly_boundary, const std::set< subdomain_id_type > background_block_ids, const std::vector< std::unique_ptr< libMesh::ReplicatedMesh >> &input_meshes, const std::vector< std::vector< unsigned int >> &pattern, const std::vector< std::vector< dof_id_type >> &id_pattern) |
assign the reporting IDs to the output mesh from the cartesian or hexagonal patterned mesh generator More... | |
|
strong |
Enum item for reporting id assign types.
Definition at line 22 of file ReportingIDGeneratorUtils.h.
void ReportingIDGeneratorUtils::assignReportingIDs | ( | MeshBase & | mesh, |
const unsigned int | extra_id_index, | ||
const ReportingIDGeneratorUtils::AssignType | assign_type, | ||
const bool | use_exclude_id, | ||
const std::vector< bool > & | exclude_ids, | ||
const bool | has_assembly_boundary, | ||
const std::set< subdomain_id_type > | background_block_ids, | ||
const std::vector< std::unique_ptr< libMesh::ReplicatedMesh >> & | input_meshes, | ||
const std::vector< std::vector< unsigned int >> & | pattern, | ||
const std::vector< std::vector< dof_id_type >> & | id_pattern | ||
) |
assign the reporting IDs to the output mesh from the cartesian or hexagonal patterned mesh generator
mesh | output mesh from the cartesian or hexagonal patterned mesh generator |
extra_id_index | index of extra integer id for assigning the reproting IDs |
assign_type | type of integer ID assignment |
use_exclude_id | flag to indicate if exclude_id is defined |
exclude_ids | flag to indicate if exclude_id is used for each input mesh |
has_assembly_boundary | flag to indicate if assembly boundary exists |
background_block_ids | list of block ID assigned to background regions |
input_meshes | input meshes of the cartesian or hexagonal patterned mesh generator |
pattern | 2D vector of the mesh pattern |
id_pattern | user-defined integer ID for each input pattern cell |
Referenced by PatternedCartesianMeshGenerator::addReportingIDs(), PatternedHexMeshGenerator::addReportingIDs(), and CartesianIDPatternedMeshGenerator::generate().
std::set< SubdomainID > ReportingIDGeneratorUtils::getCellBlockIDs | ( | const std::vector< std::unique_ptr< libMesh::ReplicatedMesh >> & | meshes, |
const std::vector< std::vector< unsigned int >> & | pattern | ||
) |
get list of block IDs in input mesh cells
meshes | input meshes of the cartesian or hexagonal patterned mesh generator |
pattern | 2D vector of the mesh pattern |
Definition at line 74 of file ReportingIDGeneratorUtils.C.
std::vector< dof_id_type > ReportingIDGeneratorUtils::getCellwiseIntegerIDs | ( | const std::vector< std::unique_ptr< libMesh::ReplicatedMesh >> & | meshes, |
const std::vector< std::vector< unsigned int >> & | pattern, | ||
const bool | use_exclude_id, | ||
const std::vector< bool > & | exclude_ids | ||
) |
assign IDs for each component in pattern in sequential order
meshes | input meshes of the cartesian or hexagonal patterned mesh generator |
pattern | 2D vector of the mesh pattern |
use_exclude_id | flag to indicate if exclude_id is defined |
exclude_ids | flag to indicate if exclude_id is used for each input mesh |
Definition at line 15 of file ReportingIDGeneratorUtils.C.
std::map<SubdomainID, unsigned int> ReportingIDGeneratorUtils::getDuckBlockIDs | ( | const MeshBase & | mesh, |
const bool | has_assembly_boundary, | ||
const std::set< subdomain_id_type > | background_blk_ids, | ||
const std::set< SubdomainID > & | blks | ||
) |
get list of block IDs for the assembly duck regions
mesh | output mesh from the cartesian or hexagonal patterned mesh generator |
has_assembly_boundary | flag to indicate if assembly boundary exists |
background_blk_ids | list of block ID assigned to background regions |
blks | list of block defined in the input meshes of the cartesian or hexagonal patterned mesh generator |
std::vector< dof_id_type > ReportingIDGeneratorUtils::getManualIntegerIDs | ( | const std::vector< std::unique_ptr< libMesh::ReplicatedMesh >> & | meshes, |
const std::vector< std::vector< unsigned int >> & | pattern, | ||
const std::vector< std::vector< dof_id_type >> & | id_pattern | ||
) |
assign IDs based on user-defined mapping defined in id_pattern
meshes | input meshes of the cartesian or hexagonal patterned mesh generator |
pattern | 2D vector of the mesh pattern |
id_pattern | user-defined integer ID for each input pattern cell |
Definition at line 56 of file ReportingIDGeneratorUtils.C.
std::vector< dof_id_type > ReportingIDGeneratorUtils::getPatternIntegerIDs | ( | const std::vector< std::unique_ptr< libMesh::ReplicatedMesh >> & | meshes, |
const std::vector< std::vector< unsigned int >> & | pattern | ||
) |
assign IDs for each input component type
meshes | input meshes of the cartesian or hexagonal patterned mesh generator |
pattern | 2D vector of the mesh pattern |
Definition at line 39 of file ReportingIDGeneratorUtils.C.