https://mooseframework.inl.gov
Functions
WallFriction Namespace Reference

Functions

Real DarcyFrictionFactor (const Real &f_F)
 Computes Darcy friction factor from Fanning friction factor. More...
 
ADReal DarcyFrictionFactor (const ADReal &f_F)
 
Real FanningFrictionFactorChurchill (Real Re, Real roughness, Real D_h)
 Computes Fanning friction factor using Churchill correlation. More...
 
ADReal FanningFrictionFactorChurchill (ADReal Re, ADReal roughness, ADReal D_h)
 
template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 >
auto FanningFrictionFactorCheng (const T1 &Re, const T2 &a, const T3 &b, const T4 &c, const T5 &n, const T6 &PoD)
 Computes Fanning friction factor using Cheng-Todreas correlation. More...
 

Function Documentation

◆ DarcyFrictionFactor() [1/2]

Real WallFriction::DarcyFrictionFactor ( const Real f_F)

Computes Darcy friction factor from Fanning friction factor.

Parameters
[in]f_FFanning friction factor

Definition at line 18 of file WallFrictionModels.C.

Referenced by ADWallFrictionChengMaterial::computeQpProperties(), ADWallFrictionChurchillMaterial::computeQpProperties(), WallFrictionChurchillMaterial::computeQpProperties(), and TEST().

19 {
20  return 4 * f_F;
21 }

◆ DarcyFrictionFactor() [2/2]

ADReal WallFriction::DarcyFrictionFactor ( const ADReal f_F)

Definition at line 24 of file WallFrictionModels.C.

25 {
26  return 4 * f_F;
27 }

◆ FanningFrictionFactorCheng()

template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 >
auto WallFriction::FanningFrictionFactorCheng ( const T1 &  Re,
const T2 &  a,
const T3 &  b,
const T4 &  c,
const T5 &  n,
const T6 &  PoD 
)

Computes Fanning friction factor using Cheng-Todreas correlation.

Parameters
ReReynolds number
aCorrelation constant
bCorrelation constant
cCorrelation constant
nCorrelation constant
PoDPitch-to-diameter ratio

Definition at line 51 of file WallFrictionModels.h.

Referenced by ADWallFrictionChengMaterial::computeQpProperties().

53 {
54  return (a + b * (PoD - 1) + c * std::pow(PoD - 1, 2)) / std::pow(std::max(Re, 10.0), n);
55 }
MooseUnits pow(const MooseUnits &, int)

◆ FanningFrictionFactorChurchill() [1/2]

Real WallFriction::FanningFrictionFactorChurchill ( Real  Re,
Real  roughness,
Real  D_h 
)

Computes Fanning friction factor using Churchill correlation.

Parameters
ReReynolds number
roughnessThe roughness of the surface
D_hHydraulic diameter

Definition at line 30 of file WallFrictionModels.C.

Referenced by ADWallFrictionChurchillMaterial::computeQpProperties(), WallFrictionChurchillMaterial::computeQpProperties(), and TEST().

31 {
32  Real Re_limit = std::max(Re, 10.0);
33 
34  Real a =
35  std::pow(2.457 * std::log(1.0 / (std::pow(7.0 / Re_limit, 0.9) + 0.27 * roughness / Dh)), 16);
36  Real b = std::pow(3.753e4 / Re_limit, 16);
37  return 2.0 * std::pow(std::pow(8.0 / Re_limit, 12) + 1.0 / std::pow(a + b, 1.5), 1.0 / 12.0);
38 }
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
MooseUnits pow(const MooseUnits &, int)

◆ FanningFrictionFactorChurchill() [2/2]

ADReal WallFriction::FanningFrictionFactorChurchill ( ADReal  Re,
ADReal  roughness,
ADReal  D_h 
)

Definition at line 41 of file WallFrictionModels.C.

42 {
43  ADReal Re_limit = std::max(Re, 10.0);
44 
45  ADReal a =
46  std::pow(2.457 * std::log(1.0 / (std::pow(7.0 / Re_limit, 0.9) + 0.27 * roughness / Dh)), 16);
47  ADReal b = std::pow(3.753e4 / Re_limit, 16);
48  return 2.0 * std::pow(std::pow(8.0 / Re_limit, 12) + 1.0 / std::pow(a + b, 1.5), 1.0 / 12.0);
49 }
DualNumber< Real, DNDerivativeType, true > ADReal
MooseUnits pow(const MooseUnits &, int)