22 params.
addRequiredParam<MaterialPropertyName>(
"f_D",
"Darcy friction factor material property");
23 params.
addParam<MaterialPropertyName>(
26 params.
addParam<MaterialPropertyName>(
28 params.
addParam<MaterialPropertyName>(
31 "PoD",
"PoD>=1.0",
"The Pitch-to-diameter ratio value being assigned into the property");
32 MooseEnum bundle_array(
"SQUARE HEXAGONAL");
34 "bundle_array", bundle_array,
"The type of the rod bundle array");
35 MooseEnum subchannel_type(
"INTERIOR EDGE CORNER");
37 "subchannel_type", subchannel_type,
"The type of subchannel to be considered");
38 params.
addClassDescription(
"Computes wall friction factor using the Cheng-Todreas correlation " 39 "for interior, edge and corner channels.");
45 _f_D_name(getParam<MaterialPropertyName>(
"f_D")),
46 _f_D(declareADProperty<
Real>(_f_D_name)),
47 _rho(getADMaterialProperty<
Real>(
"rho")),
48 _vel(getADMaterialProperty<
Real>(
"vel")),
49 _D_h(getADMaterialProperty<
Real>(
"D_h")),
50 _mu(getADMaterialProperty<
Real>(
"mu")),
51 _PoD(getParam<
Real>(
"PoD")),
65 "The Cheng-Todreas correlation for the friction factor is valid when P/D is between 1.0 " 66 "and 1.5. Be aware that using values out of this range may lead to " 67 "significant errors in your results!"));
393 mooseError(
"Invalid 'bundle_array' parameter.");
registerMooseObject("ThermalHydraulicsApp", ADWallFrictionChengMaterial)
static const std::string DYNAMIC_VISCOSITY
const ADMaterialProperty< Real > & _mu
Dynamic viscosity.
Computes drag coefficient using the Cheng-Todreas correlation for Fanning friction factor...
static const std::string VELOCITY
const ADMaterialProperty< Real > & _vel
Velocity.
auto Reynolds(const T1 &volume_fraction, const T2 &rho, const T3 &vel, const T4 &D_h, const T5 &mu)
Compute Reynolds number.
static const std::string DENSITY
void mooseWarning(Args &&... args) const
const Real & _PoD
Pitch-to-Diameter ratio.
virtual void computeQpProperties()
Bundle_array
Rod bundle array type.
Real DarcyFrictionFactor(const Real &f_F)
Computes Darcy friction factor from Fanning friction factor.
ADWallFrictionChengMaterial(const InputParameters ¶meters)
const ADMaterialProperty< Real > & _rho
Density.
auto FanningFrictionFactorCheng(const T1 &Re, const T2 &a, const T3 &b, const T4 &c, const T5 &n, const T6 &PoD)
Computes Fanning friction factor using Cheng-Todreas correlation.
static InputParameters validParams()
const Subchannel_type _subchannel_type
Subchannel type.
static InputParameters validParams()
const Bundle_array _bundle_array
Rod bundle array type.
const ADMaterialProperty< Real > & _D_h
Hydraulic diameter.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static const std::string HYDRAULIC_DIAMETER
void mooseError(Args &&... args) const
ADMaterialProperty< Real > & _f_D
Subchannel_type
Subchannel type: