www.mooseframework.org
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ComputeThermalExpansionEigenstrain Class Reference

ComputeThermalExpansionEigenstrain computes an eigenstrain for thermal expansion with a constant expansion coefficient. More...

#include <ComputeThermalExpansionEigenstrain.h>

Inheritance diagram for ComputeThermalExpansionEigenstrain:
[legend]

Public Member Functions

 ComputeThermalExpansionEigenstrain (const InputParameters &parameters)
 

Static Public Member Functions

static InputParameters validParams ()
 

Protected Member Functions

virtual void computeThermalStrain (Real &thermal_strain, Real &instantaneous_cte) override
 
virtual void computeQpEigenstrain () override
 

Protected Attributes

const Real & _thermal_expansion_coeff
 
const VariableValue & _temperature
 
MaterialProperty< RankTwoTensor > & _deigenstrain_dT
 
const VariableValue & _stress_free_temperature
 

Detailed Description

ComputeThermalExpansionEigenstrain computes an eigenstrain for thermal expansion with a constant expansion coefficient.

Definition at line 24 of file ComputeThermalExpansionEigenstrain.h.

Constructor & Destructor Documentation

◆ ComputeThermalExpansionEigenstrain()

ComputeThermalExpansionEigenstrain::ComputeThermalExpansionEigenstrain ( const InputParameters &  parameters)

Definition at line 27 of file ComputeThermalExpansionEigenstrain.C.

30  _thermal_expansion_coeff(getParam<Real>("thermal_expansion_coeff"))
31 {
32 }

Member Function Documentation

◆ computeQpEigenstrain()

void ComputeThermalExpansionEigenstrainBase::computeQpEigenstrain ( )
overrideprotectedvirtualinherited

Definition at line 38 of file ComputeThermalExpansionEigenstrainBase.C.

39 {
40  Real thermal_strain = 0.0;
41 
42  // instantaneous_cte is just the derivative of thermal_strain with respect to temperature
43  Real instantaneous_cte = 0.0;
44 
45  computeThermalStrain(thermal_strain, instantaneous_cte);
46 
47  _eigenstrain[_qp].zero();
48  _eigenstrain[_qp].addIa(thermal_strain);
49 
50  _deigenstrain_dT[_qp].zero();
51  _deigenstrain_dT[_qp].addIa(instantaneous_cte);
52 }

◆ computeThermalStrain()

void ComputeThermalExpansionEigenstrain::computeThermalStrain ( Real &  thermal_strain,
Real &  instantaneous_cte 
)
overrideprotectedvirtual

Implements ComputeThermalExpansionEigenstrainBase.

Definition at line 35 of file ComputeThermalExpansionEigenstrain.C.

37 {
38  thermal_strain = _thermal_expansion_coeff * (_temperature[_qp] - _stress_free_temperature[_qp]);
39  instantaneous_cte = _thermal_expansion_coeff;
40 }

◆ validParams()

InputParameters ComputeThermalExpansionEigenstrain::validParams ( )
static

Definition at line 17 of file ComputeThermalExpansionEigenstrain.C.

18 {
19  InputParameters params = ComputeThermalExpansionEigenstrainBase::validParams();
20  params.addClassDescription("Computes eigenstrain due to thermal expansion "
21  "with a constant coefficient");
22  params.addRequiredParam<Real>("thermal_expansion_coeff", "Thermal expansion coefficient");
23 
24  return params;
25 }

Member Data Documentation

◆ _deigenstrain_dT

MaterialProperty<RankTwoTensor>& ComputeThermalExpansionEigenstrainBase::_deigenstrain_dT
protectedinherited

◆ _stress_free_temperature

const VariableValue& ComputeThermalExpansionEigenstrainBase::_stress_free_temperature
protectedinherited

◆ _temperature

const VariableValue& ComputeThermalExpansionEigenstrainBase::_temperature
protectedinherited

◆ _thermal_expansion_coeff

const Real& ComputeThermalExpansionEigenstrain::_thermal_expansion_coeff
protected

Definition at line 34 of file ComputeThermalExpansionEigenstrain.h.

Referenced by computeThermalStrain().


The documentation for this class was generated from the following files:
ComputeThermalExpansionEigenstrainBase::_temperature
const VariableValue & _temperature
Definition: ComputeThermalExpansionEigenstrainBase.h:49
ComputeThermalExpansionEigenstrain::_thermal_expansion_coeff
const Real & _thermal_expansion_coeff
Definition: ComputeThermalExpansionEigenstrain.h:34
ComputeThermalExpansionEigenstrainBase::computeThermalStrain
virtual void computeThermalStrain(Real &thermal_strain, Real &instantaneous_cte)=0
ComputeThermalExpansionEigenstrainBase::_stress_free_temperature
const VariableValue & _stress_free_temperature
Definition: ComputeThermalExpansionEigenstrainBase.h:51
ComputeThermalExpansionEigenstrainBase::_deigenstrain_dT
MaterialProperty< RankTwoTensor > & _deigenstrain_dT
Definition: ComputeThermalExpansionEigenstrainBase.h:50
ComputeThermalExpansionEigenstrainBase::validParams
static InputParameters validParams()
Definition: ComputeThermalExpansionEigenstrainBase.C:16
ComputeThermalExpansionEigenstrainBase::ComputeThermalExpansionEigenstrainBase
ComputeThermalExpansionEigenstrainBase(const InputParameters &parameters)
Definition: ComputeThermalExpansionEigenstrainBase.C:27