www.mooseframework.org
ComputeMeanThermalExpansionFunctionEigenstrain.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 #include "Function.h"
12 
14 
16 
17 InputParameters
19 {
20  InputParameters params = ComputeThermalExpansionEigenstrainBase::validParams();
21  params.addClassDescription("Computes eigenstrain due to thermal expansion using a function that "
22  "describes the mean thermal expansion as a function of temperature");
23  params.addRequiredParam<FunctionName>(
24  "thermal_expansion_function",
25  "Function describing the mean thermal expansion as a function of temperature");
26  params.addRequiredParam<Real>("thermal_expansion_function_reference_temperature",
27  "Reference temperature for thermal_exansion_function (IMPORTANT: "
28  "this is different in general from the stress_free_temperature)");
29 
30  return params;
31 }
32 
34  const InputParameters & parameters)
36  _thermal_expansion_function(getFunction("thermal_expansion_function")),
37  _thexp_func_ref_temp(getParam<Real>("thermal_expansion_function_reference_temperature"))
38 {
39 }
40 
41 Real
43 {
44  return _thexp_func_ref_temp;
45 }
46 
47 Real
49  const Real temperature)
50 {
51  return _thermal_expansion_function.value(temperature, Point());
52 }
53 
54 Real
56  const Real temperature)
57 {
58  return _thermal_expansion_function.timeDerivative(temperature, Point());
59 }
ComputeMeanThermalExpansionFunctionEigenstrain
ComputeMeanThermalExpansionFunctionEigenstrain computes an eigenstrain for thermal expansion accordin...
Definition: ComputeMeanThermalExpansionFunctionEigenstrain.h:23
registerMooseObject
registerMooseObject("TensorMechanicsApp", ComputeMeanThermalExpansionFunctionEigenstrain)
ComputeMeanThermalExpansionFunctionEigenstrain::_thexp_func_ref_temp
const Real & _thexp_func_ref_temp
Definition: ComputeMeanThermalExpansionFunctionEigenstrain.h:55
ComputeMeanThermalExpansionFunctionEigenstrain::ComputeMeanThermalExpansionFunctionEigenstrain
ComputeMeanThermalExpansionFunctionEigenstrain(const InputParameters &parameters)
Definition: ComputeMeanThermalExpansionFunctionEigenstrain.C:33
ComputeMeanThermalExpansionFunctionEigenstrain::meanThermalExpansionCoefficient
virtual Real meanThermalExpansionCoefficient(const Real temperature) override
Definition: ComputeMeanThermalExpansionFunctionEigenstrain.C:48
defineLegacyParams
defineLegacyParams(ComputeMeanThermalExpansionFunctionEigenstrain)
ComputeMeanThermalExpansionFunctionEigenstrain::validParams
static InputParameters validParams()
Definition: ComputeMeanThermalExpansionFunctionEigenstrain.C:18
ComputeMeanThermalExpansionFunctionEigenstrain::referenceTemperature
virtual Real referenceTemperature() override
Definition: ComputeMeanThermalExpansionFunctionEigenstrain.C:42
ComputeMeanThermalExpansionFunctionEigenstrain::_thermal_expansion_function
const Function & _thermal_expansion_function
Definition: ComputeMeanThermalExpansionFunctionEigenstrain.h:53
ComputeMeanThermalExpansionFunctionEigenstrain.h
ComputeMeanThermalExpansionFunctionEigenstrain::meanThermalExpansionCoefficientDerivative
virtual Real meanThermalExpansionCoefficientDerivative(const Real temperature) override
Definition: ComputeMeanThermalExpansionFunctionEigenstrain.C:55
ComputeMeanThermalExpansionEigenstrainBase
ComputeMeanThermalExpansionEigenstrainBase is a base class for computing the thermal expansion eigens...
Definition: ComputeMeanThermalExpansionEigenstrainBase.h:30
NS::temperature
const std::string temperature
Definition: NS.h:26
ComputeThermalExpansionEigenstrainBase::validParams
static InputParameters validParams()
Definition: ComputeThermalExpansionEigenstrainBase.C:16