v0.13.1
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Friends | List of all members
MoFEM::CubitMeshSets Struct Reference

this struct keeps basic methods for moab meshset about material and boundary conditions More...

#include <src/multi_indices/BCMultiIndices.hpp>

Collaboration diagram for MoFEM::CubitMeshSets:
[legend]

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 getMaksedBcTypeULong () const
 get meshset type and mask More...
 
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
 cubit meshset ID More...
 
char * tagBcData
 
int tagBcSize
 
unsigned int * tagBlockHeaderData
 
doubletagBlockAttributes
 
int tagBlockAttributesSize
 
char * tagName
 
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)
 

Detailed Description

this struct keeps basic methods for moab meshset about material and boundary conditions

Definition at line 19 of file BCMultiIndices.hpp.

Constructor & Destructor Documentation

◆ CubitMeshSets() [1/2]

MoFEM::CubitMeshSets::CubitMeshSets ( Interface moab,
const EntityHandle  meshset 
)

◆ CubitMeshSets() [2/2]

MoFEM::CubitMeshSets::CubitMeshSets ( Interface moab,
const CubitBCType  cubit_bc_type,
const int  msId 
)

Member Function Documentation

◆ getAttributeDataStructure()

template<class ATTRIBUTE_TYPE >
MoFEMErrorCode MoFEM::CubitMeshSets::getAttributeDataStructure ( ATTRIBUTE_TYPE &  data) const
inline

fill data structure with data saved on meshset

Definition at line 263 of file BCMultiIndices.hpp.

263 {
265 if ((cubitBcType & data.getType()).none()) {
266 SETERRQ(PETSC_COMM_SELF, MOFEM_DATA_INCONSISTENCY,
267 "attributes are not for ATTRIBUTE_TYPE structure");
268 }
269 std::vector<double> attributes;
270 CHKERR getAttributes(attributes);
271 CHKERR data.fill_data(attributes);
273 }
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:346
@ MOFEM_DATA_INCONSISTENCY
Definition: definitions.h:31
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:416
#define CHKERR
Inline error check.
Definition: definitions.h:535
MoFEMErrorCode getAttributes(std::vector< double > &attributes) const
get Cubit block attributes

◆ getAttributes()

MoFEMErrorCode MoFEM::CubitMeshSets::getAttributes ( std::vector< double > &  attributes) const

get Cubit block attributes

Parameters
attributesis the vector where the block attribute data will be stored

Definition at line 274 of file BCMultiIndices.cpp.

274 {
276 attributes.resize(tagBlockAttributesSize);
277 if (tagBlockAttributesSize > 0) {
279 attributes.begin());
280 }
282}

◆ getBcData()

MoFEMErrorCode MoFEM::CubitMeshSets::getBcData ( std::vector< char > &  bc_data) const

get bc_data vector from MoFEM database

Parameters
bc_datais the in/out vector were bc_data will be stored

Definition at line 163 of file BCMultiIndices.cpp.

163 {
165 bc_data.resize(tagBcSize);
166 copy(&tagBcData[0], &tagBcData[tagBcSize], bc_data.begin());
168}

◆ getBcDataStructure()

template<class CUBIT_BC_DATA_TYPE >
MoFEMErrorCode MoFEM::CubitMeshSets::getBcDataStructure ( CUBIT_BC_DATA_TYPE &  data) const
inline

Definition at line 291 of file BCMultiIndices.hpp.

291 {
293
294 if ((cubitBcType & data.tYpe).none()) {
295 SETERRQ(PETSC_COMM_SELF, MOFEM_DATA_INCONSISTENCY,
296 "bc_data are not for CUBIT_BC_DATA_TYPE structure");
297 }
298 std::vector<char> bc_data;
299 getBcData(bc_data);
300 ierr = data.fill_data(bc_data);
301 CHKERRG(ierr);
303 }
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:447
#define CHKERRG(n)
Check error code of MoFEM/MOAB/PETSc function.
Definition: definitions.h:483
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:440
static MoFEMErrorCodeGeneric< PetscErrorCode > ierr
Definition: Exceptions.hpp:76
MoFEMErrorCode getBcData(std::vector< char > &bc_data) const
get bc_data vector from MoFEM database

◆ getBcType()

CubitBCType MoFEM::CubitMeshSets::getBcType ( ) const
inline

get type of meshset

See CubitBC for set of types of meshsets.

Returns
meshset type

