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

ADComputeLinearElasticStress computes the stress following linear elasticity theory (small strains) More...

#include <ADComputeLinearElasticStress.h>

Inheritance diagram for ADComputeLinearElasticStress< compute_stage >:
[legend]

Public Member Functions

 ADComputeLinearElasticStress (const InputParameters &parameters)
 
virtual void initialSetup () override
 

Protected Member Functions

virtual void computeQpStress () override
 
const ADMaterialProperty (RankFourTensor) &_elasticity_tensor
 Elasticity tensor material property. More...
 
virtual void initQpStatefulProperties () override
 
virtual void computeQpProperties () override
 
const ADMaterialProperty (RankTwoTensor) &_mechanical_strain
 

Protected Attributes

const std::string _elasticity_tensor_name
 Name of the elasticity tensor material property. More...
 
 usingComputeStressBaseMembers
 
const std::string _base_name
 
std::vector< Function * > _initial_stress_fcn
 initial stress components More...
 
 usingMaterialMembers
 

Detailed Description

template<ComputeStage compute_stage>
class ADComputeLinearElasticStress< compute_stage >

ADComputeLinearElasticStress computes the stress following linear elasticity theory (small strains)

Definition at line 21 of file ADComputeLinearElasticStress.h.

Constructor & Destructor Documentation

◆ ADComputeLinearElasticStress()

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

Definition at line 20 of file ADComputeLinearElasticStress.C.

23  _elasticity_tensor_name(_base_name + "elasticity_tensor"),
24  _elasticity_tensor(adGetADMaterialProperty<RankFourTensor>(_elasticity_tensor_name))
25 {
26 }
ADComputeStressBase is the base class for stress tensors.
const std::string _base_name
const std::string _elasticity_tensor_name
Name of the elasticity tensor material property.

Member Function Documentation

◆ ADMaterialProperty() [1/2]

template<ComputeStage compute_stage>
const ADComputeLinearElasticStress< compute_stage >::ADMaterialProperty ( RankFourTensor  ) &
protected

Elasticity tensor material property.

◆ ADMaterialProperty() [2/2]

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

◆ computeQpProperties()

template<ComputeStage compute_stage>
void ADComputeStressBase< compute_stage >::computeQpProperties ( )
overrideprotectedvirtualinherited

Definition at line 46 of file ADComputeStressBase.C.

47 {
49 
50  // TODO: Add in extra stress (using a list of extra_stress_names analogous to eigenstrain_names)
51 }
virtual void computeQpStress()=0

◆ computeQpStress()

template<ComputeStage compute_stage>
void ADComputeLinearElasticStress< compute_stage >::computeQpStress ( )
overrideprotectedvirtual

Implements ADComputeStressBase< compute_stage >.

Definition at line 40 of file ADComputeLinearElasticStress.C.

41 {
42  // stress = C * e
43  _stress[_qp] = _elasticity_tensor[_qp] * _mechanical_strain[_qp];
44 
45  // Assign value for elastic strain, which is equal to the mechanical strain
46  _elastic_strain[_qp] = _mechanical_strain[_qp];
47 }

◆ initialSetup()

template<ComputeStage compute_stage>
void ADComputeLinearElasticStress< compute_stage >::initialSetup ( )
overridevirtual

Definition at line 30 of file ADComputeLinearElasticStress.C.

31 {
32  if (this->template hasBlockMaterialProperty<RankTwoTensor>(_base_name + "strain_increment"))
33  mooseError("This linear elastic stress calculation only works for small strains; use "
34  "ADComputeFiniteStrainElasticStress for simulations using incremental and finite "
35  "strains.");
36 }
const std::string _base_name

◆ initQpStatefulProperties()

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

Reimplemented in ADComputeMultipleInelasticStress< compute_stage >.

Definition at line 38 of file ADComputeStressBase.C.

Referenced by ADComputeMultipleInelasticStress< compute_stage >::initQpStatefulProperties().

39 {
40  _elastic_strain[_qp].zero();
41  _stress[_qp].zero();
42 }

Member Data Documentation

◆ _base_name

template<ComputeStage compute_stage>
const std::string ADComputeStressBase< compute_stage >::_base_name
protectedinherited

Definition at line 52 of file ADComputeStressBase.h.

◆ _elasticity_tensor_name

template<ComputeStage compute_stage>
const std::string ADComputeLinearElasticStress< compute_stage >::_elasticity_tensor_name
protected

Name of the elasticity tensor material property.

Definition at line 40 of file ADComputeLinearElasticStress.h.

◆ _initial_stress_fcn

template<ComputeStage compute_stage>
std::vector<Function *> ADComputeStressBase< compute_stage >::_initial_stress_fcn
protectedinherited

initial stress components

Definition at line 59 of file ADComputeStressBase.h.

◆ usingComputeStressBaseMembers

template<ComputeStage compute_stage>
ADComputeLinearElasticStress< compute_stage >::usingComputeStressBaseMembers
protected

Definition at line 44 of file ADComputeLinearElasticStress.h.

◆ usingMaterialMembers

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

Definition at line 61 of file ADComputeStressBase.h.


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