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
static const std::string specific_internal_energy
const Moose::Functor< ADReal > & _temperature
Temperature.
static InputParameters validParams()
static const std::string thermal_conductivity
static InputParameters validParams()
Common class for solid properties that are a function of temperature.
bool isParamValid(const std::string &name) const
const ThermalSolidProperties & _sp
Solid properties.
void paramError(const std::string ¶m, Args... args) const
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
ThermalSolidPropertiesFunctorMaterial(const InputParameters ¶meters)
static const std::string specific_heat
registerMooseObject("SolidPropertiesApp", ThermalSolidPropertiesFunctorMaterial)
Real e_from_T(const Real &T) const
static const std::string density
Computes solid thermal properties as a function of temperature.