Definition at line 56 of file BCMultiIndices.hpp.

56{ return cubitBcType; }

◆ getBcTypeULong()

unsigned long int MoFEM::CubitMeshSets::getBcTypeULong ( ) const
inline

get bc meshset type

Returns
return type as unsigned int

Definition at line 68 of file BCMultiIndices.hpp.

68 {
69 return cubitBcType.to_ulong();
70 }

◆ getBlockHeaderData()

MoFEMErrorCode MoFEM::CubitMeshSets::getBlockHeaderData ( std::vector< unsigned int > &  material_data) const

get block_headers vector from MoFEM database

Parameters
material_datais the in/out vector were the material data will be stored

Definition at line 170 of file BCMultiIndices.cpp.

171 {
173 material_data.resize(3);
174 copy(&tagBlockHeaderData[0], &tagBlockHeaderData[3], material_data.begin());
176}
unsigned int * tagBlockHeaderData

◆ getMaksedBcTypeULong()

unsigned long int MoFEM::CubitMeshSets::getMaksedBcTypeULong ( ) const
inline

get meshset type and mask

Returns
type is returned as unsigned integer

Definition at line 76 of file BCMultiIndices.hpp.

76 {
77 return (cubitBcType & meshsetsMask).to_ulong();
78 }
const CubitBCType meshsetsMask

◆ getMeshset()

EntityHandle MoFEM::CubitMeshSets::getMeshset ( ) const
inline

get bc meshset

Returns
meshset entity handle

Definition at line 62 of file BCMultiIndices.hpp.

62{ return meshset; }

◆ getMeshsetEntitiesDimension()

unsigned int MoFEM::CubitMeshSets::getMeshsetEntitiesDimension ( ) const
inline

Get the meshset entities dimension.

Note
If dimension is -1, then dimension for meshset ins undetermined.
Returns
unsigned int

Definition at line 87 of file BCMultiIndices.hpp.

87 {
89 return tagBlockHeaderData[2];
90 else
91 return -1;
92 }

◆ getMeshsetId()

int MoFEM::CubitMeshSets::getMeshsetId ( ) const
inline

get meshset id as it set in preprocessing software

Returns
id of meshset

Definition at line 43 of file BCMultiIndices.hpp.

43{ return *msId; }
int * msId
cubit meshset ID

◆ getMeshsetIdEntitiesByDimension() [1/2]

MoFEMErrorCode MoFEM::CubitMeshSets::getMeshsetIdEntitiesByDimension ( Interface moab,
const int  dimension,
Range entities,
const bool  recursive = false 
) const

get entities form meshset

Parameters
moabmoab instance
dimensiondimension of entities
entitiesrange of returned entities
recursivetrue if meshset should be searched recursively
Returns
error code

◆ getMeshsetIdEntitiesByDimension() [2/2]

MoFEMErrorCode MoFEM::CubitMeshSets::getMeshsetIdEntitiesByDimension ( Interface moab,
Range entities,
const bool  recursive = false 
) const

get entities form meshset

Use if meshset have predefined dimension

Parameters
moabmoab instance
entitiesrange of returned entities
recursivetrue if meshset should be searched recursively
Returns
error code

◆ getMeshsetIdEntitiesByType()

MoFEMErrorCode MoFEM::CubitMeshSets::getMeshsetIdEntitiesByType ( Interface moab,
const EntityType  type,
Range entities,
const bool  recursive = false 
) const

get entities by type

Parameters
moabmoab instance
typetype of entity
entitiesreturned entities
recursivetrue if meshset should be searched recursively
Returns
error code

Definition at line 149 of file BCMultiIndices.cpp.

151 {
153 rval = moab.get_entities_by_type(meshset, type, entities, recursive);
154 if (rval != MB_SUCCESS) {
155 std::ostringstream ss;
156 ss << "bc set " << *this << std::endl;
157 PetscPrintf(PETSC_COMM_WORLD, ss.str().c_str());
158 }
159 CHKERR rval;
161}
static MoFEMErrorCodeGeneric< moab::ErrorCode > rval
Definition: Exceptions.hpp:74

◆ getName()

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 200 of file BCMultiIndices.cpp.

200 {
201 if (tagName != nullptr) {
202 return std::string(tagName);
203 } else {
204 return "NoNameSet";
205 }
206}

◆ getTagsHandlers()

MoFEMErrorCode MoFEM::CubitMeshSets::getTagsHandlers ( Interface moab)

