www.mooseframework.org
ADComputeThermalExpansionEigenstrain.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 template <ComputeStage compute_stage>
17 InputParameters
19 {
21  params.addClassDescription("Computes eigenstrain due to thermal expansion "
22  "with a constant coefficient");
23  params.addRequiredParam<Real>("thermal_expansion_coeff", "Thermal expansion coefficient");
24  return params;
25 }
26 
27 template <ComputeStage compute_stage>
29  const InputParameters & parameters)
30  : ADComputeThermalExpansionEigenstrainBase<compute_stage>(parameters),
31  _thermal_expansion_coeff(getParam<Real>("thermal_expansion_coeff"))
32 {
33 }
34 
35 template <ComputeStage compute_stage>
36 void
38 {
39  thermal_strain = _thermal_expansion_coeff * (_temperature[_qp] - _stress_free_temperature[_qp]);
40 }
ADComputeThermalExpansionEigenstrain.h
ADComputeThermalExpansionEigenstrain::computeThermalStrain
virtual void computeThermalStrain(ADReal &thermal_strain) override
Definition: ADComputeThermalExpansionEigenstrain.C:37
ADComputeThermalExpansionEigenstrainBase::validParams
static InputParameters validParams()
Definition: ADComputeThermalExpansionEigenstrainBase.C:17
registerADMooseObject
registerADMooseObject("TensorMechanicsApp", ADComputeThermalExpansionEigenstrain)
ADComputeThermalExpansionEigenstrain::ADComputeThermalExpansionEigenstrain
ADComputeThermalExpansionEigenstrain(const InputParameters &parameters)
Definition: ADComputeThermalExpansionEigenstrain.C:28
ADComputeThermalExpansionEigenstrainBase
ADComputeThermalExpansionEigenstrainBase is a base class for all models that compute eigenstrains due...
Definition: ADComputeThermalExpansionEigenstrainBase.h:22
ADComputeThermalExpansionEigenstrain::validParams
static InputParameters validParams()
Definition: ADComputeThermalExpansionEigenstrain.C:18
defineADLegacyParams
defineADLegacyParams(ADComputeThermalExpansionEigenstrain)
ADComputeThermalExpansionEigenstrain
ADComputeThermalExpansionEigenstrain computes an eigenstrain for thermal expansion with a constant ex...
Definition: ADComputeThermalExpansionEigenstrain.h:15