www.mooseframework.org
ComputeThermalExpansionEigenstrain.C
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 
11 
13 
15 
16 InputParameters
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 }
26 
28  const InputParameters & parameters)
30  _thermal_expansion_coeff(getParam<Real>("thermal_expansion_coeff"))
31 {
32 }
33 
34 void
36  Real & instantaneous_cte)
37 {
38  thermal_strain = _thermal_expansion_coeff * (_temperature[_qp] - _stress_free_temperature[_qp]);
39  instantaneous_cte = _thermal_expansion_coeff;
40 }
ComputeThermalExpansionEigenstrain::validParams
static InputParameters validParams()
Definition: ComputeThermalExpansionEigenstrain.C:17
registerMooseObject
registerMooseObject("TensorMechanicsApp", ComputeThermalExpansionEigenstrain)
defineLegacyParams
defineLegacyParams(ComputeThermalExpansionEigenstrain)
ComputeThermalExpansionEigenstrainBase::_temperature
const VariableValue & _temperature
Definition: ComputeThermalExpansionEigenstrainBase.h:49
ComputeThermalExpansionEigenstrain::_thermal_expansion_coeff
const Real & _thermal_expansion_coeff
Definition: ComputeThermalExpansionEigenstrain.h:34
ComputeThermalExpansionEigenstrain::ComputeThermalExpansionEigenstrain
ComputeThermalExpansionEigenstrain(const InputParameters &parameters)
Definition: ComputeThermalExpansionEigenstrain.C:27
ComputeThermalExpansionEigenstrainBase::_stress_free_temperature
const VariableValue & _stress_free_temperature
Definition: ComputeThermalExpansionEigenstrainBase.h:51
ComputeThermalExpansionEigenstrain::computeThermalStrain
virtual void computeThermalStrain(Real &thermal_strain, Real &instantaneous_cte) override
Definition: ComputeThermalExpansionEigenstrain.C:35
ComputeThermalExpansionEigenstrain.h
ComputeThermalExpansionEigenstrain
ComputeThermalExpansionEigenstrain computes an eigenstrain for thermal expansion with a constant expa...
Definition: ComputeThermalExpansionEigenstrain.h:24
ComputeThermalExpansionEigenstrainBase::validParams
static InputParameters validParams()
Definition: ComputeThermalExpansionEigenstrainBase.C:16
ComputeThermalExpansionEigenstrainBase
ComputeThermalExpansionEigenstrainBase is a base class for all models that compute eigenstrains due t...
Definition: ComputeThermalExpansionEigenstrainBase.h:27