www.mooseframework.org
ComputeMeanThermalExpansionFunctionEigenstrain.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 #include "Function.h"
9 
10 template <>
11 InputParameters
13 {
15  params.addClassDescription("Computes eigenstrain due to thermal expansion using a function that "
16  "describes the mean thermal expansion as a function of temperature");
17  params.addRequiredParam<FunctionName>(
18  "thermal_expansion_function",
19  "Function describing the mean thermal expansion as a function of temperature");
20  params.addRequiredParam<Real>("thermal_expansion_function_reference_temperature",
21  "Reference temperature for thermal_exansion_function (IMPORTANT: "
22  "this is different in general from the stress_free_temperature)");
23 
24  return params;
25 }
26 
28  const InputParameters & parameters)
30  _thermal_expansion_function(getFunction("thermal_expansion_function")),
31  _thexp_func_ref_temp(getParam<Real>("thermal_expansion_function_reference_temperature"))
32 {
33 }
34 
35 Real
37 {
38  return _thexp_func_ref_temp;
39 }
40 
41 Real
43  const Real temperature)
44 {
45  return _thermal_expansion_function.value(temperature, Point());
46 }
47 
48 Real
50  const Real temperature)
51 {
52  return _thermal_expansion_function.timeDerivative(temperature, Point());
53 }
virtual Real meanThermalExpansionCoefficient(const Real temperature) override
virtual Real meanThermalExpansionCoefficientDerivative(const Real temperature) override
ComputeMeanThermalExpansionEigenstrainBase is a base class for computing the thermal expansion eigens...
const std::string temperature
Definition: NS.h:25
InputParameters validParams< ComputeMeanThermalExpansionFunctionEigenstrain >()
InputParameters validParams< ComputeMeanThermalExpansionEigenstrainBase >()