Definition at line 9 of file BCMultiIndices.cpp.

9 {
11 CHKERR moab.tag_get_handle(DIRICHLET_SET_TAG_NAME, nsTag);
12 CHKERR moab.tag_get_handle(NEUMANN_SET_TAG_NAME, ssTag);
13 CHKERR moab.tag_get_handle(
14 (std::string(DIRICHLET_SET_TAG_NAME) + "__BC_DATA").c_str(), nsTag_data);
15 CHKERR moab.tag_get_handle(
16 (std::string(NEUMANN_SET_TAG_NAME) + "__BC_DATA").c_str(), ssTag_data);
17 CHKERR moab.tag_get_handle(MATERIAL_SET_TAG_NAME, bhTag);
18 CHKERR moab.tag_get_handle(BLOCK_HEADER, bhTag_header);
19 CHKERR moab.tag_get_handle(BLOCK_ATTRIBUTES, thBlockAttribs);
20 CHKERR moab.tag_get_handle(NAME_TAG_NAME, entityNameTag);
22}

◆ getTypeFromBcData() [1/2]

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 217 of file BCMultiIndices.cpp.

218 {
220
221 // See CubitBCType in common.hpp
222 if (bc_data.size() == 0) {
224 }
225
226 if (strcmp(&bc_data[0], "Displacement") == 0)
228 else if (strcmp(&bc_data[0], "Force") == 0)
229 type |= FORCESET;
230 else if (strcmp(&bc_data[0], "Velocity") == 0)
231 type |= VELOCITYSET;
232 else if (strcmp(&bc_data[0], "Acceleration") == 0)
234 else if (strcmp(&bc_data[0], "Temperature") == 0)
236 else if (strcmp(&bc_data[0], "Pressure") == 0)
237 type |= PRESSURESET;
238 else if (strcmp(&bc_data[0], "HeatFlux") == 0)
239 type |= HEATFLUXSET;
240 else if (strcmp(&bc_data[0], "cfd_bc") == 0)
242 else
243 type |= UNKNOWNNAME;
244
246}
@ TEMPERATURESET
Definition: definitions.h:155
@ PRESSURESET
Definition: definitions.h:152
@ ACCELERATIONSET
Definition: definitions.h:154
@ FORCESET
Definition: definitions.h:151
@ HEATFLUXSET
Definition: definitions.h:156
@ UNKNOWNNAME
Definition: definitions.h:158
@ VELOCITYSET
Definition: definitions.h:153
@ DISPLACEMENTSET
Definition: definitions.h:150
@ INTERFACESET
Definition: definitions.h:157

◆ getTypeFromBcData() [2/2]

MoFEMErrorCode MoFEM::CubitMeshSets::getTypeFromBcData ( CubitBCType type) const

Function that returns the CubitBCType type of the contents of bc_data.

Definition at line 247 of file BCMultiIndices.cpp.

247 {
249 std::vector<char> bc_data;
250 CHKERR getBcData(bc_data);
251 CHKERR getTypeFromBcData(bc_data, type);
253}
MoFEMErrorCode getTypeFromBcData(const std::vector< char > &bc_data, CubitBCType &type) const
Function that returns the CubitBCType type of the contents of bc_data.

◆ getTypeFromName() [1/2]

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 312 of file BCMultiIndices.cpp.

313 {
315 // See CubitBCType in common.hpp
316 if (name.compare(0, 11, "MAT_ELASTIC") == 0) {
318 } else if (name.compare(0, 11, "MAT_THERMAL") == 0) {
320 } else if (name.compare(0, 12, "MAT_MOISTURE") == 0) {
322 } else if (name.compare(0, 10, "MAT_INTERF") == 0) {
324 } else if (name.compare(0, 11, "BODY_FORCES") == 0) {
326 }
327 // To be extended as appropriate
328 else {
329 type |= UNKNOWNNAME;
330 }
332}
@ BODYFORCESSET
block name is "BODY_FORCES"
Definition: definitions.h:162
@ MAT_ELASTICSET
block name is "MAT_ELASTIC"
Definition: definitions.h:159
@ MAT_INTERFSET
Definition: definitions.h:160
@ MAT_THERMALSET
block name is "MAT_THERMAL"
Definition: definitions.h:161
@ MAT_MOISTURESET
block name is "MAT_MOISTURE"
Definition: definitions.h:163

◆ getTypeFromName() [2/2]

