www.mooseframework.org
StrainEnergyDensity.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 "Material.h"
14 #include "RankTwoTensorForward.h"
15 #include "MooseTypes.h"
16 
20 template <bool is_ad>
22 {
23 public:
25 
27 
28  virtual void initialSetup() override;
29 
30  virtual void initQpStatefulProperties() override;
31  virtual void computeQpProperties() override;
32 
33 protected:
35  const std::string _base_name;
36 
38  const std::string _stress_name;
39 
43 
48 
52 
55 };
56 
const GenericOptionalMaterialProperty< RankTwoTensor, is_ad > & _strain_increment
Current value of the strain increment for incremental models.
virtual void computeQpProperties() override
const std::string _base_name
Base name of the material system.
StrainEnergyDensityTempl< false > StrainEnergyDensity
const GenericMaterialProperty< RankTwoTensor, is_ad > & _stress
{@ Current and old values of stress
virtual void initialSetup() override
const GenericMaterialProperty< RankTwoTensor, is_ad > & _mechanical_strain
Current value of mechanical strain which includes elastic and inelastic components of the strain...
StrainEnergyDensity calculates the strain energy density.
static InputParameters validParams()
typename GenericMaterialPropertyStruct< T, is_ad >::type GenericMaterialProperty
const MaterialProperty< RankTwoTensor > & _stress_old
StrainEnergyDensityTempl< true > ADStrainEnergyDensity
virtual void initQpStatefulProperties() override
MaterialProperty< Real > & _strain_energy_density
The strain energy density material property.
const InputParameters & parameters() const
const MaterialProperty< Real > & _strain_energy_density_old
StrainEnergyDensityTempl(const InputParameters &parameters)
const std::string _stress_name
stress name, for different stresses on the same material system