20 params.
addClassDescription(
"Computes the Darcy friction factor using the Churchill correlation.");
22 params.
addRequiredParam<MaterialPropertyName>(
"vel",
"x-component of the velocity");
25 params.
addRequiredParam<MaterialPropertyName>(
"f_D",
"Darcy friction factor material property");
26 params.
addRequiredParam<MaterialPropertyName>(
"mu",
"Dynamic viscosity material property");
28 params.
addParam<
Real>(
"roughness", 0,
"Surface roughness");
35 _f_D_name(getParam<MaterialPropertyName>(
"f_D")),
36 _f_D(declareADProperty<
Real>(_f_D_name)),
38 _mu(getADMaterialProperty<
Real>(
"mu")),
39 _rho(getADMaterialProperty<
Real>(
"rho")),
40 _vel(getADMaterialProperty<
Real>(
"vel")),
41 _D_h(getADMaterialProperty<
Real>(
"D_h")),
42 _roughness(getParam<
Real>(
"roughness"))
registerMooseObject("ThermalHydraulicsApp", ADWallFrictionChurchillMaterial)
const Real & _roughness
Roughness of the surface.
ADWallFrictionChurchillMaterial(const InputParameters ¶meters)
ADMaterialProperty< Real > & _f_D
virtual void computeQpProperties()
static InputParameters validParams()
const ADMaterialProperty< Real > & _vel
Velocity (x-component)
auto Reynolds(const T1 &volume_fraction, const T2 &rho, const T3 &vel, const T4 &D_h, const T5 &mu)
Compute Reynolds number.
const ADMaterialProperty< Real > & _D_h
Hydraulic diameter.
Real DarcyFrictionFactor(const Real &f_F)
Computes Darcy friction factor from Fanning friction factor.
Real FanningFrictionFactorChurchill(Real Re, Real roughness, Real D_h)
Computes Fanning friction factor using Churchill correlation.
static InputParameters validParams()
const ADMaterialProperty< Real > & _mu
Dynamic viscosity.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Computes drag coefficient using the Churchill formula for Fanning friction factor.
const ADMaterialProperty< Real > & _rho
Density of the phase.