12#include "libmesh/libmesh_common.h"
49template <
typename T1,
typename T2,
typename T3,
typename T4,
typename T5,
typename T6>
52 const T1 &
Re,
const T2 &
a,
const T3 & b,
const T4 &
c,
const T5 & n,
const T6 & PoD)
54 using std::pow, std::max;
55 return (
a +
b * (PoD - 1) +
c *
pow(PoD - 1, 2)) /
pow(max(
Re, 10.0), n);
DualNumber< Real, DNDerivativeType, true > ADReal
ExpressionBuilder::EBTerm pow(const ExpressionBuilder::EBTerm &left, T exponent)
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.
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.
The following methods are specializations for using the Parallel::packed_range_* routines for a vecto...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real