MoFEMErrorCode MoFEM::CubitMeshSets::getTypeFromName ( CubitBCType type) const

Function that returns the CubitBCType type of the block name, sideset name etc.

Definition at line 334 of file BCMultiIndices.cpp.

334 {
336 std::string name = getName();
337 CHKERR getTypeFromName(name, type);
339}
MoFEMErrorCode getTypeFromName(const std::string &name, CubitBCType &type) const
Function that returns the CubitBCType type of the block name, sideset name etc.
std::string getName() const
get name of block, sideset etc. (this is set in Cubit block properties)

◆ printAttributes()

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 298 of file BCMultiIndices.cpp.

298 {
300 std::vector<double> attributes;
301 CHKERR getAttributes(attributes);
302 os << std::endl;
303 os << "Block attributes" << std::endl;
304 os << "----------------" << std::endl;
305 for (unsigned int ii = 0; ii < attributes.size(); ii++) {
306 os << "attr. no: " << ii + 1 << " value: " << attributes[ii] << std::endl;
307 }
308 os << std::endl;
310}

◆ printBcData()

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 255 of file BCMultiIndices.cpp.

255 {
257 std::vector<char> bc_data;
258 CHKERR getBcData(bc_data);
259 os << "bc_data = ";
260 std::vector<char>::iterator vit = bc_data.begin();
261 for (; vit != bc_data.end(); vit++) {
262 os << std::hex << (int)((unsigned char)*vit) << " ";
263 }
264 os << ": ";
265 vit = bc_data.begin();
266 for (; vit != bc_data.end(); vit++) {
267 os << *vit;
268 }
269 os << std::endl;
271}

◆ printBlockHeaderData()

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 178 of file BCMultiIndices.cpp.

178 {
180 if (tagBlockHeaderData != nullptr) {
181 std::vector<unsigned int> material_data;
182 getBlockHeaderData(material_data);
183 os << "block_header_data = ";
184 std::vector<unsigned int>::iterator vit = material_data.begin();
185 for (; vit != material_data.end(); vit++) {
186 os << std::hex << (int)((unsigned int)*vit) << " ";
187 }
188 os << ": ";
189 vit = material_data.begin();
190 for (; vit != material_data.end(); vit++) {
191 os << *vit;
192 }
193 os << std::endl;
194 } else {
195 os << "no block header data" << std::endl;
196 }
198}
MoFEMErrorCode getBlockHeaderData(std::vector< unsigned int > &material_data) const
get block_headers vector from MoFEM database

◆ printName()

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 208 of file BCMultiIndices.cpp.

208 {
210 std::string name = getName();
211 os << std::endl;
212 os << "Block name: " << name << std::endl;
214}

◆ setAttributeDataStructure()

template<class ATTRIBUTE_TYPE >
MoFEMErrorCode MoFEM::CubitMeshSets::setAttributeDataStructure ( const ATTRIBUTE_TYPE &  data)
inline

fill meshset data with data on structure

Definition at line 279 of file BCMultiIndices.hpp.

279 {
281 if ((cubitBcType & data.getType()).none()) {
282 SETERRQ(PETSC_COMM_SELF, MOFEM_DATA_INCONSISTENCY,
283 "attributes are not for ATTRIBUTE_TYPE structure");
284 }
285 double *ptr = const_cast<double *>(tagBlockAttributes);
286 CHKERR data.set_data(ptr, 8 * tagBlockAttributesSize);
288 }

◆ setAttributes()

MoFEMErrorCode MoFEM::CubitMeshSets::setAttributes ( moab::Interface &  moab,
const std::vector< double > &  attributes 
)

cet Cubit block attributes

Parameters
attributesis the vector where the block attribute data will be stored

Definition at line 285 of file BCMultiIndices.cpp.

286 {
287
289 int tag_size[] = {(int)attributes.size()};
290 void const *tag_data[] = {&*attributes.begin()};
291 CHKERR moab.tag_set_by_ptr(thBlockAttribs, &meshset, 1, tag_data, tag_size);
292 CHKERR moab.tag_get_by_ptr(thBlockAttribs, &meshset, 1,
293 (const void **)&tagBlockAttributes,
296}

◆ setBcDataStructure()

template<class CUBIT_BC_DATA_TYPE >
MoFEMErrorCode MoFEM::CubitMeshSets::setBcDataStructure ( CUBIT_BC_DATA_TYPE &  data)
inline

Definition at line 306 of file BCMultiIndices.hpp.

306 {
308
309 char *ptr = const_cast<char *>(tagBcData);
310 ierr = data.set_data(ptr, tagBcSize);
311 CHKERRG(ierr);
313 }

Friends And Related Function Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const CubitMeshSets e 
)
friend

