www.mooseframework.org
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ComputeThermalExpansionEigenstrainBase Class Referenceabstract

ComputeThermalExpansionEigenstrainBase is a base class for all models that compute eigenstrains due to thermal expansion of a material. More...

#include <ComputeThermalExpansionEigenstrainBase.h>

Inheritance diagram for ComputeThermalExpansionEigenstrainBase:
[legend]

Public Member Functions

 ComputeThermalExpansionEigenstrainBase (const InputParameters &parameters)
 

Protected Member Functions

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

Protected Attributes

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

Detailed Description

ComputeThermalExpansionEigenstrainBase is a base class for all models that compute eigenstrains due to thermal expansion of a material.

Definition at line 23 of file ComputeThermalExpansionEigenstrainBase.h.

Constructor & Destructor Documentation

ComputeThermalExpansionEigenstrainBase::ComputeThermalExpansionEigenstrainBase ( const InputParameters &  parameters)

Definition at line 23 of file ComputeThermalExpansionEigenstrainBase.C.

25  : DerivativeMaterialInterface<ComputeEigenstrainBase>(parameters),
26  _temperature(coupledValue("temperature")),
27  _deigenstrain_dT(declarePropertyDerivative<RankTwoTensor>(_eigenstrain_name,
28  getVar("temperature", 0)->name())),
29  _stress_free_temperature(coupledValue("stress_free_temperature"))
30 {
31 }

Member Function Documentation

void ComputeThermalExpansionEigenstrainBase::computeQpEigenstrain ( )
overrideprotectedvirtual

Definition at line 34 of file ComputeThermalExpansionEigenstrainBase.C.

35 {
36  Real thermal_strain = 0.0;
37  Real instantaneous_cte = 0.0;
38 
39  computeThermalStrain(thermal_strain, instantaneous_cte);
40 
41  _eigenstrain[_qp].zero();
42  _eigenstrain[_qp].addIa(thermal_strain);
43 
44  _deigenstrain_dT[_qp].zero();
45  _deigenstrain_dT[_qp].addIa(instantaneous_cte);
46 }
virtual void computeThermalStrain(Real &thermal_strain, Real &instantaneous_cte)=0
virtual void ComputeThermalExpansionEigenstrainBase::computeThermalStrain ( Real &  thermal_strain,
Real &  instantaneous_cte 
)
protectedpure virtual

Member Data Documentation

MaterialProperty<RankTwoTensor>& ComputeThermalExpansionEigenstrainBase::_deigenstrain_dT
protected

Definition at line 44 of file ComputeThermalExpansionEigenstrainBase.h.

Referenced by computeQpEigenstrain().

const VariableValue& ComputeThermalExpansionEigenstrainBase::_stress_free_temperature
protected
const VariableValue& ComputeThermalExpansionEigenstrainBase::_temperature
protected

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