No Matches
Classes | Public Member Functions | Public Attributes | Private Attributes | List of all members
BodyForceConstantField Struct Reference

Body forces elements. More...

#include <users_modules/basic_finite_elements/src/BodyForce.hpp>

Collaboration diagram for BodyForceConstantField:


struct  MyVolumeFE
struct  OpBodyForce

Public Member Functions

MyVolumeFEgetLoopFe ()
 BodyForceConstantField (MoFEM::Interface &m_field)
MoFEMErrorCode addBlock (const std::string field_name, Vec F, int ms_id)

Public Attributes

MyVolumeFE fe

Private Attributes

std::map< int, Block_BodyForces > mapData

Detailed Description

Body forces elements.


Definition at line 12 of file BodyForce.hpp.

Constructor & Destructor Documentation

◆ BodyForceConstantField()

BodyForceConstantField::BodyForceConstantField ( MoFEM::Interface m_field)

Definition at line 25 of file BodyForce.hpp.

26 : mField(m_field), fe(m_field) {}
MoFEM::Interface & mField
Definition: BodyForce.hpp:14

Member Function Documentation

◆ addBlock()

MoFEMErrorCode BodyForceConstantField::addBlock ( const std::string  field_name,
Vec  F,
int  ms_id 

Definition at line 94 of file BodyForce.hpp.

94 {
95 const CubitMeshSets *cubit_meshset_ptr;
96 MeshsetsManager *mmanager_ptr;
98 CHKERR mField.getInterface(mmanager_ptr);
99 CHKERR mmanager_ptr->getCubitMeshsetPtr(ms_id, BLOCKSET,
100 &cubit_meshset_ptr);
101 CHKERR cubit_meshset_ptr->getAttributeDataStructure(mapData[ms_id]);
102 EntityHandle meshset = cubit_meshset_ptr->getMeshset();
103 Range tets;
104 CHKERR mField.get_moab().get_entities_by_type(meshset, MBTET, tets, true);
105 fe.getOpPtrVector().push_back(
106 new OpBodyForce(field_name, F, mapData[ms_id], tets));
108 }
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:346
Definition: definitions.h:148
#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
@ F
constexpr auto field_name
std::map< int, Block_BodyForces > mapData
Definition: BodyForce.hpp:111
virtual moab::Interface & get_moab()=0
boost::ptr_deque< UserDataOperator > & getOpPtrVector()
Use to push back operator for row operator.
MoFEMErrorCode getInterface(IFACE *&iface) const
Get interface refernce to pointer of interface.

◆ getLoopFe()

MyVolumeFE & BodyForceConstantField::getLoopFe ( )

Definition at line 23 of file BodyForce.hpp.

23{ return fe; }

Member Data Documentation

◆ fe

MyVolumeFE BodyForceConstantField::fe

Definition at line 22 of file BodyForce.hpp.

◆ mapData

std::map<int, Block_BodyForces> BodyForceConstantField::mapData

Definition at line 111 of file BodyForce.hpp.

◆ mField

MoFEM::Interface& BodyForceConstantField::mField

Definition at line 14 of file BodyForce.hpp.

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