11#ifndef MAT_ELASTIC_HPP
12#define MAT_ELASTIC_HPP
39 template <AssemblyType A, IntegrationType I,
typename DomainEleOp>
42 boost::ptr_deque<ForcesAndSourcesCore::UserDataOperator> &pip,
44 boost::shared_ptr<PhysicalEquations> physical_equations_ptr) {
46 constexpr int DIM = (MODEL_TYPE ==
MODEL_3D) ? 3 : 2;
51 physical_equations_ptr->matOpsDataPtr->getCommonDataPtr(
"grad");
52 auto m_P = physical_equations_ptr->matOpsDataPtr->getCommonDataPtr(
"P");
55 pip.push_back(physical_equations_ptr->createOp(physical_equations_ptr,
true,
57 pip.push_back(
new OpInternalForce(
field_name, m_P));
61 template <AssemblyType A, IntegrationType I,
typename DomainEleOp>
64 boost::ptr_deque<ForcesAndSourcesCore::UserDataOperator> &pip,
66 boost::shared_ptr<PhysicalEquations> physical_equations_ptr) {
68 constexpr int DIM = (MODEL_TYPE ==
MODEL_3D) ? 3 : 2;
71 using OpKPiola =
typename B::template OpGradTensorGrad<1, DIM, DIM, -1>;
73 physical_equations_ptr->matOpsDataPtr->getCommonDataPtr(
"grad");
75 physical_equations_ptr->matOpsDataPtr->getCommonDataPtr(
"P_dF");
78 pip.push_back(physical_equations_ptr->createOp(physical_equations_ptr,
86 boost::ptr_deque<ForcesAndSourcesCore::UserDataOperator> &pip,
88 boost::shared_ptr<PhysicalEquations> physical_equations_ptr) {
90 constexpr int DIM = (MODEL_TYPE ==
MODEL_3D) ? 3 : 2;
92 physical_equations_ptr->matOpsDataPtr->getCommonDataPtr(
"grad");
93 auto m_P = physical_equations_ptr->matOpsDataPtr->getCommonDataPtr(
"P");
96 pip.push_back(physical_equations_ptr->createOp(physical_equations_ptr,
103 boost::ptr_deque<ForcesAndSourcesCore::UserDataOperator> &pip,
105 boost::shared_ptr<PhysicalEquations> physical_equations_ptr) {
107 constexpr int DIM = (MODEL_TYPE ==
MODEL_3D) ? 3 : 2;
109 physical_equations_ptr->matOpsDataPtr->getCommonDataPtr(
"grad");
110 auto m_P = physical_equations_ptr->matOpsDataPtr->getCommonDataPtr(
"P");
113 pip.push_back(physical_equations_ptr->createOp(physical_equations_ptr,
true,
123std::map<int, boost::shared_ptr<PhysicalEquations>> &
127boost::shared_ptr<PhysicalEquations>
129 boost::shared_ptr<MatOpsData> mat_ops_data_ptr,
int tag);
132boost::shared_ptr<PhysicalEquations>
134 boost::shared_ptr<MatOpsData> mat_ops_data_ptr,
int tag);
137boost::shared_ptr<PhysicalEquations>
139 boost::shared_ptr<MatOpsData> mat_ops_data_ptr,
int tag);
142boost::shared_ptr<PhysicalEquations>
144 boost::shared_ptr<MatOpsData> mat_ops_data_ptr,
int tag);
147boost::shared_ptr<PhysicalEquations>
149 boost::shared_ptr<MatOpsData> mat_ops_data_ptr,
int tag);
152boost::shared_ptr<PhysicalEquations>
155 boost::shared_ptr<MatOpsData> mat_ops_data_ptr,
int tag);
158boost::shared_ptr<PhysicalEquations>
160 boost::shared_ptr<MatOpsData> mat_ops_data_ptr,
int tag);
163boost::shared_ptr<PhysicalEquations>
166 boost::shared_ptr<MatOpsData> mat_ops_data_ptr,
int tag);
177boost::shared_ptr<PhysicalEquations>
179 boost::shared_ptr<MatOpsData> mat_ops_data_ptr,
int tag);
#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()
std::map< int, boost::shared_ptr< PhysicalEquations > > & getMetaElasticMap(boost::shared_ptr< PhysicalEquations > meta_ptr)
boost::shared_ptr< PhysicalEquations > createMatOpsPhysicalEquationsPtr< ELASTICITY::MOONEYRIVLINWRIGGERSEQ63, MODEL_3D >(boost::shared_ptr< MatOpsData > mat_ops_data_ptr, int tag)
boost::shared_ptr< PhysicalEquations > createMatOpsPhysicalEquationsPtr< ELASTICITY::NEOHOOKEAN, MODEL_3D >(boost::shared_ptr< MatOpsData > mat_ops_data_ptr, int tag)
boost::shared_ptr< PhysicalEquations > createMatOpsPhysicalEquationsPtr< ELASTICITY::META, MODEL_2D_PLANE_STRAIN >(boost::shared_ptr< MatOpsData > mat_ops_data_ptr, int tag)
boost::shared_ptr< PhysicalEquations > createMatOpsPhysicalEquationsPtr< ELASTICITY::STVENANTKIRCHHOFF, MODEL_3D >(boost::shared_ptr< MatOpsData > mat_ops_data_ptr, int tag)
boost::shared_ptr< PhysicalEquations > createMatOpsPhysicalEquationsPtr(boost::shared_ptr< MatOpsData > mat_ops_data_ptr, int tag)
@ BARRIER_AND_CHANGE_QUALITY_SCALED_BY_VOLUME
@ LASTOP_VOLUMELENGTHQUALITYTYPE
@ BARRIER_AND_CHANGE_QUALITY
boost::shared_ptr< PhysicalEquations > createMatOpsPhysicalEquationsPtr< ELASTICITY::VOLUMELENGTHQUALITY, MODEL_3D >(boost::shared_ptr< MatOpsData > mat_ops_data_ptr, int tag)
boost::shared_ptr< PhysicalEquations > createMatOpsPhysicalEquationsPtr< ELASTICITY::NEOHOOKEAN, MODEL_2D_PLANE_STRAIN >(boost::shared_ptr< MatOpsData > mat_ops_data_ptr, int tag)
boost::shared_ptr< PhysicalEquations > createMatOpsPhysicalEquationsPtr< ELASTICITY::META, MODEL_3D >(boost::shared_ptr< MatOpsData > mat_ops_data_ptr, int tag)
PetscErrorCode MoFEMErrorCode
MoFEM/PETSc error code.
FormsIntegrators< DomainEleOp >::Assembly< A >::LinearForm< I >::OpGradTimesTensor< 1, FIELD_DIM, SPACE_DIM > OpGradTimesTensor
constexpr auto field_name
FormsIntegrators< DomainEleOp >::Assembly< PETSC >::BiLinearForm< GAUSS >::OpGradTensorGrad< 1, SPACE_DIM, SPACE_DIM, -1 > OpKPiola
[Only used for dynamics]
static bool useDeformationGradient
static MoFEMErrorCode opUpdateFactory(MoFEM::Interface &m_field, boost::ptr_deque< ForcesAndSourcesCore::UserDataOperator > &pip, std::string field_name, boost::shared_ptr< PhysicalEquations > physical_equations_ptr)
static MoFEMErrorCode opRhsFactory(MoFEM::Interface &m_field, boost::ptr_deque< ForcesAndSourcesCore::UserDataOperator > &pip, std::string field_name, boost::shared_ptr< PhysicalEquations > physical_equations_ptr)
OpMaterialFactory()=delete
static MoFEMErrorCode opPostProcFactory(MoFEM::Interface &m_field, boost::ptr_deque< ForcesAndSourcesCore::UserDataOperator > &pip, std::string field_name, boost::shared_ptr< PhysicalEquations > physical_equations_ptr)
static MoFEMErrorCode opLhsFactory(MoFEM::Interface &m_field, boost::ptr_deque< ForcesAndSourcesCore::UserDataOperator > &pip, std::string field_name, boost::shared_ptr< PhysicalEquations > physical_equations_ptr)
PhysicalEquations()=delete
Deprecated interface functions.
Get field gradients at integration pts for scalar field rank 0, i.e. vector field.