v0.15.0
Loading...
Searching...
No Matches
Classes | Functions
Boundary conditions
Collaboration diagram for Boundary conditions:

Classes

struct  MoFEM::CubitMeshSets
 this struct keeps basic methods for moab meshset about material and boundary conditions More...
 
struct  MoFEM::GenericCubitBcData
 Generic bc data structure. More...
 
struct  MoFEM::DisplacementCubitBcData
 Definition of the displacement bc data structure. More...
 
struct  MoFEM::ForceCubitBcData
 Definition of the force bc data structure. More...
 
struct  MoFEM::VelocityCubitBcData
 Definition of the velocity bc data structure. More...
 
struct  MoFEM::AccelerationCubitBcData
 Definition of the acceleration bc data structure. More...
 
struct  MoFEM::TemperatureCubitBcData
 Definition of the temperature bc data structure. More...
 
struct  MoFEM::PressureCubitBcData
 Definition of the pressure bc data structure. More...
 
struct  MoFEM::HeatFluxCubitBcData
 Definition of the heat flux bc data structure. More...
 
struct  MoFEM::CfgCubitBcData
 Definition of the cfd_bc data structure. More...
 

Functions

MoFEMErrorCode MoFEM::MeshsetsManager::deleteMeshset (const CubitBCType cubit_bc_type, const int ms_id, const MoFEMTypes bh=MF_EXIST)
 delete cubit meshset
 

Detailed Description

Function Documentation

◆ deleteMeshset()

MoFEMErrorCode MoFEM::MeshsetsManager::deleteMeshset ( const CubitBCType  cubit_bc_type,
const int  ms_id,
const MoFEMTypes  bh = MF_EXIST 
)

#include <src/interfaces/MeshsetsManager.hpp>

delete cubit meshset

Parameters
seeCubitBC (NODESET, SIDESET or BLOCKSET and more)
ms_idid of the BLOCKSET/SIDESET/BLOCKSET: from CUBIT

Definition at line 564 of file MeshsetsManager.cpp.

566 {
567 Interface &m_field = cOre;
568 moab::Interface &moab = m_field.get_moab();
570 auto miit =
571 cubitMeshsets.get<Composite_Cubit_msId_And_MeshsetType_mi_tag>().find(
572 boost::make_tuple(ms_id, cubit_bc_type.to_ulong()));
573 if (miit ==
574 cubitMeshsets.get<Composite_Cubit_msId_And_MeshsetType_mi_tag>().end()) {
575 if (bh & MF_EXIST) {
576 SETERRQ(m_field.get_comm(), MOFEM_DATA_INCONSISTENCY,
577 "meshset not found id = %d", ms_id);
578 } else {
580 }
581 }
582 EntityHandle meshset = miit->getMeshset();
583 cubitMeshsets.get<Composite_Cubit_msId_And_MeshsetType_mi_tag>().erase(miit);
584 CHKERR moab.delete_entities(&meshset, 1);
585
587}
@ MF_EXIST
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
@ MOFEM_DATA_INCONSISTENCY
Definition definitions.h:31
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
#define CHKERR
Inline error check.
DeprecatedCoreInterface Interface
moab::Interface & get_moab()
Definition Core.hpp:322
CubitMeshSet_multiIndex cubitMeshsets
cubit meshsets
MoFEM::Core & cOre
Reference to MoFEM Core interface.