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"))
registerMooseObject("ThermalHydraulicsApp", WallFrictionChurchillMaterial)
static InputParameters validParams()
Computes drag coefficient using the Churchill formula for Fanning friction factor.
const Real & _roughness
Roughness of the surface.
const MaterialProperty< Real > & _D_h
Hydraulic diameter.
MaterialProperty< Real > & _f_D
const MaterialProperty< Real > & _vel
Velocity (x-component)
WallFrictionChurchillMaterial(const InputParameters ¶meters)
const MaterialProperty< Real > & _mu
Dynamic viscosity.
MaterialProperty< Real > & _df_D_drhoEA
virtual void computeQpProperties()
const MaterialProperty< Real > & _rho
Density of the phase.
static InputParameters validParams()
MaterialProperty< Real > & _df_D_drhoA
MaterialProperty< Real > & _df_D_drhouA
auto Reynolds(const T1 &volume_fraction, const T2 &rho, const T3 &vel, const T4 &D_h, const T5 &mu)
Compute Reynolds number.
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.