v0.14.0
Public Member Functions | Public Attributes | Protected Attributes | Friends | List of all members
EshelbianPlasticity::FeTractionBc Struct Reference

#include <users_modules/eshelbian_plasticit/src/EshelbianPlasticity.hpp>

Inheritance diagram for EshelbianPlasticity::FeTractionBc:
[legend]
Collaboration diagram for EshelbianPlasticity::FeTractionBc:
[legend]

Public Member Functions

 FeTractionBc (MoFEM::Interface &m_field, const std::string field_name, boost::shared_ptr< TractionBcVec > &bc)
 
MoFEMErrorCode preProcess ()
 
MoFEMErrorCode postProcess ()
 

Public Attributes

int nbConstrainsDofs
 

Protected Attributes

MoFEM::InterfacemField
 
boost::shared_ptr< TractionBcVecbcData
 
std::string fieldName
 

Friends

MoFEMErrorCode OpTractionBc::doWork (int side, EntityType type, EntData &data)
 

Detailed Description

Definition at line 624 of file EshelbianPlasticity.hpp.

Constructor & Destructor Documentation

◆ FeTractionBc()

EshelbianPlasticity::FeTractionBc::FeTractionBc ( MoFEM::Interface m_field,
const std::string  field_name,
boost::shared_ptr< TractionBcVec > &  bc 
)
inline

Definition at line 626 of file EshelbianPlasticity.hpp.

628  : FEMethod(), mField(m_field), bcData(bc), fieldName(field_name) {}

Member Function Documentation

◆ postProcess()

MoFEMErrorCode EshelbianPlasticity::FeTractionBc::postProcess ( )
inline

Definition at line 630 of file EshelbianPlasticity.hpp.

630 { return 0; }

◆ preProcess()

MoFEMErrorCode EshelbianPlasticity::FeTractionBc::preProcess ( )

Definition at line 1056 of file EshelbianOperators.cpp.

1056  {
1058 
1059  struct FaceRule {
1060  int operator()(int p_row, int p_col, int p_data) const {
1061  return 2 * (p_data + 1);
1062  }
1063  };
1064 
1065  if (ts_ctx == CTX_TSSETIFUNCTION) {
1066 
1067  // Loop boundary elements with traction boundary conditions
1070  {HDIV});
1071  fe.getOpPtrVector().push_back(
1072  new OpTractionBc(std::string("P") /* + "_RT"*/, *this));
1073  fe.getRuleHook = FaceRule();
1074  fe.ts_t = ts_t;
1075  CHKERR mField.loop_finite_elements(problemPtr->getName(), "ESSENTIAL_BC",
1076  fe, nullptr, MF_ZERO,
1077  this->getCacheWeakPtr());
1078  }
1079 
1081 }

Friends And Related Function Documentation

◆ OpTractionBc::doWork

MoFEMErrorCode OpTractionBc::doWork ( int  side,
EntityType  type,
EntData data 
)
friend

Member Data Documentation

◆ bcData

boost::shared_ptr<TractionBcVec> EshelbianPlasticity::FeTractionBc::bcData
protected

Definition at line 637 of file EshelbianPlasticity.hpp.

◆ fieldName

std::string EshelbianPlasticity::FeTractionBc::fieldName
protected

Definition at line 638 of file EshelbianPlasticity.hpp.

◆ mField

MoFEM::Interface& EshelbianPlasticity::FeTractionBc::mField
protected

Definition at line 636 of file EshelbianPlasticity.hpp.

◆ nbConstrainsDofs

int EshelbianPlasticity::FeTractionBc::nbConstrainsDofs

Definition at line 625 of file EshelbianPlasticity.hpp.


The documentation for this struct was generated from the following files:
MoFEM::CoreInterface::loop_finite_elements
virtual MoFEMErrorCode loop_finite_elements(const std::string problem_name, const std::string &fe_name, FEMethod &method, boost::shared_ptr< NumeredEntFiniteElement_multiIndex > fe_ptr=nullptr, MoFEMTypes bh=MF_EXIST, CacheTupleWeakPtr cache_ptr=CacheTupleSharedPtr(), int verb=DEFAULT_VERBOSITY)=0
Make a loop over finite elements.
ts_ctx
MoFEM::TsCtx * ts_ctx
Definition: level_set.cpp:1932
FEMethod
CHKERR
#define CHKERR
Inline error check.
Definition: definitions.h:535
MoFEM::FaceElementForcesAndSourcesCore
Face finite element.
Definition: FaceElementForcesAndSourcesCore.hpp:23
FaceRule
Set integration rule to boundary elements.
Definition: simple_interface.cpp:91
field_name
constexpr auto field_name
Definition: poisson_2d_homogeneous.cpp:13
MoFEM::AddHOOps
Add operators pushing bases from local to physical configuration.
Definition: HODataOperators.hpp:503
EshelbianPlasticity::FeTractionBc::fieldName
std::string fieldName
Definition: EshelbianPlasticity.hpp:638
EshelbianPlasticity::FeTractionBc::mField
MoFEM::Interface & mField
Definition: EshelbianPlasticity.hpp:636
MF_ZERO
@ MF_ZERO
Definition: definitions.h:98
MoFEMFunctionReturn
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:416
EshelbianPlasticity::FeTractionBc::bcData
boost::shared_ptr< TractionBcVec > bcData
Definition: EshelbianPlasticity.hpp:637
MoFEMFunctionBegin
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:346