22 "Computes the wall heat transfer coefficient of a path-integrated flow segment using "
23 "the Dittus-Boelter correlation, as a functor material property.");
26 "Name of the heat transfer coefficient functor property. Defaults to the name of this "
29 "mass_flow_rate", {},
"Mass flow rate through the segment. Takes a scalar variable name");
31 "T_fluid", {},
"Fluid temperature of the segment. Takes a scalar variable name");
35 "Fluid temperature of the nominal inlet segment/component. Takes a scalar variable name");
39 "Fluid temperature of the nominal outlet segment/component. Takes a scalar variable name");
41 "The name of the user object for fluid properties");
42 params.
addParam<UserObjectName>(
"reference_fp",
43 "Liquid-phase fluid properties; see momentum kernel.");
44 params.
addRequiredParam<MooseFunctorName>(
"reference_pressure",
"System reference pressure [Pa]");
46 "Cross-sectional area of the fluid flow channel [m^2]");
48 "Wetted perimeter of the fluid flow channel [m]");
58 getParam<UserObjectName>(
"reference_fp"))
64 _P_ref(getFunctor<
ADReal>(
"reference_pressure")),
65 _flow_area(getFunctor<
ADReal>(
"flow_area")),
66 _wetted_perimeter(getFunctor<
ADReal>(
"wetted_perimeter"))
68 const MooseFunctorName htc_name =
69 isParamValid(
"htc_name") ? getParam<MooseFunctorName>(
"htc_name") : MooseFunctorName(
name());
72 addFunctorProperty<ADReal>(
74 [
this](
const auto & r,
const auto & t) ->
ADReal
76 using std::abs, std::pow;
79 const unsigned int i = 0;
87 const auto T_film = (
_T_fluid[i] + T_in) / 2;
88 const auto P_ref =
_P_ref(r, t);
89 const auto mu =
_fp.mu_from_p_T(P_ref, T_film);
90 const auto cp =
_fp.cp_from_p_T(P_ref, T_film);
91 const auto k =
_fp.k_from_p_T(P_ref, T_film);
92 const auto rho =
_fp.rho_from_p_T(P_ref, T_film);
99 const auto G = abs(
_m[i]) /
A *
rho / rho_ref;
100 const auto Re = max(G * D_h /
mu, 1.0e-03);
102 const auto Nu = max(0.023 *
pow(
Re, 0.8) *
pow(Pr, 0.4), 4.0);
104 return THM::wallHeatTransferCoefficient(Nu, k, D_h);
registerMooseObject("ThermalHydraulicsApp", ADDittusBoelterHTCFunctorMaterial)
DualNumber< Real, DNDerivativeType, true > ADReal
ExpressionBuilder::EBTerm pow(const ExpressionBuilder::EBTerm &left, T exponent)
Computes a Dittus-Boelter wall heat transfer coefficient functor material property for the lumped pat...
const SinglePhaseFluidProperties * _fp_ref
Fluid properties of the pure liquid.
const ADVariableValue & _T_fluid_inlet
Fluid temperature at the nominal inlet neighbor.
const Moose::Functor< ADReal > & _wetted_perimeter
Wetted perimeter of the flow channel.
const ADVariableValue & _m
Mass flow rate through the segment.
const SinglePhaseFluidProperties & _fp
Fluid properties of the flowing fluid.
const Moose::Functor< ADReal > & _P_ref
System reference pressure.
ADDittusBoelterHTCFunctorMaterial(const InputParameters ¶meters)
const ADVariableValue & _T_fluid_outlet
Fluid temperature at the nominal outlet neighbor.
const ADVariableValue & _T_fluid
Fluid temperature of the segment.
const Moose::Functor< ADReal > & _flow_area
Cross-sectional area of the flow channel.
static InputParameters validParams()
static InputParameters validParams()
const std::string & name() const
bool isParamValid(const std::string &name) const
MooseEnumIterator end() const
MooseEnumIterator begin() const
const ExecFlagEnum & _execute_enum
Common class for single phase fluid properties.
auto Prandtl(const T1 &cp, const T2 &mu, const T3 &k)
Compute Prandtl number.