![]() |
v0.15.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 | |
| CubitBCType | getBcType () const |
| get type of meshset | |
| EntityHandle | getMeshset () const |
| get bc meshset | |
| unsigned long int | getBcTypeULong () const |
| get bc meshset type | |
| unsigned long int | getMaskedBcTypeULong () const |
| get meshset type and mask | |
| DEPRECATED unsigned long int | getMaksedBcTypeULong () const |
| unsigned int | getMeshsetEntitiesDimension () const |
| Get the meshset entities dimension. | |
| MoFEMErrorCode | getMeshsetIdEntitiesByDimension (Interface &moab, const int dimension, Range &entities, const bool recursive=false) const |
| get entities form meshset | |
| MoFEMErrorCode | getMeshsetIdEntitiesByDimension (Interface &moab, Range &entities, const bool recursive=false) const |
| get entities form meshset | |
| MoFEMErrorCode | getMeshsetIdEntitiesByType (Interface &moab, const EntityType type, Range &entities, const bool recursive=false) const |
| get entities by type | |
| MoFEMErrorCode | getTypeFromBcData (const std::vector< char > &bc_data, CubitBCType &type) const |
| Function that returns the CubitBCType type of the contents of bc_data. | |
| MoFEMErrorCode | getTypeFromBcData (CubitBCType &type) const |
| Function that returns the CubitBCType type of the contents of bc_data. | |
| MoFEMErrorCode | getBcData (std::vector< char > &bc_data) const |
| get bc_data vector from MoFEM database | |
| MoFEMErrorCode | getBlockHeaderData (std::vector< unsigned int > &material_data) const |
| get block_headers vector from MoFEM database | |
| MoFEMErrorCode | printBlockHeaderData (std::ostream &os) const |
| print material_data int stream given by os | |
| MoFEMErrorCode | printBcData (std::ostream &os) const |
| print bc_data int stream given by os | |
| MoFEMErrorCode | getTypeFromName (const std::string &name, CubitBCType &type) const |
| Function that returns the CubitBCType type of the block name, sideset name etc. | |
| MoFEMErrorCode | getTypeFromName (CubitBCType &type) const |
| Function that returns the CubitBCType type of the block name, sideset name etc. | |
| MoFEMErrorCode | getAttributes (std::vector< double > &attributes) const |
| get Cubit block attributes | |
| MoFEMErrorCode | setAttributes (moab::Interface &moab, const std::vector< double > &attributes) |
| cet Cubit block attributes | |
| MoFEMErrorCode | printAttributes (std::ostream &os) const |
| print the attributes vector | |
| std::string | getName () const |
| get name of block, sideset etc. (this is set in Cubit block properties) | |
| MoFEMErrorCode | printName (std::ostream &os) const |
| print name of block, sideset etc. (this is set in Cubit setting properties) | |
| template<class ATTRIBUTE_TYPE > | |
| MoFEMErrorCode | getAttributeDataStructure (ATTRIBUTE_TYPE &data) const |
| fill data structure with data saved on meshset | |
| template<class ATTRIBUTE_TYPE > | |
| MoFEMErrorCode | setAttributeDataStructure (const ATTRIBUTE_TYPE &data) |
| fill meshset data with data on structure | |
| 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 | |
| int * | msId = nullptr |
| cubit meshset ID | |
| 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 |
fill data structure with data saved on meshset
Definition at line 268 of file BCMultiIndices.hpp.
| 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 286 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 172 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 179 of file BCMultiIndices.cpp.
|
inline |
|
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 160 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 209 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 226 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 259 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 324 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 349 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 310 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 267 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 187 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 217 of file BCMultiIndices.cpp.
|
inline |
fill meshset data with data on structure
Definition at line 284 of file BCMultiIndices.hpp.
| 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 297 of file BCMultiIndices.cpp.
|
inline |
Definition at line 311 of file BCMultiIndices.hpp.
|
friend |
Definition at line 356 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.