www.mooseframework.org
ComputeThermalExpansionEigenstrain.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
8 
9 template <>
10 InputParameters
12 {
13  InputParameters params = validParams<ComputeThermalExpansionEigenstrainBase>();
14  params.addClassDescription("Computes eigenstrain due to thermal expansion "
15  "with a constant coefficient");
16  params.addParam<Real>("thermal_expansion_coeff", "Thermal expansion coefficient");
17 
18  return params;
19 }
20 
22  const InputParameters & parameters)
24  _thermal_expansion_coeff(getParam<Real>("thermal_expansion_coeff"))
25 {
26 }
27 
28 void
30  Real & instantaneous_cte)
31 {
32  thermal_strain = _thermal_expansion_coeff * (_temperature[_qp] - _stress_free_temperature[_qp]);
33  instantaneous_cte = _thermal_expansion_coeff;
34 }
InputParameters validParams< ComputeThermalExpansionEigenstrain >()
virtual void computeThermalStrain(Real &thermal_strain, Real &instantaneous_cte) override
ComputeThermalExpansionEigenstrainBase is a base class for all models that compute eigenstrains due t...
InputParameters validParams< ComputeThermalExpansionEigenstrainBase >()
ComputeThermalExpansionEigenstrain(const InputParameters &parameters)