Definition at line 341 of file BCMultiIndices.cpp.

341 {
342 // get name of cubit meshset
343 std::ostringstream ss;
344 unsigned jj = 0;
345 while (1 << jj != LASTSET_BC) {
346 const CubitBCType jj_bc_type = 1 << jj;
347 if ((e.cubitBcType & jj_bc_type).any()) {
348 string bc_type_name;
349 ss << " " << string(CubitBCNames[jj + 1]);
350 }
351 ++jj;
352 }
353
354 // push data to stream
355 os << "meshset " << e.meshset << " type" << ss.str();
356 if (e.msId != nullptr)
357 os << " msId " << *(e.msId);
358 if (e.tagName != nullptr) {
359 os << " name " << e.getName();
360 }
361 if (e.tagBlockHeaderData != nullptr) {
362 os << " block header: ";
363 os << " blockCol = " << e.tagBlockHeaderData[0];
364 os << " blockMat = " << e.tagBlockHeaderData[1];
365 os << " blockDimension = " << e.tagBlockHeaderData[2];
366 }
367 return os;
368}
@ LASTSET_BC
Definition: definitions.h:166
static const char *const CubitBCNames[]
Names of types of sets and boundary conditions.
Definition: definitions.h:175
std::bitset< 32 > CubitBCType
Definition: Types.hpp:52

Member Data Documentation

◆ bhTag

Tag MoFEM::CubitMeshSets::bhTag

Definition at line 317 of file BCMultiIndices.hpp.

◆ bhTag_header

Tag MoFEM::CubitMeshSets::bhTag_header

Definition at line 317 of file BCMultiIndices.hpp.

◆ cubitBcType

CubitBCType MoFEM::CubitMeshSets::cubitBcType

type of meshset from cubit NodeSet, BlockSet, SideSet and more

Definition at line 22 of file BCMultiIndices.hpp.

◆ entityNameTag

Tag MoFEM::CubitMeshSets::entityNameTag

Definition at line 318 of file BCMultiIndices.hpp.

◆ meshset

EntityHandle MoFEM::CubitMeshSets::meshset

Definition at line 21 of file BCMultiIndices.hpp.

◆ meshsetsMask

const CubitBCType MoFEM::CubitMeshSets::meshsetsMask

Definition at line 33 of file BCMultiIndices.hpp.

◆ msId

int* MoFEM::CubitMeshSets::msId

cubit meshset ID

Definition at line 26 of file BCMultiIndices.hpp.

◆ nsTag

Tag MoFEM::CubitMeshSets::nsTag

Definition at line 317 of file BCMultiIndices.hpp.

◆ nsTag_data

Tag MoFEM::CubitMeshSets::nsTag_data

Definition at line 317 of file BCMultiIndices.hpp.

◆ ssTag

Tag MoFEM::CubitMeshSets::ssTag

Definition at line 317 of file BCMultiIndices.hpp.

◆ ssTag_data

Tag MoFEM::CubitMeshSets::ssTag_data

Definition at line 317 of file BCMultiIndices.hpp.

◆ tag_handles

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.

◆ tagBcData

char* MoFEM::CubitMeshSets::tagBcData

Definition at line 27 of file BCMultiIndices.hpp.

◆ tagBcSize

int MoFEM::CubitMeshSets::tagBcSize

Definition at line 28 of file BCMultiIndices.hpp.

◆ tagBlockAttributes

double* MoFEM::CubitMeshSets::tagBlockAttributes

Definition at line 30 of file BCMultiIndices.hpp.

◆ tagBlockAttributesSize

int MoFEM::CubitMeshSets::tagBlockAttributesSize

Definition at line 31 of file BCMultiIndices.hpp.

◆ tagBlockHeaderData

unsigned int* MoFEM::CubitMeshSets::tagBlockHeaderData

Definition at line 29 of file BCMultiIndices.hpp.

◆ tagName

char* MoFEM::CubitMeshSets::tagName

Definition at line 32 of file BCMultiIndices.hpp.

◆ thBlockAttribs

Tag MoFEM::CubitMeshSets::thBlockAttribs

Definition at line 317 of file BCMultiIndices.hpp.


The documentation for this struct was generated from the following files: