www.mooseframework.org
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ADComputeGreenLagrangeStrain< compute_stage > Class Template Reference

ADComputeGreenLagrangeStrain defines a non-linear Green-Lagrange strain tensor. More...

#include <ADComputeGreenLagrangeStrain.h>

Inheritance diagram for ADComputeGreenLagrangeStrain< compute_stage >:
[legend]

Public Member Functions

 ADComputeGreenLagrangeStrain (const InputParameters &parameters)
 
void initialSetup () override
 

Protected Member Functions

virtual void computeProperties () override
 
virtual void initQpStatefulProperties () override
 
virtual void displacementIntegrityCheck ()
 
 ADMaterialProperty (RankTwoTensor) &_mechanical_strain
 
 ADMaterialProperty (RankTwoTensor) &_total_strain
 
const ADMaterialProperty (RankTwoTensor) *_global_strain
 

Protected Attributes

 usingComputeStrainBaseMembers
 
const unsigned int _ndisp
 Coupled displacement variables. More...
 
std::vector< const ADVariableValue * > _disp
 
std::vector< const ADVariableGradient * > _grad_disp
 
std::string _base_name
 
std::vector< MaterialPropertyName > _eigenstrain_names
 
std::vector< const ADMaterialProperty(RankTwoTensor) * > _eigenstrains
 
const bool _volumetric_locking_correction
 
const Real & _current_elem_volume
 
 usingMaterialMembers
 

Detailed Description

template<ComputeStage compute_stage>
class ADComputeGreenLagrangeStrain< compute_stage >

ADComputeGreenLagrangeStrain defines a non-linear Green-Lagrange strain tensor.

Definition at line 16 of file ADComputeGreenLagrangeStrain.h.

Constructor & Destructor Documentation

◆ ADComputeGreenLagrangeStrain()

template<ComputeStage compute_stage>
ADComputeGreenLagrangeStrain< compute_stage >::ADComputeGreenLagrangeStrain ( const InputParameters &  parameters)

Definition at line 20 of file ADComputeGreenLagrangeStrain.C.

23 {
24  // error out if unsupported features are to be used
25  if (_global_strain)
26  paramError("global_strain",
27  "Global strain (periodicity) is not yet supported for Green-Lagrange strains");
28  if (!_eigenstrains.empty())
29  paramError("eigenstrain_names",
30  "Eigenstrains are not yet supported for Green-Lagrange strains");
32  paramError("volumetric_locking_correction",
33  "Volumetric locking correction is not implemented for Green-Lagrange strains");
34 }
std::vector< const ADMaterialProperty(RankTwoTensor) * > _eigenstrains
const bool _volumetric_locking_correction
ADADComputeStrainBase is the base class for strain tensors.

Member Function Documentation

◆ ADMaterialProperty() [1/3]

template<ComputeStage compute_stage>
ADComputeStrainBase< compute_stage >::ADMaterialProperty ( RankTwoTensor  ) &
protectedinherited

◆ ADMaterialProperty() [2/3]

template<ComputeStage compute_stage>
ADComputeStrainBase< compute_stage >::ADMaterialProperty ( RankTwoTensor  ) &
protectedinherited

◆ ADMaterialProperty() [3/3]

template<ComputeStage compute_stage>
const ADComputeStrainBase< compute_stage >::ADMaterialProperty ( RankTwoTensor  )
protectedinherited

◆ computeProperties()

template<ComputeStage compute_stage>
void ADComputeGreenLagrangeStrain< compute_stage >::computeProperties ( )
overrideprotectedvirtual

Definition at line 38 of file ADComputeGreenLagrangeStrain.C.

39 {
40  for (_qp = 0; _qp < _qrule->n_points(); ++_qp)
41  {
42  ADRankTwoTensor dxu((*_grad_disp[0])[_qp], (*_grad_disp[1])[_qp], (*_grad_disp[2])[_qp]);
43  ADRankTwoTensor dxuT = dxu.transpose();
44 
45  _mechanical_strain[_qp] = _total_strain[_qp] = (dxuT + dxu + dxuT * dxu) / 2.0;
46  }
47 }
std::vector< const ADVariableGradient * > _grad_disp

◆ displacementIntegrityCheck()

template<ComputeStage compute_stage>
void ADComputeStrainBase< compute_stage >::displacementIntegrityCheck ( )
protectedvirtualinherited

