21 params.
addRequiredParam<UserObjectName>(
"sp",
"The name of the user object for solid properties");
22 params.
addParam<
bool>(
"use_constant_density",
false,
"Use constant density evaluated at 'T_ref'");
25 "Temperature at which to evaluate density if 'use_constant_density' is set to 'true'");
28 "Name to be used for the isobaric specific heat");
31 "Name to be used for the thermal conductivity");
34 "Name to be used for the density");
37 "Name to be used for the specific internal energy");
38 params.
addClassDescription(
"Computes solid thermal properties as a function of temperature");
45 _temperature(getFunctor<
ADReal>(
"temperature")),
48 if (getParam<bool>(
"use_constant_density"))
52 const Real T_ref = getParam<Real>(
"T_ref");
54 [
this, T_ref](
const auto & ,
const auto & ) ->
ADReal
55 {
return _sp.rho_from_T(T_ref); });
59 "The parameter 'T_ref' is required if 'use_constant_density' is set to 'true'.");
65 "The parameter 'T_ref' may not be specified if 'use_constant_density' is set to "
69 [
this](
const auto & r,
const auto & t) ->
ADReal
74 [
this](
const auto & r,
const auto & t) ->
ADReal
77 [
this](
const auto & r,
const auto & t) ->
ADReal
80 [
this](
const auto & r,
const auto & t) ->
ADReal
DualNumber< Real, DNDerivativeType, true > ADReal
registerMooseObject("SolidPropertiesApp", ThermalSolidPropertiesFunctorMaterial)
static InputParameters validParams()
void paramError(const std::string ¶m, Args... args) const
bool isParamValid(const std::string &name) const
Computes solid thermal properties as a function of temperature.
ThermalSolidPropertiesFunctorMaterial(const InputParameters ¶meters)
static InputParameters validParams()
const ThermalSolidProperties & _sp
Solid properties.
const Moose::Functor< ADReal > & _temperature
Temperature.
Common class for solid properties that are a function of temperature.
Real e_from_T(const Real &T) const
static const std::string thermal_conductivity
static const std::string specific_heat
static const std::string specific_internal_energy
static const std::string density