v0.14.0
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 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
 
doubletagBlockAttributes = 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)
 

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 268 of file BCMultiIndices.hpp.

268  {
270  if ((cubitBcType & data.getType()).none()) {
271  SETERRQ(PETSC_COMM_SELF, MOFEM_DATA_INCONSISTENCY,
272  "attributes are not for ATTRIBUTE_TYPE structure");
273  }
274  std::vector<double> attributes;
275  CHKERR getAttributes(attributes);
276  CHKERR data.fill_data(attributes);
278  }

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

290  {
292  attributes.resize(tagBlockAttributesSize);
293  if (tagBlockAttributesSize > 0) {
295  attributes.begin());
296  }
298 }

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

176  {
178  bc_data.resize(tagBcSize);
179  copy(&tagBcData[0], &tagBcData[tagBcSize], bc_data.begin());
181 }

◆ getBcDataStructure()

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

Definition at line 296 of file BCMultiIndices.hpp.

296  {
298 
299  if ((cubitBcType & data.tYpe).none()) {
300  SETERRQ(PETSC_COMM_SELF, MOFEM_DATA_INCONSISTENCY,
301  "bc_data are not for CUBIT_BC_DATA_TYPE structure");
302  }
303  std::vector<char> bc_data;
304  getBcData(bc_data);
305  ierr = data.fill_data(bc_data);
306  CHKERRG(ierr);
308  }

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

184  {
186  material_data.resize(3);
187  copy(&tagBlockHeaderData[0], &tagBlockHeaderData[3], material_data.begin());
189 }

◆ getMaksedBcTypeULong()

DEPRECATED unsigned long int MoFEM::CubitMeshSets::getMaksedBcTypeULong ( ) const
inline
Deprecated:
use getMaskedBcTypeULong

Definition at line 81 of file BCMultiIndices.hpp.

81  {
82  return (cubitBcType & meshsetsMask).to_ulong();
83  }

◆ getMaskedBcTypeULong()

unsigned long int MoFEM::CubitMeshSets::getMaskedBcTypeULong ( ) 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  }

◆ 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 92 of file BCMultiIndices.hpp.

92  {
94  return tagBlockHeaderData[2];
95  else
96  return -1;
97  }

◆ 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 ? *msId : -1; }

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

164  {
166  rval = moab.get_entities_by_type(meshset, type, entities, recursive);
167  if (rval != MB_SUCCESS) {
168  std::ostringstream ss;
169  ss << "bc set " << *this << std::endl;
170  PetscPrintf(PETSC_COMM_WORLD, ss.str().c_str());
171  }
172  CHKERR rval;
174 }

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

213  {
214  if (tagName != nullptr) {
215  return std::string(tagName);
216  } else {
217  return "NoNameSet";
218  }
219 }

◆ getTagsHandlers()

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

Definition at line 8 of file BCMultiIndices.cpp.

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

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

231  {
233 
234  // See CubitBCType in common.hpp
235  if (bc_data.size() == 0) {
237  }
238 
241  UNKNOWNNAME);
242  if (strcmp(&bc_data[0], "Displacement") == 0)
244  else if (strcmp(&bc_data[0], "Force") == 0)
245  type |= FORCESET;
246  else if (strcmp(&bc_data[0], "Velocity") == 0)
247  type |= VELOCITYSET;
248  else if (strcmp(&bc_data[0], "Acceleration") == 0)
250  else if (strcmp(&bc_data[0], "Temperature") == 0)
251  type |= TEMPERATURESET;
252  else if (strcmp(&bc_data[0], "Pressure") == 0)
253  type |= PRESSURESET;
254  else if (strcmp(&bc_data[0], "HeatFlux") == 0)
255  type |= HEATFLUXSET;
256  else if (strcmp(&bc_data[0], "cfd_bc") == 0)
257  type |= INTERFACESET;
258  else
259  type |= UNKNOWNNAME;
260 
262 }

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

263  {
265  std::vector<char> bc_data;
266  CHKERR getBcData(bc_data);
267  CHKERR getTypeFromBcData(bc_data, type);
269 }

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

329  {
331  // See CubitBCType in common.hpp
333  BODYFORCESSET);
334 
335  if (name.compare(0, 11, "MAT_ELASTIC") == 0) {
336  type |= MAT_ELASTICSET;
337  } else if (name.compare(0, 11, "MAT_THERMAL") == 0) {
338  type |= MAT_THERMALSET;
339  } else if (name.compare(0, 12, "MAT_MOISTURE") == 0) {
341  } else if (name.compare(0, 10, "MAT_INTERF") == 0) {
342  type |= MAT_INTERFSET;
343  } else if (name.compare(0, 11, "BODY_FORCES") == 0) {
344  type |= BODYFORCESSET;
345  }
346  // To be extended as appropriate
347  else {
348  type |= UNKNOWNNAME;
349  }
351 }

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

353  {
355  std::string name = getName();
356  CHKERR getTypeFromName(name, type);
358 }

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

314  {
316  std::vector<double> attributes;
317  CHKERR getAttributes(attributes);
318  os << std::endl;
319  os << "Block attributes" << std::endl;
320  os << "----------------" << std::endl;
321  for (unsigned int ii = 0; ii < attributes.size(); ii++) {
322  os << "attr. no: " << ii + 1 << " value: " << attributes[ii] << std::endl;
323  }
324  os << std::endl;
326 }

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

271  {
273  std::vector<char> bc_data;
274  CHKERR getBcData(bc_data);
275  os << "bc_data = ";
276  std::vector<char>::iterator vit = bc_data.begin();
277  for (; vit != bc_data.end(); vit++) {
278  os << std::hex << (int)((unsigned char)*vit) << " ";
279  }
280  os << ": ";
281  vit = bc_data.begin();
282  for (; vit != bc_data.end(); vit++) {
283  os << *vit;
284  }
285  os << std::endl;
287 }

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

191  {
193  if (tagBlockHeaderData != nullptr) {
194  std::vector<unsigned int> material_data;
195  getBlockHeaderData(material_data);
196  os << "block_header_data = ";
197  std::vector<unsigned int>::iterator vit = material_data.begin();
198  for (; vit != material_data.end(); vit++) {
199  os << std::hex << (int)((unsigned int)*vit) << " ";
200  }
201  os << ": ";
202  vit = material_data.begin();
203  for (; vit != material_data.end(); vit++) {
204  os << *vit;
205  }
206  os << std::endl;
207  } else {
208  os << "no block header data" << std::endl;
209  }
211 }

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

221  {
223  std::string name = getName();
224  os << std::endl;
225  os << "Block name: " << name << std::endl;
227 }

◆ setAttributeDataStructure()

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

fill meshset data with data on structure

Definition at line 284 of file BCMultiIndices.hpp.

284  {
286  if ((cubitBcType & data.getType()).none()) {
287  SETERRQ(PETSC_COMM_SELF, MOFEM_DATA_INCONSISTENCY,
288  "attributes are not for ATTRIBUTE_TYPE structure");
289  }
290  double *ptr = const_cast<double *>(tagBlockAttributes);
291  CHKERR data.set_data(ptr, 8 * tagBlockAttributesSize);
293  }

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

