v0.14.0 |
this struct keeps basic methods for moab meshset about material and boundary conditions More...
#include <src/multi_indices/BCMultiIndices.hpp>
Public Member Functions | |
CubitMeshSets (Interface &moab, const EntityHandle meshset) | |
CubitMeshSets (Interface &moab, const CubitBCType cubit_bc_type, const int msId) | |
int | getMeshsetId () const |
get meshset id as it set in preprocessing software More... | |
CubitBCType | getBcType () const |
get type of meshset More... | |
EntityHandle | getMeshset () const |
get bc meshset More... | |
unsigned long int | getBcTypeULong () const |
get bc meshset type More... | |
unsigned long int | getMaskedBcTypeULong () const |
get meshset type and mask More... | |
DEPRECATED unsigned long int | getMaksedBcTypeULong () const |
unsigned int | getMeshsetEntitiesDimension () const |
Get the meshset entities dimension. More... | |
MoFEMErrorCode | getMeshsetIdEntitiesByDimension (Interface &moab, const int dimension, Range &entities, const bool recursive=false) const |
get entities form meshset More... | |
MoFEMErrorCode | getMeshsetIdEntitiesByDimension (Interface &moab, Range &entities, const bool recursive=false) const |
get entities form meshset More... | |
MoFEMErrorCode | getMeshsetIdEntitiesByType (Interface &moab, const EntityType type, Range &entities, const bool recursive=false) const |
get entities by type More... | |
MoFEMErrorCode | getTypeFromBcData (const std::vector< char > &bc_data, CubitBCType &type) const |
Function that returns the CubitBCType type of the contents of bc_data. More... | |
MoFEMErrorCode | getTypeFromBcData (CubitBCType &type) const |
Function that returns the CubitBCType type of the contents of bc_data. More... | |
MoFEMErrorCode | getBcData (std::vector< char > &bc_data) const |
get bc_data vector from MoFEM database More... | |
MoFEMErrorCode | getBlockHeaderData (std::vector< unsigned int > &material_data) const |
get block_headers vector from MoFEM database More... | |
MoFEMErrorCode | printBlockHeaderData (std::ostream &os) const |
print material_data int stream given by os More... | |
MoFEMErrorCode | printBcData (std::ostream &os) const |
print bc_data int stream given by os More... | |
MoFEMErrorCode | getTypeFromName (const std::string &name, CubitBCType &type) const |
Function that returns the CubitBCType type of the block name, sideset name etc. More... | |
MoFEMErrorCode | getTypeFromName (CubitBCType &type) const |
Function that returns the CubitBCType type of the block name, sideset name etc. More... | |
MoFEMErrorCode | getAttributes (std::vector< double > &attributes) const |
get Cubit block attributes More... | |
MoFEMErrorCode | setAttributes (moab::Interface &moab, const std::vector< double > &attributes) |
cet Cubit block attributes More... | |
MoFEMErrorCode | printAttributes (std::ostream &os) const |
print the attributes vector More... | |
std::string | getName () const |
get name of block, sideset etc. (this is set in Cubit block properties) More... | |
MoFEMErrorCode | printName (std::ostream &os) const |
print name of block, sideset etc. (this is set in Cubit setting properties) More... | |
template<class ATTRIBUTE_TYPE > | |
MoFEMErrorCode | getAttributeDataStructure (ATTRIBUTE_TYPE &data) const |
fill data structure with data saved on meshset More... | |
template<class ATTRIBUTE_TYPE > | |
MoFEMErrorCode | setAttributeDataStructure (const ATTRIBUTE_TYPE &data) |
fill meshset data with data on structure More... | |
template<class CUBIT_BC_DATA_TYPE > | |
MoFEMErrorCode | getBcDataStructure (CUBIT_BC_DATA_TYPE &data) const |
template<class CUBIT_BC_DATA_TYPE > | |
MoFEMErrorCode | setBcDataStructure (CUBIT_BC_DATA_TYPE &data) |
MoFEMErrorCode | getTagsHandlers (Interface &moab) |
Public Attributes | |
EntityHandle | meshset |
CubitBCType | cubitBcType |
std::vector< Tag > | tag_handles |
vector of tag handles to types of data passed from cubit More... | |
int * | msId = nullptr |
cubit meshset ID More... | |
char * | tagBcData = nullptr |
int | tagBcSize |
unsigned int * | tagBlockHeaderData = nullptr |
double * | tagBlockAttributes = nullptr |
int | tagBlockAttributesSize |
char * | tagName = nullptr |
const CubitBCType | meshsetsMask |
Tag | nsTag |
Tag | ssTag |
Tag | nsTag_data |
Tag | ssTag_data |
Tag | bhTag |
Tag | bhTag_header |
Tag | thBlockAttribs |
Tag | entityNameTag |
Friends | |
std::ostream & | operator<< (std::ostream &os, const CubitMeshSets &e) |
this struct keeps basic methods for moab meshset about material and boundary conditions
Definition at line 19 of file BCMultiIndices.hpp.
MoFEM::CubitMeshSets::CubitMeshSets | ( | Interface & | moab, |
const EntityHandle | meshset | ||
) |
MoFEM::CubitMeshSets::CubitMeshSets | ( | Interface & | moab, |
const CubitBCType | cubit_bc_type, | ||
const int | msId | ||
) |
|
inline |
MoFEMErrorCode MoFEM::CubitMeshSets::getAttributes | ( | std::vector< double > & | attributes | ) | const |
get Cubit block attributes
attributes | is the vector where the block attribute data will be stored |
Definition at line 290 of file BCMultiIndices.cpp.
MoFEMErrorCode MoFEM::CubitMeshSets::getBcData | ( | std::vector< char > & | bc_data | ) | const |
get bc_data vector from MoFEM database
bc_data | is the in/out vector were bc_data will be stored |
Definition at line 176 of file BCMultiIndices.cpp.
|
inline |
Definition at line 296 of file BCMultiIndices.hpp.
|
inline |
get type of meshset
See CubitBC for set of types of meshsets.
Definition at line 56 of file BCMultiIndices.hpp.
|
inline |
get bc meshset type
Definition at line 68 of file BCMultiIndices.hpp.
MoFEMErrorCode MoFEM::CubitMeshSets::getBlockHeaderData | ( | std::vector< unsigned int > & | material_data | ) | const |
get block_headers vector from MoFEM database
material_data | is the in/out vector were the material data will be stored |
Definition at line 183 of file BCMultiIndices.cpp.
|
inline |
Definition at line 81 of file BCMultiIndices.hpp.
|
inline |
get meshset type and mask
Definition at line 76 of file BCMultiIndices.hpp.
|
inline |
|
inline |
Get the meshset entities dimension.
Definition at line 92 of file BCMultiIndices.hpp.
|
inline |
get meshset id as it set in preprocessing software
Definition at line 43 of file BCMultiIndices.hpp.
MoFEMErrorCode MoFEM::CubitMeshSets::getMeshsetIdEntitiesByDimension | ( | Interface & | moab, |
const int | dimension, | ||
Range & | entities, | ||
const bool | recursive = false |
||
) | const |
get entities form meshset
moab | moab instance |
dimension | dimension of entities |
entities | range of returned entities |
recursive | true if meshset should be searched recursively |
MoFEMErrorCode MoFEM::CubitMeshSets::getMeshsetIdEntitiesByDimension | ( | Interface & | moab, |
Range & | entities, | ||
const bool | recursive = false |
||
) | const |
get entities form meshset
Use if meshset have predefined dimension
moab | moab instance |
entities | range of returned entities |
recursive | true if meshset should be searched recursively |
MoFEMErrorCode MoFEM::CubitMeshSets::getMeshsetIdEntitiesByType | ( | Interface & | moab, |
const EntityType | type, | ||
Range & | entities, | ||
const bool | recursive = false |
||
) | const |
get entities by type
moab | moab instance |
type | type of entity |
entities | returned entities |
recursive | true if meshset should be searched recursively |
Definition at line 162 of file BCMultiIndices.cpp.
std::string MoFEM::CubitMeshSets::getName | ( | ) | const |
get name of block, sideset etc. (this is set in Cubit block properties)
Block Name Conventions:
Materials are defined with block names starting with MAT_ e.g. MAT_ELASTIC_abcd.
List of materials/solution procedures
Block name / Number of attributes / (1) Attribute 1, (2) Attribute 2 etc.
MAT_ELASTIC / 10 / (1) Young's modulus (2) Poisson's ratio (3) User attribute 8 ... (10) User attribute 8
MAT_ELASTIC_TRANSISO / 5 / (1) Young's modulus in xy plane (Ep) (2) Young's modulus in z-direction (Ez) (3) Poisson's ratio in xy plane (vp) (4) Poisson's ratio in z-direction (vpz) (5) Shear modulus in z-direction (Gzp)
MAT_INTERF / 1 / (1) Elastic modulus multiplier
To be extended as appropriate
Definition at line 213 of file BCMultiIndices.cpp.
MoFEMErrorCode MoFEM::CubitMeshSets::getTagsHandlers | ( | Interface & | moab | ) |
Definition at line 8 of file BCMultiIndices.cpp.
MoFEMErrorCode MoFEM::CubitMeshSets::getTypeFromBcData | ( | const std::vector< char > & | bc_data, |
CubitBCType & | type | ||
) | const |
Function that returns the CubitBCType type of the contents of bc_data.
Definition at line 230 of file BCMultiIndices.cpp.
MoFEMErrorCode MoFEM::CubitMeshSets::getTypeFromBcData | ( | CubitBCType & | type | ) | const |
Function that returns the CubitBCType type of the contents of bc_data.
Definition at line 263 of file BCMultiIndices.cpp.
MoFEMErrorCode MoFEM::CubitMeshSets::getTypeFromName | ( | const std::string & | name, |
CubitBCType & | type | ||
) | const |
Function that returns the CubitBCType type of the block name, sideset name etc.
Definition at line 328 of file BCMultiIndices.cpp.
MoFEMErrorCode MoFEM::CubitMeshSets::getTypeFromName | ( | CubitBCType & | type | ) | const |
Function that returns the CubitBCType type of the block name, sideset name etc.
Definition at line 353 of file BCMultiIndices.cpp.
MoFEMErrorCode MoFEM::CubitMeshSets::printAttributes | ( | std::ostream & | os | ) | const |
print the attributes vector
f.e. it->printAttributes(cout), i.e. printing to standard output f.e. it->printAttributes(std::cerr), i.e. printing to standard error output
Definition at line 314 of file BCMultiIndices.cpp.
MoFEMErrorCode MoFEM::CubitMeshSets::printBcData | ( | std::ostream & | os | ) | const |
print bc_data int stream given by os
f.e. it->printBcData(cout), i.e. printing to standard output f.e. it->printBcData(std::cerr), i.e. printing to standard error output
Definition at line 271 of file BCMultiIndices.cpp.
MoFEMErrorCode MoFEM::CubitMeshSets::printBlockHeaderData | ( | std::ostream & | os | ) | const |
print material_data int stream given by os
f.e. it->print_Cubit_material_data(cout), i.e. printing to standard output f.e. it->print_Cubit_material_data(std::cerr), i.e. printing to standard error output
Definition at line 191 of file BCMultiIndices.cpp.
MoFEMErrorCode MoFEM::CubitMeshSets::printName | ( | std::ostream & | os | ) | const |
print name of block, sideset etc. (this is set in Cubit setting properties)
e.g. it->printName(cout), i.e. printing to standard output e.g it->printName(std::cerr), i.e. printing to standard error output
Definition at line 221 of file BCMultiIndices.cpp.
|
inline |
MoFEMErrorCode MoFEM::CubitMeshSets::setAttributes | ( | moab::Interface & | moab, |
const std::vector< double > & | attributes | ||
) |
cet Cubit block attributes
attributes | is the vector where the block attribute data will be stored |
Definition at line 301 of file BCMultiIndices.cpp.
|
inline |
Definition at line 311 of file BCMultiIndices.hpp.
|
friend |
Definition at line 360 of file BCMultiIndices.cpp.
Tag MoFEM::CubitMeshSets::bhTag |
Definition at line 322 of file BCMultiIndices.hpp.
Tag MoFEM::CubitMeshSets::bhTag_header |
Definition at line 322 of file BCMultiIndices.hpp.
CubitBCType MoFEM::CubitMeshSets::cubitBcType |
type of meshset from cubit NodeSet, BlockSet, SideSet and more
Definition at line 22 of file BCMultiIndices.hpp.
Tag MoFEM::CubitMeshSets::entityNameTag |
Definition at line 323 of file BCMultiIndices.hpp.
EntityHandle MoFEM::CubitMeshSets::meshset |
Definition at line 21 of file BCMultiIndices.hpp.
const CubitBCType MoFEM::CubitMeshSets::meshsetsMask |
Definition at line 33 of file BCMultiIndices.hpp.
int* MoFEM::CubitMeshSets::msId = nullptr |
cubit meshset ID
Definition at line 26 of file BCMultiIndices.hpp.
Tag MoFEM::CubitMeshSets::nsTag |
Definition at line 322 of file BCMultiIndices.hpp.
Tag MoFEM::CubitMeshSets::nsTag_data |
Definition at line 322 of file BCMultiIndices.hpp.
Tag MoFEM::CubitMeshSets::ssTag |
Definition at line 322 of file BCMultiIndices.hpp.
Tag MoFEM::CubitMeshSets::ssTag_data |
Definition at line 322 of file BCMultiIndices.hpp.
std::vector<Tag> MoFEM::CubitMeshSets::tag_handles |
vector of tag handles to types of data passed from cubit
Definition at line 25 of file BCMultiIndices.hpp.
char* MoFEM::CubitMeshSets::tagBcData = nullptr |
Definition at line 27 of file BCMultiIndices.hpp.
int MoFEM::CubitMeshSets::tagBcSize |
Definition at line 28 of file BCMultiIndices.hpp.
double* MoFEM::CubitMeshSets::tagBlockAttributes = nullptr |
Definition at line 30 of file BCMultiIndices.hpp.
int MoFEM::CubitMeshSets::tagBlockAttributesSize |
Definition at line 31 of file BCMultiIndices.hpp.
unsigned int* MoFEM::CubitMeshSets::tagBlockHeaderData = nullptr |
Definition at line 29 of file BCMultiIndices.hpp.
char* MoFEM::CubitMeshSets::tagName = nullptr |
Definition at line 32 of file BCMultiIndices.hpp.
Tag MoFEM::CubitMeshSets::thBlockAttribs |
Definition at line 322 of file BCMultiIndices.hpp.