functionDarcyFrictionFactor

Computes the Darcy friction factor from mass flow rate

Inputs

TypeNameDefaultDescription
SI.MassFlowRatem_flow
SI.Areaarea
SI.Densityrho
SI.DynamicViscositymu
SI.Diameterdiameter
SI.Lengthroughness
SI.Lengthlength
SI.ReynoldsNumberRe_turbulent4000Turbulent flow if Re >= Re_turbulent (dummy if use_Re_turbulent = false)

Outputs

TypeNameDefaultDescription
SI.PressuredpPressure loss (dp = port_a.p - port_b.p)

Contents

NameDescription
interpolateInRegion2protected