22 "The SinglePhaseFluidProperties object for the fluid");
36 addPressureFunctorProperty<false>();
39 addTemperatureFunctorProperty<false>();
42 addVelocityFunctorProperty<false>();
49 addFunctorProperty<GenericReal<is_ad>>(
53 const auto rhoA = Moose::ADRealToGenericReal<is_ad>(
_rhoA(r, t));
54 const auto rhouA = Moose::ADRealToGenericReal<is_ad>(
_rhouA(r, t));
55 const auto rhoEA = Moose::ADRealToGenericReal<is_ad>(
_rhoEA(r, t));
56 const auto A =
_A(r, t);
57 const auto v =
A / rhoA;
58 const auto e = (rhoEA - 0.5 * rhouA * rhouA / rhoA) / rhoA;
59 return _fp.p_from_v_e(
v, e);
67 addFunctorProperty<GenericReal<is_ad>>(
71 const auto rhoA = Moose::ADRealToGenericReal<is_ad>(
_rhoA(r, t));
72 const auto rhouA = Moose::ADRealToGenericReal<is_ad>(
_rhouA(r, t));
73 const auto rhoEA = Moose::ADRealToGenericReal<is_ad>(
_rhoEA(r, t));
74 const auto A =
_A(r, t);
75 const auto v =
A / rhoA;
76 const auto e = (rhoEA - 0.5 * rhouA * rhouA / rhoA) / rhoA;
77 return _fp.T_from_v_e(
v, e);
85 addFunctorProperty<GenericReal<is_ad>>(
89 const auto rhoA = Moose::ADRealToGenericReal<is_ad>(
_rhoA(r, t));
90 const auto rhouA = Moose::ADRealToGenericReal<is_ad>(
_rhouA(r, t));
Moose::GenericType< Real, is_ad > GenericReal
static InputParameters validParams()
FlowModel1PhaseFunctorMaterial(const InputParameters ¶meters)
void addVelocityFunctorProperty()
Adds velocity functor material property.
static InputParameters validParams()
const SinglePhaseFluidProperties & _fp
Fluid properties.
static const std::string TEMPERATURE
const Moose::Functor< Real > & _A
Cross-sectional area.
static const std::string PRESSURE
registerMooseObject("ThermalHydraulicsApp", FlowModel1PhaseFunctorMaterial)
const Moose::Functor< ADReal > & _rhouA
rho*u*A
Common class for single phase fluid properties.
static const std::string VELOCITY
void addTemperatureFunctorProperty()
Adds temperature functor material property.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addPressureFunctorProperty()
Adds pressure functor material property.
const Moose::Functor< ADReal > & _rhoA
rho*A
Computes several quantities for FlowModel1Phase.
const Moose::Functor< ADReal > & _rhoEA
rho*E*A