https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Functions
WallFriction Namespace Reference

Functions

Real DarcyFrictionFactor (const Real &f_F)
 Computes Darcy friction factor from Fanning friction factor.
 
ADReal DarcyFrictionFactor (const ADReal &f_F)
 
Real FanningFrictionFactorChurchill (Real Re, Real roughness, Real D_h)
 Computes Fanning friction factor using Churchill correlation.
 
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.
 

Function Documentation

◆ DarcyFrictionFactor() [1/2]

ADReal WallFriction::DarcyFrictionFactor ( const ADReal f_F)

Definition at line 24 of file WallFrictionModels.C.

25{
26 return 4 * f_F;
27}

◆ DarcyFrictionFactor() [2/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.

19{
20 return 4 * f_F;
21}

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

◆ 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.

53{
54 using std::pow, std::max;
55 return (a + b * (PoD - 1) + c * pow(PoD - 1, 2)) / pow(max(Re, 10.0), n);
56}
ExpressionBuilder::EBTerm pow(const ExpressionBuilder::EBTerm &left, T exponent)
const double Re

Referenced by ADWallFrictionChengMaterial::computeQpProperties().

◆ FanningFrictionFactorChurchill() [1/2]

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

Definition at line 41 of file WallFrictionModels.C.

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

◆ FanningFrictionFactorChurchill() [2/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.

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}

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