Reimplemented in ADCompute2DFiniteStrain< compute_stage >, ADCompute2DIncrementalStrain< compute_stage >, and ADCompute2DSmallStrain< compute_stage >.

Definition at line 87 of file ADComputeStrainBase.C.

88 {
89  // Checking for consistency between mesh size and length of the provided displacements vector
90  if (_ndisp != _mesh.dimension())
91  paramError(
92  "displacements",
93  "The number of variables supplied in 'displacements' must match the mesh dimension.");
94 }
const unsigned int _ndisp
Coupled displacement variables.

◆ initialSetup()

template<ComputeStage compute_stage>
void ADComputeStrainBase< compute_stage >::initialSetup ( )
overrideinherited

Definition at line 67 of file ADComputeStrainBase.C.

Referenced by ADComputeIncrementalStrainBase< compute_stage >::initialSetup().

68 {
70  // fetch coupled variables and gradients (as stateful properties if necessary)
71  for (unsigned int i = 0; i < _ndisp; ++i)
72  {
73  _disp[i] = &adCoupledValue("displacements", i);
74  _grad_disp[i] = &adCoupledGradient("displacements", i);
75  }
76 
77  // set unused dimensions to zero
78  for (unsigned i = _ndisp; i < 3; ++i)
79  {
80  _disp[i] = &adZeroValue();
81  _grad_disp[i] = &adZeroGradient();
82  }
83 }
const unsigned int _ndisp
Coupled displacement variables.
std::vector< const ADVariableValue * > _disp
std::vector< const ADVariableGradient * > _grad_disp
virtual void displacementIntegrityCheck()

◆ initQpStatefulProperties()

template<ComputeStage compute_stage>
void ADComputeStrainBase< compute_stage >::initQpStatefulProperties ( )
overrideprotectedvirtualinherited

Reimplemented in ADComputeIncrementalStrainBase< compute_stage >.

Definition at line 98 of file ADComputeStrainBase.C.

99 {
100  _mechanical_strain[_qp].zero();
101  _total_strain[_qp].zero();
102 }

Member Data Documentation

◆ _base_name

template<ComputeStage compute_stage>
std::string ADComputeStrainBase< compute_stage >::_base_name
protectedinherited

◆ _current_elem_volume

template<ComputeStage compute_stage>
const Real& ADComputeStrainBase< compute_stage >::_current_elem_volume
protectedinherited

Definition at line 70 of file ADComputeStrainBase.h.

◆ _disp

template<ComputeStage compute_stage>
std::vector<const ADVariableValue *> ADComputeStrainBase< compute_stage >::_disp
protectedinherited

Definition at line 56 of file ADComputeStrainBase.h.

◆ _eigenstrain_names

template<ComputeStage compute_stage>
std::vector<MaterialPropertyName> ADComputeStrainBase< compute_stage >::_eigenstrain_names
protectedinherited

◆ _eigenstrains

template<ComputeStage compute_stage>
std::vector<const ADMaterialProperty(RankTwoTensor) *> ADComputeStrainBase< compute_stage >::_eigenstrains
protectedinherited

◆ _grad_disp

template<ComputeStage compute_stage>
std::vector<const ADVariableGradient *> ADComputeStrainBase< compute_stage >::_grad_disp
protectedinherited

Definition at line 57 of file ADComputeStrainBase.h.

◆ _ndisp

template<ComputeStage compute_stage>
const unsigned int ADComputeStrainBase< compute_stage >::_ndisp
protectedinherited

Coupled displacement variables.

Definition at line 55 of file ADComputeStrainBase.h.

Referenced by ADComputeStrainBase< compute_stage >::ADComputeStrainBase().

◆ _volumetric_locking_correction

template<ComputeStage compute_stage>
const bool ADComputeStrainBase< compute_stage >::_volumetric_locking_correction
protectedinherited

◆ usingComputeStrainBaseMembers

template<ComputeStage compute_stage>
ADComputeGreenLagrangeStrain< compute_stage >::usingComputeStrainBaseMembers
protected

Definition at line 32 of file ADComputeGreenLagrangeStrain.h.

◆ usingMaterialMembers

template<ComputeStage compute_stage>
ADComputeStrainBase< compute_stage >::usingMaterialMembers
protectedinherited

Definition at line 72 of file ADComputeStrainBase.h.


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