v0.14.0
Public Member Functions | Public Attributes | List of all members
MoFEM::CubitMeshSets_change_name Struct Reference

change meshset name More...

#include <src/multi_indices/BCMultiIndices.hpp>

Collaboration diagram for MoFEM::CubitMeshSets_change_name:
[legend]

Public Member Functions

 CubitMeshSets_change_name (Interface &moab, const std::string &name)
 
void operator() (CubitMeshSets &e)
 

Public Attributes

InterfacemOab
 
std::string nAme
 

Detailed Description

change meshset name

Definition at line 402 of file BCMultiIndices.hpp.

Constructor & Destructor Documentation

◆ CubitMeshSets_change_name()

MoFEM::CubitMeshSets_change_name::CubitMeshSets_change_name ( Interface moab,
const std::string &  name 
)
inline

Definition at line 405 of file BCMultiIndices.hpp.

406  : mOab(moab), nAme(name){};

Member Function Documentation

◆ operator()()

void MoFEM::CubitMeshSets_change_name::operator() ( CubitMeshSets e)

Definition at line 389 of file BCMultiIndices.cpp.

389  {
390 
391  switch (e.cubitBcType.to_ulong()) {
392  case BLOCKSET: {
393  nAme.resize(NAME_TAG_SIZE);
394  CHKERR mOab.tag_set_data(e.entityNameTag, &e.meshset, 1, nAme.c_str());
395  CHKERR mOab.tag_get_by_ptr(e.entityNameTag, &e.meshset, 1,
396  (const void **)&e.tagName);
397 
399  CHKERR e.getTypeFromName(type);
400  e.cubitBcType |= type;
401  }; break;
402  case NODESET:
403  case SIDESET: {
404  nAme.resize(NAME_TAG_SIZE);
405  CHKERR mOab.tag_set_data(e.entityNameTag, &e.meshset, 1, nAme.c_str());
406  CHKERR mOab.tag_get_by_ptr(e.entityNameTag, &e.meshset, 1,
407  (const void **)&e.tagName);
408  }; break;
409  default:
410  THROW_MESSAGE("not implemented for this CubitBC type");
411  }
412 }

Member Data Documentation

◆ mOab

Interface& MoFEM::CubitMeshSets_change_name::mOab

Definition at line 403 of file BCMultiIndices.hpp.

◆ nAme

std::string MoFEM::CubitMeshSets_change_name::nAme

Definition at line 404 of file BCMultiIndices.hpp.


The documentation for this struct was generated from the following files:
SIDESET
@ SIDESET
Definition: definitions.h:160
THROW_MESSAGE
#define THROW_MESSAGE(msg)
Throw MoFEM exception.
Definition: definitions.h:574
MoFEM::CubitMeshSets_change_name::mOab
Interface & mOab
Definition: BCMultiIndices.hpp:403
NODESET
@ NODESET
Definition: definitions.h:159
CHKERR
#define CHKERR
Inline error check.
Definition: definitions.h:548
convert.type
type
Definition: convert.py:64
MoFEM::CubitMeshSets_change_name::nAme
std::string nAme
Definition: BCMultiIndices.hpp:404
MoFEM::Types::CubitBCType
std::bitset< 32 > CubitBCType
Definition: Types.hpp:52
BLOCKSET
@ BLOCKSET
Definition: definitions.h:161