302  {
303 
305  int tag_size[] = {(int)attributes.size()};
306  void const *tag_data[] = {&*attributes.begin()};
307  CHKERR moab.tag_set_by_ptr(thBlockAttribs, &meshset, 1, tag_data, tag_size);
308  CHKERR moab.tag_get_by_ptr(thBlockAttribs, &meshset, 1,
309  (const void **)&tagBlockAttributes,
312 }

◆ setBcDataStructure()

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

Definition at line 311 of file BCMultiIndices.hpp.

311  {
313 
314  char *ptr = const_cast<char *>(tagBcData);
315  ierr = data.set_data(ptr, tagBcSize);
316  CHKERRG(ierr);
318  }

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 360 of file BCMultiIndices.cpp.

360  {
361  // get name of cubit meshset
362  std::ostringstream ss;
363  unsigned jj = 0;
364  while (1 << jj != LASTSET_BC) {
365  const CubitBCType jj_bc_type = 1 << jj;
366  if ((e.cubitBcType & jj_bc_type).any()) {
367  string bc_type_name;
368  ss << " " << string(CubitBCNames[jj + 1]);
369  }
370  ++jj;
371  }
372 
373  // push data to stream
374  os << "meshset " << e.meshset << " type" << ss.str();
375  if (e.msId != nullptr)
376  os << " msId " << *(e.msId);
377  if (e.tagName != nullptr) {
378  os << " name " << e.getName();
379  }
380  if (e.tagBlockHeaderData != nullptr) {
381  os << " block header: ";
382  os << " blockCol = " << e.tagBlockHeaderData[0];
383  os << " blockMat = " << e.tagBlockHeaderData[1];
384  os << " blockDimension = " << e.tagBlockHeaderData[2];
385  }
386  return os;
387 }

Member Data Documentation

◆ bhTag

Tag MoFEM::CubitMeshSets::bhTag

Definition at line 322 of file BCMultiIndices.hpp.

◆ bhTag_header

Tag MoFEM::CubitMeshSets::bhTag_header

Definition at line 322 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 323 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 = nullptr

cubit meshset ID

Definition at line 26 of file BCMultiIndices.hpp.

◆ nsTag

Tag MoFEM::CubitMeshSets::nsTag

Definition at line 322 of file BCMultiIndices.hpp.

◆ nsTag_data

Tag MoFEM::CubitMeshSets::nsTag_data

Definition at line 322 of file BCMultiIndices.hpp.

◆ ssTag

Tag MoFEM::CubitMeshSets::ssTag

Definition at line 322 of file BCMultiIndices.hpp.

◆ ssTag_data

Tag MoFEM::CubitMeshSets::ssTag_data

Definition at line 322 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 = nullptr

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 = nullptr

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 = nullptr

Definition at line 29 of file BCMultiIndices.hpp.

◆ tagName

char* MoFEM::CubitMeshSets::tagName = nullptr

Definition at line 32 of file BCMultiIndices.hpp.

◆ thBlockAttribs

Tag MoFEM::CubitMeshSets::thBlockAttribs

Definition at line 322 of file BCMultiIndices.hpp.


The documentation for this struct was generated from the following files:
CubitBCNames
const static char *const CubitBCNames[]
Names of types of sets and boundary conditions.
Definition: definitions.h:175
MoFEMFunctionReturnHot
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:447
MoFEM::CubitMeshSets::cubitBcType
CubitBCType cubitBcType
Definition: BCMultiIndices.hpp:22
MoFEM::CubitMeshSets::msId
int * msId
cubit meshset ID
Definition: BCMultiIndices.hpp:26
MoFEM::CubitMeshSets::bhTag
Tag bhTag
Definition: BCMultiIndices.hpp:322
PRESSURESET
@ PRESSURESET
Definition: definitions.h:152
MoFEM::CubitMeshSets::bhTag_header
Tag bhTag_header
Definition: BCMultiIndices.hpp:322
MoFEM::CubitMeshSets::tagBcSize
int tagBcSize
Definition: BCMultiIndices.hpp:28
MoFEM::CubitMeshSets::tagBlockAttributes
double * tagBlockAttributes
Definition: BCMultiIndices.hpp:30
MoFEM::CubitMeshSets::tagName
char * tagName
Definition: BCMultiIndices.hpp:32
MoFEM::CubitMeshSets::entityNameTag
Tag entityNameTag
Definition: BCMultiIndices.hpp:323
MoFEM::CubitMeshSets::thBlockAttribs
Tag thBlockAttribs
Definition: BCMultiIndices.hpp:322
UNKNOWNNAME
@ UNKNOWNNAME
Definition: definitions.h:158
MoFEM::CubitMeshSets::nsTag
Tag nsTag
Definition: BCMultiIndices.hpp:322
MoFEM::Exceptions::rval
static MoFEMErrorCodeGeneric< moab::ErrorCode > rval
Definition: Exceptions.hpp:74
MoFEM::CubitMeshSets::getName
std::string getName() const
get name of block, sideset etc. (this is set in Cubit block properties)
Definition: BCMultiIndices.cpp:213
CHKERR
#define CHKERR
Inline error check.
Definition: definitions.h:535
FORCESET
@ FORCESET
Definition: definitions.h:151
MAT_THERMALSET
@ MAT_THERMALSET
block name is "MAT_THERMAL"
Definition: definitions.h:161
BODYFORCESSET
@ BODYFORCESSET
block name is "BODY_FORCES"
Definition: definitions.h:162
convert.type
type
Definition: convert.py:64
ACCELERATIONSET
@ ACCELERATIONSET
Definition: definitions.h:154
MAT_ELASTICSET
@ MAT_ELASTICSET
block name is "MAT_ELASTIC"
Definition: definitions.h:159
DISPLACEMENTSET
@ DISPLACEMENTSET
Definition: definitions.h:150
INTERFACESET
@ INTERFACESET
Definition: definitions.h:157
MoFEM::CubitMeshSets::meshset
EntityHandle meshset
Definition: BCMultiIndices.hpp:21
MoFEM::CubitMeshSets::ssTag
Tag ssTag
Definition: BCMultiIndices.hpp:322
MoFEM::CubitMeshSets::tagBlockAttributesSize
int tagBlockAttributesSize
Definition: BCMultiIndices.hpp:31
VELOCITYSET
@ VELOCITYSET
Definition: definitions.h:153
MoFEM::CubitMeshSets::meshsetsMask
const CubitBCType meshsetsMask
Definition: BCMultiIndices.hpp:33
LASTSET_BC
@ LASTSET_BC
Definition: definitions.h:166
MoFEM::CubitMeshSets::tagBlockHeaderData
unsigned int * tagBlockHeaderData
Definition: BCMultiIndices.hpp:29
MoFEM::Types::CubitBCType
std::bitset< 32 > CubitBCType
Definition: Types.hpp:52
MoFEM::CubitMeshSets::getAttributes
MoFEMErrorCode getAttributes(std::vector< double > &attributes) const
get Cubit block attributes
Definition: BCMultiIndices.cpp:290
MoFEM::CubitMeshSets::getBcData
MoFEMErrorCode getBcData(std::vector< char > &bc_data) const
get bc_data vector from MoFEM database
Definition: BCMultiIndices.cpp:176
MoFEM::Exceptions::ierr
static MoFEMErrorCodeGeneric< PetscErrorCode > ierr
Definition: Exceptions.hpp:76
MOFEM_DATA_INCONSISTENCY
@ MOFEM_DATA_INCONSISTENCY
Definition: definitions.h:31
TEMPERATURESET
@ TEMPERATURESET
Definition: definitions.h:155
MoFEM::CubitMeshSets::getTypeFromName
MoFEMErrorCode getTypeFromName(const std::string &name, CubitBCType &type) const
Function that returns the CubitBCType type of the block name, sideset name etc.
Definition: BCMultiIndices.cpp:328
MoFEM::CubitMeshSets::nsTag_data
Tag nsTag_data
Definition: BCMultiIndices.hpp:322
MAT_INTERFSET
@ MAT_INTERFSET
Definition: definitions.h:160
MoFEM::CubitMeshSets::getTypeFromBcData
MoFEMErrorCode getTypeFromBcData(const std::vector< char > &bc_data, CubitBCType &type) const
Function that returns the CubitBCType type of the contents of bc_data.
Definition: BCMultiIndices.cpp:230
MoFEMFunctionBeginHot
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:440
HEATFLUXSET
@ HEATFLUXSET
Definition: definitions.h:156
MoFEM::CubitMeshSets::ssTag_data
Tag ssTag_data
Definition: BCMultiIndices.hpp:322
convert.int
int
Definition: convert.py:64
MoFEMFunctionReturn
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:416
MoFEM::CubitMeshSets::getBlockHeaderData
MoFEMErrorCode getBlockHeaderData(std::vector< unsigned int > &material_data) const
get block_headers vector from MoFEM database
Definition: BCMultiIndices.cpp:183
MAT_MOISTURESET
@ MAT_MOISTURESET
block name is "MAT_MOISTURE"
Definition: definitions.h:163
MoFEM::CubitMeshSets::tagBcData
char * tagBcData
Definition: BCMultiIndices.hpp:27
CHKERRG
#define CHKERRG(n)
Check error code of MoFEM/MOAB/PETSc function.
Definition: definitions.h:483
MoFEMFunctionBegin
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:346