www.mooseframework.org
ADComputeFiniteStrainElasticStress.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "ADComputeStressBase.h"
13 #include "GuaranteeConsumer.h"
14 
15 #define usingComputeFiniteStrainElasticStressMembers \
16  usingComputeStressBaseMembers; \
17  using ADComputeFiniteStrainElasticStress<compute_stage>::_elasticity_tensor; \
18  using ADComputeFiniteStrainElasticStress<compute_stage>::_elasticity_tensor_name; \
19  using ADComputeFiniteStrainElasticStress<compute_stage>::_strain_increment; \
20  using ADComputeFiniteStrainElasticStress<compute_stage>::_rotation_increment; \
21  using ADComputeFiniteStrainElasticStress<compute_stage>::_stress_old; \
22  using ADComputeFiniteStrainElasticStress<compute_stage>::_elastic_strain_old
23 
24 template <ComputeStage>
26 
28 
33 template <ComputeStage compute_stage>
34 class ADComputeFiniteStrainElasticStress : public ADComputeStressBase<compute_stage>,
35  public GuaranteeConsumer
36 {
37 public:
38  ADComputeFiniteStrainElasticStress(const InputParameters & parameters);
39 
40  void initialSetup() override;
41 
42 protected:
43  virtual void computeQpStress() override;
44 
46  const std::string _elasticity_tensor_name;
48  const ADMaterialProperty(RankFourTensor) & _elasticity_tensor;
49  const ADMaterialProperty(RankTwoTensor) & _strain_increment;
50  const ADMaterialProperty(RankTwoTensor) & _rotation_increment;
51  const MaterialProperty<RankTwoTensor> & _stress_old;
52 
57  const MaterialProperty<RankTwoTensor> & _elastic_strain_old;
58 
60 };
61 
const MaterialProperty< RankTwoTensor > & _elastic_strain_old
The old elastic strain is used to calculate the old stress in the case of variable elasticity tensors...
ADComputeStressBase is the base class for stress tensors.
const ADMaterialProperty(RankFourTensor) &_elasticity_tensor
Elasticity tensor material property.
const MaterialProperty< RankTwoTensor > & _stress_old
ADComputeFiniteStrainElasticStress(const InputParameters &parameters)
declareADValidParams(ADComputeFiniteStrainElasticStress)
Add-on class that provides the functionality to check if guarantees for material properties are provi...
ADComputeFiniteStrainElasticStress computes the stress following elasticity theory for finite strains...
const std::string _elasticity_tensor_name
Name of the elasticity tensor material property.