21 params.
addParam<MaterialPropertyName>(
"Hw",
23 "Heat transfer coefficient material property");
24 params.
addParam<MaterialPropertyName>(
27 params.
addParam<MaterialPropertyName>(
29 params.
addParam<MaterialPropertyName>(
31 params.
addParam<MaterialPropertyName>(
33 params.
addParam<MaterialPropertyName>(
35 params.
addParam<MaterialPropertyName>(
38 params.
addClassDescription(
"Computes wall heat transfer coefficient for gases and water using " 39 "the Gnielinski correlation");
46 _Hw(declareADProperty<
Real>(
"Hw")),
47 _rho(getADMaterialProperty<
Real>(
"rho")),
48 _vel(getADMaterialProperty<
Real>(
"vel")),
49 _D_h(getADMaterialProperty<
Real>(
"D_h")),
50 _k(getADMaterialProperty<
Real>(
"k")),
51 _mu(getADMaterialProperty<
Real>(
"mu")),
52 _cp(getADMaterialProperty<
Real>(
"cp")),
53 _T(getADMaterialProperty<
Real>(
"T")),
54 _T_wall(getADMaterialProperty<
Real>(
"T_wall"))
64 if (Re < 2300 || Re > 5E+6 || Pr < 0.5 || Pr > 2000)
67 "The Gnielinski correlation is valid when Pr is between 0.5 and 2000, and Re is " 68 "between 2300 and 5000000. Be aware that using values out of this range may lead to " 69 "significant errors in your results!"));
73 ADReal Nu = ((
f / 8.0) * std::max(0.0, Re - 1000.0) * Pr) /
74 (1.0 + 12.7 * std::sqrt(
f / 8.0) * (
std::pow(Pr, 2.0 / 3.0) - 1.0));
const ADMaterialProperty< Real > & _vel
Velocity.
static const std::string SPECIFIC_HEAT_CONSTANT_PRESSURE
static const std::string DYNAMIC_VISCOSITY
virtual void computeQpProperties() override
static const std::string TEMPERATURE
auto Prandtl(const T1 &cp, const T2 &mu, const T3 &k)
Compute Prandtl number.
static const std::string VELOCITY
const ADMaterialProperty< Real > & _k
Thermal conductivity.
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
void mooseWarning(Args &&... args) const
const ADMaterialProperty< Real > & _rho
Density.
static InputParameters validParams()
static const std::string TEMPERATURE_WALL
Real f(Real x)
Test function for Brents method.
static InputParameters validParams()
auto wallHeatTransferCoefficient(const T1 &Nu, const T2 &k, const T3 &D_h)
Compute wall heat transfer coefficient.
const ADMaterialProperty< Real > & _D_h
Hydraulic diameter.
ADMaterialProperty< Real > & _Hw
Wall heat transfer coefficient.
Computes wall heat transfer coefficient for gases and water using the Gnielinski correlation.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static const std::string HYDRAULIC_DIAMETER
const ADMaterialProperty< Real > & _cp
Specific heat capacity.
registerMooseObject("ThermalHydraulicsApp", ADWallHeatTransferCoefficientGnielinskiMaterial)
MooseUnits pow(const MooseUnits &, int)
const ADMaterialProperty< Real > & _mu
Dynamic viscosity.
ADWallHeatTransferCoefficientGnielinskiMaterial(const InputParameters ¶meters)