v0.16.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
MatOps::GenericElastic Struct Reference

#include "src/materials/MatGenericElastic.hpp"

Inheritance diagram for MatOps::GenericElastic:
[legend]
Collaboration diagram for MatOps::GenericElastic:
[legend]

Public Member Functions

 GenericElastic (boost::shared_ptr< MatOpsData > mat_ops_data_ptr, int tag=-1)
 
MoFEMErrorCode getOptions (MoFEM::Interface *m_field_ptr=nullptr) override
 
MoFEMErrorCode recordTape () override
 
MoFEMErrorCode setParams (FEMethod *fe_ptr, int gg) override
 
- Public Member Functions inherited from MatOps::PhysicalEquations
 PhysicalEquations ()=delete
 
 PhysicalEquations (boost::shared_ptr< MatOpsData > mat_ops_data_ptr, int tag, boost::shared_ptr< std::map< int, Range > > tag_vs_range_ptr=nullptr)
 
virtual ~PhysicalEquations ()=default
 
virtual ForcesAndSourcesCore::UserDataOperator * createOp (boost::shared_ptr< PhysicalEquations > physical_ptr, bool eval_stress, bool eval_tangent, bool update)=0
 
virtual MoFEMErrorCode evaluateVariable (int tag, EntityHandle entity, int gg)
 
virtual MoFEMErrorCode evaluateDerivatives (int tag, EntityHandle entity, int gg)
 
virtual MoFEMErrorCode updateState (int tag, EntityHandle entity, int gg)
 

Additional Inherited Members

- Public Types inherited from MatOps::PhysicalEquations
using HookFunction = std::function< MoFEMErrorCode(boost::shared_ptr< MatOpsData >, int, EntityHandle, int)>
 
- Public Attributes inherited from MatOps::PhysicalEquations
HookFunction hookEvaluateVariable = AdolCEvaluation::evaluateVariable
 
HookFunction hookEvaluateDerivatives = AdolCEvaluation::evaluateDerivatives
 
HookFunction hookUpdateState = AdolCEvaluation::evaluateVariable
 
int tAg
 
boost::shared_ptr< std::map< int, Range > > tagVsRangePtr
 
std::vector< std::pair< Range, std::vector< double > > > paramVecByRange
 
boost::shared_ptr< MatOpsDatamatOpsDataPtr
 

Detailed Description

Examples
mofem/tutorials/vec-2_nonlinear_elasticity/src/NonlinearElasticExample.hpp.

Definition at line 8 of file MatGenericElastic.hpp.

Constructor & Destructor Documentation

◆ GenericElastic()

MatOps::GenericElastic::GenericElastic ( boost::shared_ptr< MatOpsData mat_ops_data_ptr,
int  tag = -1 
)

Definition at line 10 of file MatGenericElastic.cpp.

12 : PhysicalEquations(mat_ops_data_ptr, tag) {}

Member Function Documentation

◆ getOptions()

MoFEMErrorCode MatOps::GenericElastic::getOptions ( MoFEM::Interface m_field_ptr = nullptr)
overridevirtual

Implements MatOps::PhysicalEquations.

Definition at line 14 of file MatGenericElastic.cpp.

14 {
16 (void)m_field_ptr;
18}
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()

◆ recordTape()

MoFEMErrorCode MatOps::GenericElastic::recordTape ( )
overridevirtual

Implements MatOps::PhysicalEquations.

Definition at line 27 of file MatGenericElastic.cpp.

27 {
29 matOpsDataPtr->insertCommonData("grad", MatrixDouble());
30 matOpsDataPtr->insertCommonData("P", MatrixDouble());
31 matOpsDataPtr->insertCommonData("P_dF", MatrixDouble());
32 matOpsDataPtr->insertActiveData("F", MatrixDouble());
33 matOpsDataPtr->insertDependentData("P", MatrixDouble());
34 matOpsDataPtr->insertDependentDerivativesData("P_dF", MatrixDouble());
36}
UBlasMatrix< double > MatrixDouble
Definition Types.hpp:77
boost::shared_ptr< MatOpsData > matOpsDataPtr
Definition MatOps.hpp:154

◆ setParams()

MoFEMErrorCode MatOps::GenericElastic::setParams ( FEMethod fe_ptr,
int  gg 
)
overridevirtual

Implements MatOps::PhysicalEquations.

Definition at line 20 of file MatGenericElastic.cpp.

20 {
22 (void)fe_ptr;
23 (void)gg;
25}

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