21 params.
addParam<MaterialPropertyName>(
24 "Name to give the heat transfer coefficient material property");
25 params.
addParam<MaterialPropertyName>(
27 params.
addParam<MaterialPropertyName>(
29 params.
addParam<MaterialPropertyName>(
"cp",
31 "Fluid isobaric specific heat capacity material property");
32 params.
addParam<MaterialPropertyName>(
34 params.
addParam<MaterialPropertyName>(
"k",
36 "Fluid thermal conductivity material property");
37 params.
addParam<MaterialPropertyName>(
39 params.
addParam<MaterialPropertyName>(
41 params.
addParam<MaterialPropertyName>(
46 params.
addRequiredParam<
bool>(
"at_inner_wall",
"True if heat transfer is at inner wall");
50 "Exponent for the ratio of bulk fluid temperature to wall temperature for " 51 "the Nusselt number correction factor when heating a gas");
52 params.
addRequiredParam<UserObjectName>(
"fluid_properties",
"Fluid properties object");
54 params.
addClassDescription(
"Computes wall heat transfer coefficient for gases and water in an " 55 "annular flow channel using the Gnielinski correlation");
63 _htc_wall(declareADProperty<
Real>(
"htc_wall")),
64 _rho(getADMaterialProperty<
Real>(
"rho")),
65 _vel(getADMaterialProperty<
Real>(
"vel")),
66 _k(getADMaterialProperty<
Real>(
"k")),
67 _mu(getADMaterialProperty<
Real>(
"mu")),
68 _cp(getADMaterialProperty<
Real>(
"cp")),
69 _p(getADMaterialProperty<
Real>(
"p")),
70 _T(getADMaterialProperty<
Real>(
"T")),
71 _T_wall(getADMaterialProperty<
Real>(
"T_wall")),
72 _D_inner(getParam<
Real>(
"D_inner")),
73 _D_outer(getParam<
Real>(
"D_outer")),
74 _D_h(_D_outer - _D_inner),
75 _a(_D_inner / _D_outer),
76 _L(getParam<
Real>(
"channel_length")),
77 _at_inner_wall(getParam<bool>(
"at_inner_wall")),
78 _fluid_is_gas(getParam<bool>(
"fluid_is_gas")),
79 _n(getParam<
Real>(
"gas_heating_correction_exponent")),
80 _provided_gas_heating_correction_exponent(isParamSetByUser(
"gas_heating_correction_exponent")),
95 "If wall temperature ever exceeds the fluid temperature, even in iteration, and the " 96 "fluid is a gas, then the parameter 'gas_heating_correction_exponent' must be provided.");
112 mooseWarning(
"This material uses a correlation that is valid for Re > 1e4, but the " 113 "material was evaluated with an Re = " +
115 ". This and all subsequent evaluations will be given a lower bound of 1e4."));
121 const ADReal f_ann =
std::pow(1.8 * std::log10(Re_star) - 1.5, -2.0);
122 const ADReal k1 = 1.07 + 900.0 / Re - 0.63 / (1.0 + 10.0 * Pr);
130 const ADReal Nu = f_ann / 8.0 * Re * Pr /
131 (k1 + 12.7 * std::sqrt(f_ann / 8.0) * (
std::pow(Pr, 2.0 / 3.0) - 1.0)) *
static const std::string SPECIFIC_HEAT_CONSTANT_PRESSURE
static InputParameters validParams()
const bool _fluid_is_gas
Fluid is a gas?
ADWallHTCGnielinskiAnnularMaterial(const InputParameters ¶meters)
const ADMaterialProperty< Real > & _mu
Dynamic viscosity.
static const std::string DYNAMIC_VISCOSITY
static const std::string TEMPERATURE
auto Prandtl(const T1 &cp, const T2 &mu, const T3 &k)
Compute Prandtl number.
static const std::string VELOCITY
static const std::string K
const ADMaterialProperty< Real > & _cp
Specific heat capacity.
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 THERMAL_CONDUCTIVITY
static const std::string HEAT_TRANSFER_COEFFICIENT_WALL
static const std::string DENSITY
const ADMaterialProperty< Real > & _p
Pressure.
const Real _D_h
Hydraulic diameter.
void mooseWarning(Args &&... args) const
static const std::string PRESSURE
const ADMaterialProperty< Real > & _vel
Velocity.
const bool _at_inner_wall
Heat transfer occurs at inner wall.
static InputParameters validParams()
static const std::string TEMPERATURE_WALL
Common class for single phase fluid properties.
auto wallHeatTransferCoefficient(const T1 &Nu, const T2 &k, const T3 &D_h)
Compute wall heat transfer coefficient.
std::string stringify(const T &t)
const Real _a
Diameter ratio.
Computes wall heat transfer coefficient for gases and water in an annular flow channel using the Gnie...
const ADMaterialProperty< Real > & _T_wall
Wall temperature.
const Real & _n
Gas heating correction exponent.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const bool _provided_gas_heating_correction_exponent
Provided gas heating correction exponent?
const ADMaterialProperty< Real > & _rho
Density.
const ADMaterialProperty< Real > & _T
Fluid temperature.
void mooseError(Args &&... args) const
registerMooseObject("ThermalHydraulicsApp", ADWallHTCGnielinskiAnnularMaterial)
const ADMaterialProperty< Real > & _k
Thermal conductivity.
const SinglePhaseFluidProperties & _fp
Fluid properties.
virtual void computeQpProperties() override
MooseUnits pow(const MooseUnits &, int)
ADMaterialProperty< Real > & _htc_wall
Wall heat transfer coefficient.
const Real & _L
Channel length.