![]() |
v0.13.1 |
Interface for managing meshsets containing materials and boundary conditions. More...
#include <src/interfaces/MeshsetsManager.hpp>
Public Member Functions | |
MoFEMErrorCode | query_interface (boost::typeindex::type_index type_index, UnknownInterface **iface) const |
MeshsetsManager (const MoFEM::Core &core) | |
virtual | ~MeshsetsManager ()=default |
MoFEMErrorCode | getTags (int verb=-1) |
get tags handlers used on meshsets More... | |
Tag | get_nsTag () const |
get tag handle used to store "id" of NODESET More... | |
Tag | get_ssTag () const |
get tag handle used to store "id" of SIDESET More... | |
Tag | get_nsTag_data () const |
get tag handle used to store boundary data on NODESET More... | |
Tag | get_ssTag_data () const |
get tag handle used to store boundary data on SIDESET More... | |
Tag | get_bhTag () const |
get tag handle used to store "id" of BLOCKSET More... | |
Tag | get_bhTag_header () const |
get tag handle used to store of block set header (Used by Cubit) More... | |
MeshsetsManager * | get_meshsets_manager_ptr () |
return pointer to meshset manager More... | |
const MeshsetsManager * | get_meshsets_manager_ptr () const |
return pointer to meshset manager More... | |
MoFEMErrorCode | clearMap () |
clear multi-index container More... | |
MoFEMErrorCode | initialiseDatabaseFromMesh (int verb=DEFAULT_VERBOSITY) |
MoFEMErrorCode | readMeshsets (int verb=DEFAULT_VERBOSITY) |
Boradcats meshsets. More... | |
MoFEMErrorCode | broadcastMeshsets (int verb=DEFAULT_VERBOSITY) |
Boradcats meshsets. More... | |
template<class CUBIT_BC_DATA_TYPE > | |
MoFEMErrorCode | printBcSet (CUBIT_BC_DATA_TYPE &data, unsigned long int type) const |
MoFEMErrorCode | printDisplacementSet () const |
print meshsets with displacement boundary conditions data structure More... | |
MoFEMErrorCode | printPressureSet () const |
print meshsets with pressure boundary conditions data structure More... | |
MoFEMErrorCode | printForceSet () const |
print meshsets with force boundary conditions data structure More... | |
MoFEMErrorCode | printTemperatureSet () const |
print meshsets with temperature boundary conditions data structure More... | |
MoFEMErrorCode | printHeatFluxSet () const |
print meshsets with heat flux boundary conditions data structure More... | |
MoFEMErrorCode | printMaterialsSet () const |
print meshsets with material data structure set on it More... | |
CubitMeshSet_multiIndex & | getMeshsetsMultindex () |
CubitMeshSet_multiIndex::iterator | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | checkMeshset (const int ms_id, const CubitBCType cubit_bc_type) const |
check for CUBIT Id and CUBIT type More... | |
bool | checkMeshset (const string name, int *const number_of_meshsets_ptr=NULL) const |
check if meshset of given name exist More... | |
MoFEMErrorCode | addMeshset (const CubitBCType cubit_bc_type, const int ms_id, const std::string name="") |
add cubit meshset More... | |
MoFEMErrorCode | addEntitiesToMeshset (const CubitBCType cubit_bc_type, const int ms_id, const Range &ents) |
add entities to cubit meshset More... | |
MoFEMErrorCode | addEntitiesToMeshset (const CubitBCType cubit_bc_type, const int ms_id, const EntityHandle *ents, const int nb_ents) |
add entities to cubit meshset More... | |
MoFEMErrorCode | setAtributes (const CubitBCType cubit_bc_type, const int ms_id, const std::vector< double > &attributes, const std::string name="") |
set attributes to cubit meshset More... | |
MoFEMErrorCode | setAtributesByDataStructure (const CubitBCType cubit_bc_type, const int ms_id, const GenericAttributeData &data, const std::string name="") |
set (material) data structure to cubit meshset More... | |
MoFEMErrorCode | setBcData (const CubitBCType cubit_bc_type, const int ms_id, const GenericCubitBcData &data) |
set boundary data structure to meshset More... | |
MoFEMErrorCode | deleteMeshset (const CubitBCType cubit_bc_type, const int ms_id, const MoFEMTypes bh=MF_EXIST) |
delete cubit meshset More... | |
MoFEMErrorCode | getCubitMeshsetPtr (const int ms_id, const CubitBCType cubit_bc_type, const CubitMeshSets **cubit_meshset_ptr) const |
get cubit meshset More... | |
MoFEMErrorCode | getCubitMeshsetPtr (const string name, const CubitMeshSets **cubit_meshset_ptr) const |
get cubit meshset More... | |
MoFEMErrorCode | getCubitMeshsetPtr (const std::regex reg_exp_name, std::vector< const CubitMeshSets * > &vec_ptr) const |
Get vector of poointer to blocksets with name satisfying regular expression. More... | |
MoFEMErrorCode | 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 | 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 | getMeshset (const int ms_id, const unsigned int cubit_bc_type, EntityHandle &meshset) const |
get meshset from CUBIT Id and CUBIT type More... | |
bool | checkIfMeshsetContainsEntities (const int ms_id, const unsigned int cubit_bc_type, const EntityHandle *entities, int num_entities, const int operation_type=moab::Interface::INTERSECT) |
Check if meshset constains entities. More... | |
MoFEMErrorCode | getMeshsetsByType (const unsigned int cubit_bc_type, Range &meshsets) const |
get all CUBIT meshsets by CUBIT type More... | |
MoFEMErrorCode | setMeshsetFromFile (const string file_name, const bool clean_file_options=true) |
add blocksets reading config file More... | |
MoFEMErrorCode | setMeshsetFromFile () |
get name of config file from line command '-meshsets_config' More... | |
MoFEMErrorCode | saveMeshsetToFile (const int ms_id, const unsigned int cubit_bc_type, const std::string file_name="out_meshset.vtk", const std::string file_type="VTK", const std::string options="") const |
save cubit meshset entities on the moab mesh More... | |
MoFEMErrorCode | saveMeshsetToFile (const int ms_id, const unsigned int cubit_bc_type, const int dim, const std::string file_name="out_meshset.vtk", const bool recursive=false, const std::string file_type="VTK", const std::string options="") const |
save cubit meshset entities on the moab mesh More... | |
boost::shared_ptr< boost::program_options::options_description > & | getConfigFileOptionsPtr () |
Get config file options, use with care. More... | |
MoFEMErrorCode | updateAllMeshsetsByEntitiesChildren (const BitRefLevel bit) |
![]() | |
virtual MoFEMErrorCode | query_interface (boost::typeindex::type_index type_index, UnknownInterface **iface) const =0 |
template<class IFACE > | |
MoFEMErrorCode | registerInterface (bool error_if_registration_failed=true) |
Register interface. More... | |
template<class IFACE > | |
MoFEMErrorCode | getInterface (IFACE *&iface) const |
Get interface refernce to pointer of interface. More... | |
template<class IFACE > | |
MoFEMErrorCode | getInterface (IFACE **const iface) const |
Get interface pointer to pointer of interface. More... | |
template<class IFACE , typename boost::enable_if< boost::is_pointer< IFACE >, int >::type = 0> | |
IFACE | getInterface () const |
Get interface pointer to pointer of interface. More... | |
template<class IFACE , typename boost::enable_if< boost::is_reference< IFACE >, int >::type = 0> | |
IFACE | getInterface () const |
Get reference to interface. More... | |
template<class IFACE > | |
IFACE * | getInterface () const |
Function returning pointer to interface. More... | |
virtual | ~UnknownInterface ()=default |
Public Attributes | |
MoFEM::Core & | cOre |
Static Public Attributes | |
static bool | brodcastMeshsets = true |
Protected Attributes | |
Tag | nsTag |
Tag | ssTag |
Tag | nsTag_data |
Tag | ssTag_data |
Tag | bhTag |
Tag | bhTag_header |
CubitMeshSet_multiIndex | cubitMeshsets |
cubit meshsets More... | |
boost::shared_ptr< boost::program_options::options_description > | configFileOptionsPtr |
config file options More... | |
Additional Inherited Members | |
![]() | |
static MoFEMErrorCode | getLibVersion (Version &version) |
Get library version. More... | |
static MoFEMErrorCode | getFileVersion (moab::Interface &moab, Version &version) |
Get database major version. More... | |
static MoFEMErrorCode | setFileVersion (moab::Interface &moab, Version version=Version(MoFEM_VERSION_MAJOR, MoFEM_VERSION_MINOR, MoFEM_VERSION_BUILD)) |
Get database major version. More... | |
static MoFEMErrorCode | getInterfaceVersion (Version &version) |
Get database major version. More... | |
Interface for managing meshsets containing materials and boundary conditions.
Definition at line 114 of file MeshsetsManager.hpp.
MoFEM::MeshsetsManager::MeshsetsManager | ( | const MoFEM::Core & | core | ) |
Definition at line 40 of file MeshsetsManager.cpp.
|
virtualdefault |
MoFEMErrorCode MoFEM::MeshsetsManager::addEntitiesToMeshset | ( | const CubitBCType | cubit_bc_type, |
const int | ms_id, | ||
const EntityHandle * | ents, | ||
const int | nb_ents | ||
) |
add entities to cubit meshset
cubit_bc_type | type of meshset, f.e. NODESET, SIDESET or BLOCKSET |
ms_id | id of meshset |
ents | pointer to entities array |
nb_ents | number of entities in array |
Definition at line 367 of file MeshsetsManager.cpp.
MoFEMErrorCode MoFEM::MeshsetsManager::addEntitiesToMeshset | ( | const CubitBCType | cubit_bc_type, |
const int | ms_id, | ||
const Range & | ents | ||
) |
add entities to cubit meshset
cubit_bc_type | type of meshset, f.e. NODESET, SIDESET or BLOCKSET |
ms_id | id of meshset |
ents | entities to add |
Definition at line 347 of file MeshsetsManager.cpp.
MoFEMErrorCode MoFEM::MeshsetsManager::broadcastMeshsets | ( | int | verb = DEFAULT_VERBOSITY | ) |
Boradcats meshsets.
verb |
Definition at line 107 of file MeshsetsManager.cpp.
bool MoFEM::MeshsetsManager::checkIfMeshsetContainsEntities | ( | const int | ms_id, |
const unsigned int | cubit_bc_type, | ||
const EntityHandle * | entities, | ||
int | num_entities, | ||
const int | operation_type = moab::Interface::INTERSECT |
||
) |
Check if meshset constains entities.
ms_id | |
cubit_bc_type | |
entities | |
num_entities | |
operation_type |
Definition at line 616 of file MeshsetsManager.cpp.
bool MoFEM::MeshsetsManager::checkMeshset | ( | const string | name, |
int *const | number_of_meshsets_ptr = NULL |
||
) | const |
check if meshset of given name exist
name | name of meshset |
Definition at line 301 of file MeshsetsManager.cpp.
MoFEMErrorCode MoFEM::MeshsetsManager::clearMap | ( | ) |
clear multi-index container
Definition at line 65 of file MeshsetsManager.cpp.
MoFEMErrorCode MoFEM::MeshsetsManager::deleteMeshset | ( | const CubitBCType | cubit_bc_type, |
const int | ms_id, | ||
const MoFEMTypes | bh = MF_EXIST |
||
) |
delete cubit meshset
see | CubitBC (NODESET, SIDESET or BLOCKSET and more) |
ms_id | id of the BLOCKSET/SIDESET/BLOCKSET: from CUBIT |
Definition at line 482 of file MeshsetsManager.cpp.
Tag MoFEM::MeshsetsManager::get_bhTag | ( | ) | const |
Tag MoFEM::MeshsetsManager::get_bhTag_header | ( | ) | const |
get tag handle used to store of block set header (Used by Cubit)
Definition at line 164 of file MeshsetsManager.hpp.
MeshsetsManager * MoFEM::MeshsetsManager::get_meshsets_manager_ptr | ( | ) |
return pointer to meshset manager
Definition at line 169 of file MeshsetsManager.hpp.
const MeshsetsManager * MoFEM::MeshsetsManager::get_meshsets_manager_ptr | ( | ) | const |
return pointer to meshset manager
Definition at line 174 of file MeshsetsManager.hpp.
Tag MoFEM::MeshsetsManager::get_nsTag | ( | ) | const |
Tag MoFEM::MeshsetsManager::get_nsTag_data | ( | ) | const |
get tag handle used to store boundary data on NODESET
Definition at line 149 of file MeshsetsManager.hpp.
Tag MoFEM::MeshsetsManager::get_ssTag | ( | ) | const |
Tag MoFEM::MeshsetsManager::get_ssTag_data | ( | ) | const |
get tag handle used to store boundary data on SIDESET
Definition at line 154 of file MeshsetsManager.hpp.
boost::shared_ptr< boost::program_options::options_description > & MoFEM::MeshsetsManager::getConfigFileOptionsPtr | ( | ) |
Get config file options, use with care.
Definition at line 804 of file MeshsetsManager.hpp.
CubitMeshSet_multiIndex & MoFEM::MeshsetsManager::getMeshsetsMultindex | ( | ) |
Definition at line 239 of file MeshsetsManager.hpp.
MoFEMErrorCode MoFEM::MeshsetsManager::getTags | ( | int | verb = -1 | ) |
get tags handlers used on meshsets
On meshsets range of tags in set. Depending on tag type and data on that tag type of meshset could be determined. This function get hanldes to tags.
Most of the tags are followinf convention used by MoAB or Cubit and other meshing softwares, f.e. gmesh.
Definition at line 176 of file MeshsetsManager.cpp.
MoFEMErrorCode MoFEM::MeshsetsManager::initialiseDatabaseFromMesh | ( | int | verb = DEFAULT_VERBOSITY | ) |
\brier initialize container form data on mesh
Definition at line 71 of file MeshsetsManager.cpp.
MoFEMErrorCode MoFEM::MeshsetsManager::printBcSet | ( | CUBIT_BC_DATA_TYPE & | data, |
unsigned long int | type | ||
) | const |
Definition at line 828 of file MeshsetsManager.hpp.
MoFEMErrorCode MoFEM::MeshsetsManager::printDisplacementSet | ( | ) | const |
print meshsets with displacement boundary conditions data structure
Definition at line 219 of file MeshsetsManager.cpp.
MoFEMErrorCode MoFEM::MeshsetsManager::printForceSet | ( | ) | const |
print meshsets with force boundary conditions data structure
Definition at line 233 of file MeshsetsManager.cpp.
MoFEMErrorCode MoFEM::MeshsetsManager::printHeatFluxSet | ( | ) | const |
print meshsets with heat flux boundary conditions data structure
Definition at line 247 of file MeshsetsManager.cpp.
MoFEMErrorCode MoFEM::MeshsetsManager::printMaterialsSet | ( | ) | const |
print meshsets with material data structure set on it
Definition at line 254 of file MeshsetsManager.cpp.
MoFEMErrorCode MoFEM::MeshsetsManager::printPressureSet | ( | ) | const |
print meshsets with pressure boundary conditions data structure
Definition at line 226 of file MeshsetsManager.cpp.
MoFEMErrorCode MoFEM::MeshsetsManager::printTemperatureSet | ( | ) | const |
print meshsets with temperature boundary conditions data structure
Definition at line 240 of file MeshsetsManager.cpp.
|
virtual |
Implements MoFEM::UnknownInterface.
Definition at line 34 of file MeshsetsManager.cpp.
MoFEMErrorCode MoFEM::MeshsetsManager::readMeshsets | ( | int | verb = DEFAULT_VERBOSITY | ) |
Boradcats meshsets.
verb |
Definition at line 85 of file MeshsetsManager.cpp.
MoFEMErrorCode MoFEM::MeshsetsManager::saveMeshsetToFile | ( | const int | ms_id, |
const unsigned int | cubit_bc_type, | ||
const int | dim, | ||
const std::string | file_name = "out_meshset.vtk" , |
||
const bool | recursive = false , |
||
const std::string | file_type = "VTK" , |
||
const std::string | options = "" |
||
) | const |
save cubit meshset entities on the moab mesh
ms_id | id of the cubit meshset |
cubit_bc_type | type of a cubit mesheset (NODESET SIDESET BLOCKSET) |
dim | dimension of the entities |
file_name | optional name for the file |
file_type | optional file type for moab (VTK MOAB) |
options | optional parameters for moab writer (PARALLEL=WRITE_PART) |
Definition at line 1304 of file MeshsetsManager.cpp.
MoFEMErrorCode MoFEM::MeshsetsManager::saveMeshsetToFile | ( | const int | ms_id, |
const unsigned int | cubit_bc_type, | ||
const std::string | file_name = "out_meshset.vtk" , |
||
const std::string | file_type = "VTK" , |
||
const std::string | options = "" |
||
) | const |
save cubit meshset entities on the moab mesh
ms_id | id of the cubit meshset (NODESET SIDESET BLOCKSET) |
cubit_bc_type | type of a cubit mesheset |
file_name | optional name for the file |
file_type | optional file type for moab (VTK MOAB) |
options | optional parameters for moab writer (PARALLEL=WRITE_PART) |
Definition at line 1289 of file MeshsetsManager.cpp.
MoFEMErrorCode MoFEM::MeshsetsManager::setAtributes | ( | const CubitBCType | cubit_bc_type, |
const int | ms_id, | ||
const std::vector< double > & | attributes, | ||
const std::string | name = "" |
||
) |
set attributes to cubit meshset
cubit_bc_type | type of meshset, see CubitBC, i.e. BLOCKSET, NODESET, SIDESET |
ms_id | id of meshset |
attributes | attributes |
name | set name to blockset |
Definition at line 388 of file MeshsetsManager.cpp.
MoFEMErrorCode MoFEM::MeshsetsManager::setAtributesByDataStructure | ( | const CubitBCType | cubit_bc_type, |
const int | ms_id, | ||
const GenericAttributeData & | data, | ||
const std::string | name = "" |
||
) |
set (material) data structure to cubit meshset
cubit_bc_type | type of meshset, see CubitBC, i.e. BLOCKSET, NODESET, SIDESET |
ms_id | id of meshset |
attributes | attributes |
Definition at line 428 of file MeshsetsManager.cpp.
MoFEMErrorCode MoFEM::MeshsetsManager::setBcData | ( | const CubitBCType | cubit_bc_type, |
const int | ms_id, | ||
const GenericCubitBcData & | data | ||
) |
set boundary data structure to meshset
cubit_bc_type | type of meshset, see CubitBC, i.e. BLOCKSET, NODESET, SIDESET |
ms_id | id of meshset |
data | data structure |
Definition at line 459 of file MeshsetsManager.cpp.
MoFEMErrorCode MoFEM::MeshsetsManager::setMeshsetFromFile | ( | ) |
get name of config file from line command '-meshsets_config'
Option is "-meshsets_config file_name.cfg"
Definition at line 1265 of file MeshsetsManager.cpp.
MoFEMErrorCode MoFEM::MeshsetsManager::setMeshsetFromFile | ( | const string | file_name, |
const bool | clean_file_options = true |
||
) |
add blocksets reading config file
Example of config file
file_name | config file |
MoFEMErrorCode MoFEM::MeshsetsManager::updateAllMeshsetsByEntitiesChildren | ( | const BitRefLevel | bit | ) |
Definition at line 1324 of file MeshsetsManager.cpp.
|
protected |
Definition at line 818 of file MeshsetsManager.hpp.
|
protected |
Definition at line 819 of file MeshsetsManager.hpp.
|
static |
if true meshsets are synchrinised between processors
Definition at line 810 of file MeshsetsManager.hpp.
|
protected |
config file options
Definition at line 824 of file MeshsetsManager.hpp.
MoFEM::Core& MoFEM::MeshsetsManager::cOre |
Definition at line 119 of file MeshsetsManager.hpp.
|
protected |
cubit meshsets
Definition at line 822 of file MeshsetsManager.hpp.
|
protected |
Definition at line 814 of file MeshsetsManager.hpp.
|
protected |
Definition at line 816 of file MeshsetsManager.hpp.
|
protected |
Definition at line 815 of file MeshsetsManager.hpp.
|
protected |
Definition at line 817 of file MeshsetsManager.hpp.