21 params.addClassDescription(
22 "Creates functors for conversions between specific enthalpy and temperature");
24 params.addRequiredParam<MooseFunctorName>(
NS::pressure,
"Pressure");
25 params.addRequiredParam<MooseFunctorName>(
NS::T_fluid,
"Fluid temperature");
29 params.addParam<UserObjectName>(
NS::fluid,
"Fluid properties userobject");
31 params.addParam<MooseFunctorName>(
"h_from_p_T_functor",
32 "User specified enthalpy from temperature functor");
33 params.addParam<MooseFunctorName>(
"T_from_p_h_functor",
34 "User specified temperature from enthalpy functor");
44 _fluid(params.isParamValid(
NS::
fluid)
47 _h_from_p_T_functor(params.isParamValid(
"h_from_p_T_functor")
48 ? &getFunctor<
Real>(
"h_from_p_T_functor")
50 _T_from_p_h_functor(params.isParamValid(
"T_from_p_h_functor")
51 ? &getFunctor<
Real>(
"T_from_p_h_functor")
58 mooseError(
"An unsupported combination of input parameters was given. Current " 59 "supported combinations are either\ni) `fp` and neither `h_from_p_T_functor` nor " 60 "`T_from_p_h_functor`, or\nii) " 61 "no `fp` and both `h_from_p_T_functor` and `T_from_p_h_functor` are provided.");
69 addFunctorProperty<Real>(
"h_from_p_T",
70 [
this](
const auto & r,
const auto & t) ->
Real 72 addFunctorProperty<Real>(
"T_from_p_h",
73 [
this](
const auto & r,
const auto & t) ->
Real 78 addFunctorProperty<Real>(
"h_from_p_T",
79 [
this](
const auto & r,
const auto & t) ->
Real 81 addFunctorProperty<Real>(
"T_from_p_h",
82 [
this](
const auto & r,
const auto & t) ->
Real
const Moose::Functor< Real > & _h
static InputParameters validParams()
registerMooseObject("NavierStokesApp", LinearFVEnthalpyFunctorMaterial)
static const std::string fluid
const Moose::Functor< Real > & _T_fluid
const SinglePhaseFluidProperties * _fluid
The fluid properties that contain the h from T conversion routines.
static const std::string T_fluid
Common class for single phase fluid properties.
const Moose::Functor< Real > * _T_from_p_h_functor
Converts temperature to enthalpy or enthalpy to temperature using functor material properties...
const Moose::Functor< Real > * _h_from_p_T_functor
Pointers to the the conversion functors (in case the fluid property is not provided) ...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static const std::string pressure
static InputParameters validParams()
void mooseError(Args &&... args) const
LinearFVEnthalpyFunctorMaterial(const InputParameters ¶meters)
const Moose::Functor< Real > & _pressure
Variables, treated as functors.
static const std::string specific_enthalpy