20 params.
addClassDescription(
"Computes the Darcy friction factor using the Churchill correlation.");
25 params.
addRequiredParam<MaterialPropertyName>(
"vel",
"x-component of the velocity");
28 params.
addRequiredParam<MaterialPropertyName>(
"f_D",
"Darcy friction factor material property");
29 params.
addRequiredParam<MaterialPropertyName>(
"mu",
"Dynamic viscosity material property");
38 _f_D_name(getParam<MaterialPropertyName>(
"f_D")),
39 _f_D(declareProperty<
Real>(_f_D_name)),
40 _df_D_drhoA(declarePropertyDerivativeTHM<
Real>(_f_D_name,
"rhoA")),
41 _df_D_drhouA(declarePropertyDerivativeTHM<
Real>(_f_D_name,
"rhouA")),
42 _df_D_drhoEA(declarePropertyDerivativeTHM<
Real>(_f_D_name,
"rhoEA")),
44 _mu(getMaterialProperty<
Real>(
"mu")),
45 _rho(getMaterialProperty<
Real>(
"rho")),
46 _vel(getMaterialProperty<
Real>(
"vel")),
47 _D_h(getMaterialProperty<
Real>(
"D_h")),
48 _roughness(getParam<
Real>(
"roughness"))
MaterialProperty< Real > & _df_D_drhouA
virtual void computeQpProperties()
auto Reynolds(const T1 &volume_fraction, const T2 &rho, const T3 &vel, const T4 &D_h, const T5 &mu)
Compute Reynolds number.
const MaterialProperty< Real > & _mu
Dynamic viscosity.
static InputParameters validParams()
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 Real & _roughness
Roughness of the surface.
registerMooseObject("ThermalHydraulicsApp", WallFrictionChurchillMaterial)
const MaterialProperty< Real > & _D_h
Hydraulic diameter.
MaterialProperty< Real > & _df_D_drhoA
MaterialProperty< Real > & _df_D_drhoEA
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Computes drag coefficient using the Churchill formula for Fanning friction factor.
const MaterialProperty< Real > & _rho
Density of the phase.
MaterialProperty< Real > & _f_D
const MaterialProperty< Real > & _vel
Velocity (x-component)
WallFrictionChurchillMaterial(const InputParameters ¶meters)