www.mooseframework.org
ADComputeDilatationThermalExpansionFunctionEigenstrain.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 
12 #include "Function.h"
13 
15 
17 
18 template <ComputeStage compute_stage>
19 InputParameters
21 {
22  InputParameters params =
24  params.addClassDescription("Computes eigenstrain due to thermal expansion using a function that "
25  "describes the total dilatation as a function of temperature");
26  params.addRequiredParam<FunctionName>(
27  "dilatation_function",
28  "Function describing the thermal dilatation as a function of temperature");
29  return params;
30 }
31 
32 template <ComputeStage compute_stage>
35  : ADComputeDilatationThermalExpansionEigenstrainBase<compute_stage>(parameters),
36  _dilatation_function(getFunction("dilatation_function"))
37 {
38 }
39 
40 template <ComputeStage compute_stage>
41 ADReal
43  const ADReal & temperature)
44 {
45  // Note: All dual number information will be lost until functions can handle AD points!
46  return _dilatation_function.value(MetaPhysicL::raw_value(temperature), Point());
47 }
defineADLegacyParams
defineADLegacyParams(ADComputeDilatationThermalExpansionFunctionEigenstrain)
ADComputeDilatationThermalExpansionFunctionEigenstrain.h
ADComputeDilatationThermalExpansionFunctionEigenstrain::computeDilatation
virtual ADReal computeDilatation(const ADReal &temperature) override
Definition: ADComputeDilatationThermalExpansionFunctionEigenstrain.C:42
ADComputeDilatationThermalExpansionEigenstrainBase::validParams
static InputParameters validParams()
Definition: ADComputeDilatationThermalExpansionEigenstrainBase.C:16
ADComputeDilatationThermalExpansionFunctionEigenstrain::ADComputeDilatationThermalExpansionFunctionEigenstrain
ADComputeDilatationThermalExpansionFunctionEigenstrain(const InputParameters &parameters)
Definition: ADComputeDilatationThermalExpansionFunctionEigenstrain.C:34
ADComputeDilatationThermalExpansionEigenstrainBase
ADComputeDilatationThermalExpansionEigenstrainBase computes an eigenstrain for thermal expansion from...
Definition: ADComputeDilatationThermalExpansionEigenstrainBase.h:20
ADComputeDilatationThermalExpansionFunctionEigenstrain::validParams
static InputParameters validParams()
Definition: ADComputeDilatationThermalExpansionFunctionEigenstrain.C:20
NS::temperature
const std::string temperature
Definition: NS.h:26
registerADMooseObject
registerADMooseObject("TensorMechanicsApp", ADComputeDilatationThermalExpansionFunctionEigenstrain)
ADComputeDilatationThermalExpansionFunctionEigenstrain
ADComputeDilatationThermalExpansionFunctionEigenstrain computes an eigenstrain for thermal expansion ...
Definition: ADComputeDilatationThermalExpansionFunctionEigenstrain.h:16