v0.13.1
Loading...
Searching...
No Matches
Public Member Functions | List of all members
FractureMechanics::GriffithForceElement::OpRhs Struct Reference

#include <users_modules/fracture_mechanics/src/GriffithForceElement.hpp>

Inheritance diagram for FractureMechanics::GriffithForceElement::OpRhs:
[legend]
Collaboration diagram for FractureMechanics::GriffithForceElement::OpRhs:
[legend]

Public Member Functions

 OpRhs (int tag, BlockData &block_data, CommonData &common_data)
 
MoFEMErrorCode doWork (int side, EntityType type, DataForcesAndSourcesCore::EntData &data)
 
- Public Member Functions inherited from FractureMechanics::GriffithForceElement::AuxOp
 AuxOp (int tag, BlockData &block_data, CommonData &common_data)
 
MoFEMErrorCode setIndices (DataForcesAndSourcesCore::EntData &data)
 
MoFEMErrorCode setVariables (FaceElementForcesAndSourcesCore::UserDataOperator *fe_ptr, DataForcesAndSourcesCore::EntData &data)
 
MoFEMErrorCode setLambdaNodes (FaceElementForcesAndSourcesCore::UserDataOperator *fe_ptr, const std::string &lambda_field_name)
 
MoFEMErrorCode setLambdaIndices (FaceElementForcesAndSourcesCore::UserDataOperator *fe_ptr, const std::string &lambda_field_name)
 

Additional Inherited Members

- Public Attributes inherited from FractureMechanics::GriffithForceElement::AuxOp
int tAg
 
BlockDatablockData
 
CommonDatacommonData
 
ublas::vector< int > rowIndices
 
ublas::vector< int > rowIndicesLocal
 
VectorInt3 rowLambdaIndices
 
VectorInt3 rowLambdaIndicesLocal
 
VectorDouble3 lambdaAtNodes
 
VectorDouble activeVariables
 

Detailed Description

Definition at line 330 of file GriffithForceElement.hpp.

Constructor & Destructor Documentation

◆ OpRhs()

FractureMechanics::GriffithForceElement::OpRhs::OpRhs ( int  tag,
BlockData block_data,
CommonData common_data 
)
inline

Definition at line 332 of file GriffithForceElement.hpp.

333 : FaceElementForcesAndSourcesCore::UserDataOperator(
334 "MESH_NODE_POSITIONS", UserDataOperator::OPROW),
335 AuxOp(tag, block_data, common_data) {}
AuxOp(int tag, BlockData &block_data, CommonData &common_data)

Member Function Documentation

◆ doWork()

MoFEMErrorCode FractureMechanics::GriffithForceElement::OpRhs::doWork ( int  side,
EntityType  type,
DataForcesAndSourcesCore::EntData &  data 
)
inline

Definition at line 336 of file GriffithForceElement.hpp.

337 {
339
340 if (type != MBVERTEX)
342 CHKERR setIndices(data);
343 CHKERR setVariables(this, data);
344 int nb_dofs = data.getIndices().size();
345
347 getFEMethod()->snes_f, nb_dofs, &*rowIndices.data().begin(),
348 &*commonData.griffithForce.data().begin(), ADD_VALUES);
350 }
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:447
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:346
#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
MoFEMErrorCode setVariables(FaceElementForcesAndSourcesCore::UserDataOperator *fe_ptr, DataForcesAndSourcesCore::EntData &data)
MoFEMErrorCode setIndices(DataForcesAndSourcesCore::EntData &data)
VectorDouble griffithForce
Griffith force at nodes.

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