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

#include <users_modules/eshelbian_plasticty/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 919 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 
)

Definition at line 921 of file EshelbianPlasticity.hpp.

923  : FEMethod(), mField(m_field), bcData(bc), fieldName(field_name) {}
boost::shared_ptr< TractionBcVec > bcData

Member Function Documentation

◆ postProcess()

MoFEMErrorCode EshelbianPlasticity::FeTractionBc::postProcess ( )

Definition at line 925 of file EshelbianPlasticity.hpp.

925 { return 0; }

◆ preProcess()

MoFEMErrorCode EshelbianPlasticity::FeTractionBc::preProcess ( )

Definition at line 575 of file EshelbianOperators.cpp.

575  {
577 
578  struct FaceRule {
579  int operator()(int p_row, int p_col, int p_data) const {
580  return 2 * (p_data + 1);
581  }
582  };
583 
584  if (ts_ctx == CTX_TSSETIFUNCTION) {
585 
586  // Loop boundary elements with traction boundary conditions
588  fe.getOpPtrVector().push_back(
589  new OpTractionBc(std::string("P")/* + "_RT"*/, *this));
590  fe.getRuleHook = FaceRule();
591  fe.ts_t = ts_t;
592  CHKERR mField.loop_finite_elements(problemPtr->getName(), "ESSENTIAL_BC",
593  fe);
594  }
595 
597 }
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:476
Set integration rule to boundary elements.
Face finite elementUser is implementing own operator at Gauss point level, by own object derived from...
#define CHKERR
Inline error check.
Definition: definitions.h:595
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:406
DEPRECATED MoFEMErrorCode loop_finite_elements(const Problem *problem_ptr, const std::string &fe_name, FEMethod &method, int lower_rank, int upper_rank, MoFEMTypes bh, int verb=DEFAULT_VERBOSITY)

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 932 of file EshelbianPlasticity.hpp.

◆ fieldName

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

Definition at line 933 of file EshelbianPlasticity.hpp.

◆ mField

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

Definition at line 931 of file EshelbianPlasticity.hpp.

◆ nbConstrainsDofs

int EshelbianPlasticity::FeTractionBc::nbConstrainsDofs

Definition at line 920 of file EshelbianPlasticity.hpp.


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