#include "tutorials/vec-2_nonlinear_elasticity/src/MatOpsExampleGeneric.hpp"
|
| static boost::shared_ptr< MatrixDouble > | matDPtr |
| |
◆ MatOpsExampleGeneric()
| MatOpsExampleGeneric::MatOpsExampleGeneric |
( |
| ) |
|
|
inline |
Toggle for plane strain.
- Note
- If
SPACE_DIM == 2 and is_plane_strain is true, the code uses the plane strain elasticity tensor.
-
If
SPACE_DIM == 2 and is_plane_strain is false, the code uses the plane stress elasticity tensor.
Definition at line 13 of file MatOpsExampleGeneric.hpp.
13 {
16 auto set_material_stiffness = [this]() {
24
25
26
27
28
29
30
31
32
38 }
39 auto t_D = getFTensor4DdgFromMat<SPACE_DIM, SPACE_DIM, 0>(*
matDPtr);
44 };
46 "Failed to set material stiffness");
47 }
#define FTENSOR_INDEX(DIM, I)
Kronecker Delta class symmetric.
#define CHK_THROW_MESSAGE(err, msg)
Check and throw MoFEM exception.
#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()
FTensor::Index< 'i', SPACE_DIM > i
FTensor::Index< 'l', 3 > l
FTensor::Index< 'j', 3 > j
FTensor::Index< 'k', 3 > k
static boost::shared_ptr< MatrixDouble > matDPtr
◆ getMaterialStiffness()
| auto MatOpsExampleGeneric::getMaterialStiffness |
( |
| ) |
|
|
inline |
◆ hookEvaluateDerivatives()
| static MoFEMErrorCode MatOpsExampleGeneric::hookEvaluateDerivatives |
( |
boost::shared_ptr< MatOps::MatOpsData > |
mat_ops_data_ptr, |
|
|
int |
, |
|
|
EntityHandle |
, |
|
|
int |
|
|
) |
| |
|
inlinestatic |
- Examples
- mofem/tutorials/vec-2_nonlinear_elasticity/src/NonlinearElasticExample.hpp.
Definition at line 68 of file MatOpsExampleGeneric.hpp.
69 {
70 auto t_dP = getFTensor4FromPtr<SPACE_DIM, SPACE_DIM, SPACE_DIM, SPACE_DIM>(
71 mat_ops_data_ptr->getDependentDerivativesDataPtr("P_dF")->data().data());
76 auto t_D = getFTensor4DdgFromMat<SPACE_DIM, SPACE_DIM, 0>(*
matDPtr);
77 t_dP(
i,
J,
k, L) = t_D(
i,
J,
k, L);
78 return 0;
79 };
FTensor::Index< 'J', DIM1 > J
◆ hookEvaluateVariable()
| static MoFEMErrorCode MatOpsExampleGeneric::hookEvaluateVariable |
( |
boost::shared_ptr< MatOps::MatOpsData > |
mat_ops_data_ptr, |
|
|
int |
, |
|
|
EntityHandle |
, |
|
|
int |
|
|
) |
| |
|
inlinestatic |
◆ hookUpdateState()
◆ matDPtr
| boost::shared_ptr<MatrixDouble> MatOpsExampleGeneric::matDPtr |
|
inlinestaticprotected |
The documentation for this struct was generated from the following file: