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

ADComputeRSphericalSmallStrain defines a strain tensor, assuming small strains, in a 1D simulation assumming spherical symmetry. More...

#include <ADComputeRSphericalSmallStrain.h>

Inheritance diagram for ADComputeRSphericalSmallStrain< compute_stage >:
[legend]

Public Member Functions

 ADComputeRSphericalSmallStrain (const InputParameters &parameters)
 
virtual void computeProperties () override
 
void initialSetup () override
 

Public Attributes

 usingComputeSmallStrainMembers
 

Protected Member Functions

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 ADComputeRSphericalSmallStrain< compute_stage >

ADComputeRSphericalSmallStrain defines a strain tensor, assuming small strains, in a 1D simulation assumming spherical symmetry.

The polar and azimuthal strains are functions of the radial displacement and radial position in this 1D problem.

Definition at line 16 of file ADComputeRSphericalSmallStrain.h.

Constructor & Destructor Documentation

◆ ADComputeRSphericalSmallStrain()

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

Definition at line 23 of file ADComputeRSphericalSmallStrain.C.

26 {
27 }
ADComputeSmallStrain defines a strain tensor, assuming small strains.

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 ADComputeRSphericalSmallStrain< compute_stage >::computeProperties ( )
overridevirtual

Reimplemented from ADComputeSmallStrain< compute_stage >.

Definition at line 31 of file ADComputeRSphericalSmallStrain.C.

32 {
33  for (_qp = 0; _qp < _qrule->n_points(); ++_qp)
34  {
35  _total_strain[_qp](0, 0) = (*_grad_disp[0])[_qp](0);
36 
37  if (_q_point[_qp](0) != 0.0)
38  _total_strain[_qp](1, 1) = (*_disp[0])[_qp] / _q_point[_qp](0);
39 
40  else
41  _total_strain[_qp](1, 1) = 0.0;
42 
43  // \epsilon_{\theta \theta} = \epsilon{\phi \phi} in this 1D spherical system
44  _total_strain[_qp](2, 2) = _total_strain[_qp](1, 1);
45 
46  _mechanical_strain[_qp] = _total_strain[_qp];
47 
48  // Remove the eigenstrains
49  for (auto es : _eigenstrains)
50  _mechanical_strain[_qp] -= (*es)[_qp];
51  }
52 }
std::vector< const ADMaterialProperty(RankTwoTensor) * > _eigenstrains
std::vector< const ADVariableValue * > _disp
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

◆ usingComputeSmallStrainMembers

template<ComputeStage compute_stage>
ADComputeRSphericalSmallStrain< compute_stage >::usingComputeSmallStrainMembers

Definition at line 34 of file ADComputeRSphericalSmallStrain.h.

◆ usingComputeStrainBaseMembers

template<ComputeStage compute_stage>
ADComputeSmallStrain< compute_stage >::usingComputeStrainBaseMembers
protectedinherited

Definition at line 34 of file ADComputeSmallStrain.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: