![]() |
v0.14.0 |
Interface for meshsets with entities with data and boundary conditions. More...
Files | |
file | MeshsetsManager.hpp |
MeshsetsManager interface. | |
Macros | |
#define | _IT_CUBITMESHSETS_FOR_LOOP_(MESHSET_MANAGER, IT) |
Iterator that loops over all the Cubit MeshSets in a moFEM field. More... | |
#define | _IT_CUBITMESHSETS_BY_BCDATA_TYPE_FOR_LOOP_(MESHSET_MANAGER, CUBITBCTYPE, IT) |
Iterator that loops over a specific Cubit MeshSet in a moFEM field. More... | |
#define | _IT_CUBITMESHSETS_BY_SET_TYPE_FOR_LOOP_(MESHSET_MANAGER, CUBITBCTYPE, IT) |
Iterator that loops over a specific Cubit MeshSet having a particular BC meshset in a moFEM field. More... | |
#define | _IT_CUBITMESHSETS_BY_NAME_FOR_LOOP_(MESHSET_MANAGER, NAME, IT) |
Iterator that loops over Cubit BlockSet having a particular name. More... | |
Functions | |
CubitMeshSet_multiIndex::iterator | MoFEM::MeshsetsManager::getBegin () const |
get begin iterator of cubit mehset of given type (instead you can use IT_CUBITMESHSETS_TYPE_FOR_LOOP(MFIELD,CUBITBCTYPE,IT) More... | |
CubitMeshSet_multiIndex::iterator | MoFEM::MeshsetsManager::getEnd () const |
get begin iterator of cubit mehset of given type (instead you can use IT_CUBITMESHSETS_TYPE_FOR_LOOP(MFIELD,CUBITBCTYPE,IT) More... | |
CubitMeshsetByType::iterator | MoFEM::MeshsetsManager::getBegin (const unsigned int cubit_bc_type) const |
get begin iterator of cubit mehset of given type (instead you can use IT_CUBITMESHSETS_BY_BCDATA_TYPE_FOR_LOOP(MFIELD,CUBITBCTYPE,IT) More... | |
CubitMeshsetByType::iterator | MoFEM::MeshsetsManager::getEnd (const unsigned int cubit_bc_type) const |
get begin iterator of cubit mehset of given type (instead you can use IT_CUBITMESHSETS_BY_BCDATA_TYPE_FOR_LOOP(MFIELD,CUBITBCTYPE,IT) More... | |
CubitMeshsetByMask::iterator | MoFEM::MeshsetsManager::getBySetTypeBegin (const unsigned int cubit_bc_type) const |
get end iterator of cubit meshset of given type (instead you can use IT_CUBITMESHSETS_BY_BCDATA_TYPE_FOR_LOOP(MFIELD,CUBITBCTYPE,IT) More... | |
CubitMeshsetByMask::iterator | MoFEM::MeshsetsManager::getBySetTypeEnd (const unsigned int cubit_bc_type) const |
get end iterator of cubit mehset of given type (instead you can use IT_CUBITMESHSETS_BY_BCDATA_TYPE_FOR_LOOP(MFIELD,CUBITBCTYPE,IT) More... | |
CubitMeshsetByName::iterator | MoFEM::MeshsetsManager::getBegin (const std::string &name) const |
get begin iterator of cubit mehset of given type (instead you can use IT_CUBITMESHSETS_BY_SET_TYPE_FOR_LOOP(MFIELD,CUBITBCTYPE,IT) More... | |
CubitMeshsetByName::iterator | MoFEM::MeshsetsManager::getEnd (const std::string &name) const |
get begin iterator of cubit mehset of given type (instead you can use IT_CUBITMESHSETS_BY_SET_TYPE_FOR_LOOP(MFIELD,CUBITBCTYPE,IT) More... | |
bool | MoFEM::MeshsetsManager::checkMeshset (const int ms_id, const CubitBCType cubit_bc_type) const |
check for CUBIT Id and CUBIT type More... | |
MoFEMErrorCode | MoFEM::MeshsetsManager::addMeshset (const CubitBCType cubit_bc_type, const int ms_id, const std::string name="") |
add cubit meshset More... | |
MoFEMErrorCode | MoFEM::MeshsetsManager::getCubitMeshsetPtr (const int ms_id, const CubitBCType cubit_bc_type, const CubitMeshSets **cubit_meshset_ptr) const |
get cubit meshset More... | |
const CubitMeshSets * | MoFEM::MeshsetsManager::getCubitMeshsetPtr (const int ms_id, const CubitBCType cubit_bc_type) const |
get cubit meshset More... | |
MoFEMErrorCode | MoFEM::MeshsetsManager::getCubitMeshsetPtr (const CubitBCType cubit_bc_type, std::vector< const CubitMeshSets * > &vec_ptr) const |
Get vector of pointer by bc type. More... | |
std::vector< const CubitMeshSets * > | MoFEM::MeshsetsManager::getCubitMeshsetPtr (const CubitBCType cubit_bc_type) const |
Get vector of pointer by bc type. More... | |
MoFEMErrorCode | MoFEM::MeshsetsManager::getCubitMeshsetPtr (const string name, const CubitMeshSets **cubit_meshset_ptr) const |
get cubit meshset More... | |
MoFEMErrorCode | MoFEM::MeshsetsManager::getCubitMeshsetPtr (const std::regex reg_exp_name, std::vector< const CubitMeshSets * > &vec_ptr) const |
Get vector of pointer to blocksets with name satisfying regular expression. More... | |
std::vector< const CubitMeshSets * > | MoFEM::MeshsetsManager::getCubitMeshsetPtr (const std::regex reg_exp_name) const |
Get vector of pointer to blocksets with name satisfying regular expression. More... | |
MoFEMErrorCode | MoFEM::MeshsetsManager::getEntitiesByDimension (const int ms_id, const unsigned int cubit_bc_type, const int dimension, Range &entities, const bool recursive=true) const |
get entities from CUBIT/meshset of a particular entity dimension More... | |
MoFEMErrorCode | MoFEM::MeshsetsManager::getEntitiesByDimension (const int ms_id, const unsigned int cubit_bc_type, Range &entities, const bool recursive=true) const |
get entities related to CUBIT/meshset, More... | |
MoFEMErrorCode | MoFEM::MeshsetsManager::getMeshset (const int ms_id, const unsigned int cubit_bc_type, EntityHandle &meshset) const |
get meshset from CUBIT Id and CUBIT type More... | |
MoFEMErrorCode | MoFEM::MeshsetsManager::getMeshsetsByType (const unsigned int cubit_bc_type, Range &meshsets) const |
get all CUBIT meshsets by CUBIT type More... | |
Interface for meshsets with entities with data and boundary conditions.
#define _IT_CUBITMESHSETS_BY_BCDATA_TYPE_FOR_LOOP_ | ( | MESHSET_MANAGER, | |
CUBITBCTYPE, | |||
IT | |||
) |
Iterator that loops over a specific Cubit MeshSet in a moFEM field.
mField | moFEM Field |
see | CubitBC (NODESET, SIDESET or BLOCKSET and more) |
iterator |
Definition at line 49 of file MeshsetsManager.hpp.
#define _IT_CUBITMESHSETS_BY_NAME_FOR_LOOP_ | ( | MESHSET_MANAGER, | |
NAME, | |||
IT | |||
) |
Iterator that loops over Cubit BlockSet having a particular name.
MESHSET_MANAGER | meshset manager (works as well with Interface) |
NAME | name |
IT | iterator |
Definition at line 94 of file MeshsetsManager.hpp.
#define _IT_CUBITMESHSETS_BY_SET_TYPE_FOR_LOOP_ | ( | MESHSET_MANAGER, | |
CUBITBCTYPE, | |||
IT | |||
) |
Iterator that loops over a specific Cubit MeshSet having a particular BC meshset in a moFEM field.
MESHSET_MANAGER | meshset manager (works as well with Interface) |
see | CubitBC (NODESET, SIDESET or BLOCKSET and more) |
iterator | Example: |
Definition at line 71 of file MeshsetsManager.hpp.
#define _IT_CUBITMESHSETS_FOR_LOOP_ | ( | MESHSET_MANAGER, | |
IT | |||
) |
Iterator that loops over all the Cubit MeshSets in a moFEM field.
MESHSET_MANAGER | meshset manager (works as well with Interface) |
iterator |
Definition at line 34 of file MeshsetsManager.hpp.
MoFEMErrorCode MoFEM::MeshsetsManager::addMeshset | ( | const CubitBCType | cubit_bc_type, |
const int | ms_id, | ||
const std::string | name = "" |
||
) |
add cubit meshset
see | CubitBC (NODESET, SIDESET or BLOCKSET and more) |
ms_id | id of the BLOCKSET/SIDESET/BLOCKSET |
name | of set |
Definition at line 396 of file MeshsetsManager.cpp.
bool MoFEM::MeshsetsManager::checkMeshset | ( | const int | ms_id, |
const CubitBCType | cubit_bc_type | ||
) | const |
check for CUBIT Id and CUBIT type
ms_id | id of the BLOCKSET/SIDESET/BLOCKSET: from CUBIT |
see | CubitBC (NODESET, SIDESET or BLOCKSET and more) |
Definition at line 371 of file MeshsetsManager.cpp.
|
inline |
get begin iterator of cubit mehset of given type (instead you can use IT_CUBITMESHSETS_TYPE_FOR_LOOP(MFIELD,CUBITBCTYPE,IT)
for(IT_CUBITMESHSETS_FOR_LOOP(mField,it) { ... }
Definition at line 247 of file MeshsetsManager.hpp.
|
inline |
get begin iterator of cubit mehset of given type (instead you can use IT_CUBITMESHSETS_BY_SET_TYPE_FOR_LOOP(MFIELD,CUBITBCTYPE,IT)
for(IT_CUBITMESHSETS_BY_SET_TYPE_FOR_LOOP(mField,NODESET|DISPLACEMENTSET,it) { ... }
type | of meshset (NODESET, SIDESET or BLOCKSET and more) |
Definition at line 355 of file MeshsetsManager.hpp.
|
inline |
get begin iterator of cubit mehset of given type (instead you can use IT_CUBITMESHSETS_BY_BCDATA_TYPE_FOR_LOOP(MFIELD,CUBITBCTYPE,IT)
for(IT_CUBITMESHSETS_BY_BCDATA_TYPE_FOR_LOOP(mField,NODESET|DISPLACEMENTSET,it) { ... }
type | of meshset (NODESET, SIDESET or BLOCKSET and more) |
Definition at line 280 of file MeshsetsManager.hpp.
|
inline |
get end iterator of cubit meshset of given type (instead you can use IT_CUBITMESHSETS_BY_BCDATA_TYPE_FOR_LOOP(MFIELD,CUBITBCTYPE,IT)
for(IT_CUBITMESHSETS_BY_BCDATA_TYPE_FOR_LOOP(mField,NODESET,it) { ... }
type | of meshset (NODESET, SIDESET or BLOCKSET and more) |
Definition at line 318 of file MeshsetsManager.hpp.
|
inline |
get end iterator of cubit mehset of given type (instead you can use IT_CUBITMESHSETS_BY_BCDATA_TYPE_FOR_LOOP(MFIELD,CUBITBCTYPE,IT)
for(IT_CUBITMESHSETS_BY_BCDATA_TYPE_FOR_LOOP(mField,NODESET,it) { ... }
type | of meshset (NODESET, SIDESET or BLOCKSET and more) |
Definition at line 336 of file MeshsetsManager.hpp.
std::vector< const CubitMeshSets * > MoFEM::MeshsetsManager::getCubitMeshsetPtr | ( | const CubitBCType | cubit_bc_type | ) | const |
Get vector of pointer by bc type.
Definition at line 649 of file MeshsetsManager.cpp.
MoFEMErrorCode MoFEM::MeshsetsManager::getCubitMeshsetPtr | ( | const CubitBCType | cubit_bc_type, |
std::vector< const CubitMeshSets * > & | vec_ptr | ||
) | const |
Get vector of pointer by bc type.
std::vector<const | CubitMeshSets *> |
Definition at line 635 of file MeshsetsManager.cpp.
const CubitMeshSets * MoFEM::MeshsetsManager::getCubitMeshsetPtr | ( | const int | ms_id, |
const CubitBCType | cubit_bc_type | ||
) | const |
MoFEMErrorCode MoFEM::MeshsetsManager::getCubitMeshsetPtr | ( | const int | ms_id, |
const CubitBCType | cubit_bc_type, | ||
const CubitMeshSets ** | cubit_meshset_ptr | ||
) | const |
get cubit meshset
Definition at line 589 of file MeshsetsManager.cpp.
std::vector< const CubitMeshSets * > MoFEM::MeshsetsManager::getCubitMeshsetPtr | ( | const std::regex | reg_exp_name | ) | const |
Get vector of pointer to blocksets with name satisfying regular expression.
reg_exp_name |
Definition at line 673 of file MeshsetsManager.cpp.
MoFEMErrorCode MoFEM::MeshsetsManager::getCubitMeshsetPtr | ( | const std::regex | reg_exp_name, |
std::vector< const CubitMeshSets * > & | vec_ptr | ||
) | const |
Get vector of pointer to blocksets with name satisfying regular expression.
reg_exp_name | |
std::vector<const | CubitMeshSets *> |
Definition at line 656 of file MeshsetsManager.cpp.
MoFEMErrorCode MoFEM::MeshsetsManager::getCubitMeshsetPtr | ( | const string | name, |
const CubitMeshSets ** | cubit_meshset_ptr | ||
) | const |
|
inline |
get begin iterator of cubit mehset of given type (instead you can use IT_CUBITMESHSETS_TYPE_FOR_LOOP(MFIELD,CUBITBCTYPE,IT)
for(IT_CUBITMESHSETS_FOR_LOOP(mField,it) { ... }
Definition at line 261 of file MeshsetsManager.hpp.
|
inline |
get begin iterator of cubit mehset of given type (instead you can use IT_CUBITMESHSETS_BY_SET_TYPE_FOR_LOOP(MFIELD,CUBITBCTYPE,IT)
for(IT_CUBITMESHSETS_BY_SET_TYPE_FOR_LOOP(mField,NODESET|DISPLACEMENTSET,it) { ... }
type | of meshset (NODESET, SIDESET or BLOCKSET and more) |
Definition at line 373 of file MeshsetsManager.hpp.
|
inline |
get begin iterator of cubit mehset of given type (instead you can use IT_CUBITMESHSETS_BY_BCDATA_TYPE_FOR_LOOP(MFIELD,CUBITBCTYPE,IT)
for(IT_CUBITMESHSETS_BY_BCDATA_TYPE_FOR_LOOP(mField,NODESET|DISPLACEMENTSET,it) { ... }
type | of meshset (NODESET, SIDESET or BLOCKSET and more) |
Definition at line 300 of file MeshsetsManager.hpp.
MoFEMErrorCode MoFEM::MeshsetsManager::getEntitiesByDimension | ( | const int | ms_id, |
const unsigned int | cubit_bc_type, | ||
const int | dimension, | ||
Range & | entities, | ||
const bool | recursive = true |
||
) | const |
get entities from CUBIT/meshset of a particular entity dimension
Nodeset can contain nodes, edges, triangles and tets. This applies to other meshsets too. The nodeset's meshset contain the nodes in the MIDDLE of the surface or volume which is done by default in Cubit, Hence if all nodes on a particular nodeset are required, one should get all triangles or tetrahedrons for which the nodeset was create in Cubit, and get all the connectivities of tris/tets.
ms_id | id of the BLOCKSET/SIDESET/BLOCKSET: from CUBIT |
see | CubitBC (NODESET, SIDESET or BLOCKSET and more) |
dimensions | (0 - Nodes, 1 - Edges, 2 - Faces, 3 - Volume(tetrahedral)) |
Range | containing the retrieved entities |
recursive | If true, meshsets containing meshsets are queried recursively. Returns the contents of meshsets, but not the meshsets themselves if true. |
Definition at line 680 of file MeshsetsManager.cpp.
MoFEMErrorCode MoFEM::MeshsetsManager::getEntitiesByDimension | ( | const int | ms_id, |
const unsigned int | cubit_bc_type, | ||
Range & | entities, | ||
const bool | recursive = true |
||
) | const |
get entities related to CUBIT/meshset,
NODESET will get Vertices only, even if the NODESET contains edges, tris and tets SIDESET will get Tris, BLOCKSET will get Tets, DISPLACEMENTSET and FORCESET are stored in NODESET, PRESSURESET is stored in Sideset.
ms_id | id of the BLOCKSET/SIDESET/BLOCKSET: from CUBIT |
see | CubitBC (NODESET, SIDESET or BLOCKSET and more) |
Range | containing the retrieved entities related to the |
recursive | If true, meshsets containing meshsets are queried recursively. Returns the contents of meshsets, but not the meshsets themselves if true. |
Definition at line 700 of file MeshsetsManager.cpp.
MoFEMErrorCode MoFEM::MeshsetsManager::getMeshset | ( | const int | ms_id, |
const unsigned int | cubit_bc_type, | ||
EntityHandle & | meshset | ||
) | const |
get meshset from CUBIT Id and CUBIT type
ms_id | id of the BLOCKSET/SIDESET/BLOCKSET: from CUBIT |
see | CubitBC (NODESET, SIDESET or BLOCKSET and more) |
meshset | where to store the retrieved entities |
Definition at line 719 of file MeshsetsManager.cpp.
MoFEMErrorCode MoFEM::MeshsetsManager::getMeshsetsByType | ( | const unsigned int | cubit_bc_type, |
Range & | meshsets | ||
) | const |
get all CUBIT meshsets by CUBIT type
see | CubitBC (NODESET, SIDESET or BLOCKSET and more). |
meshsets | is range of meshsets |
Definition at line 753 of file MeshsetsManager.cpp.