18 template <ComputeStage compute_stage>
22 InputParameters params =
24 params.addClassDescription(
"Computes eigenstrain due to thermal expansion using a function that "
25 "describes the mean thermal expansion as a function of temperature");
26 params.addRequiredParam<FunctionName>(
27 "thermal_expansion_function",
28 "Function describing the mean thermal expansion as a function of temperature");
29 params.addRequiredParam<Real>(
"thermal_expansion_function_reference_temperature",
30 "Reference temperature for thermal_exansion_function (IMPORTANT: "
31 "this is different in general from the stress_free_temperature)");
36 template <ComputeStage compute_stage>
40 _thermal_expansion_function(getFunction(
"thermal_expansion_function")),
41 _thexp_func_ref_temp(getParam<Real>(
"thermal_expansion_function_reference_temperature"))
45 template <ComputeStage compute_stage>
49 return _thexp_func_ref_temp;
52 template <ComputeStage compute_stage>
57 return _thermal_expansion_function.value(MetaPhysicL::raw_value(
temperature), Point());