Returns the pressure drop associated with a length of rectangular duct given the fluid, its flow rate and state, the width, height and length of the duct.  This function calls the DuctFlow function from the heat transfer library assuming a smooth wall.


DELTAP = DuctRectFriction_CL(F$, m_dot, T, P, H, W, L)



F$:  fluid string identifier

m_dot:  mass flow rate (kg/s, lbm/hr)

T:  inlet temperature (K, C, F, or R)

P:  inlet pressure (bar, atm, Pa, kPa, or MPa)

H:  duct height (m or ft)

W:  duct width (m or ft)

L:  duct length (m or ft)



DELTAP:  pressure drop (bar, atm, Pa kPa, or MPa)



$UnitSystem SI Mass J C Pa

$Load Component Library

$VarInfo DP units=Pa


F$ = 'Air'

m_dot = 0.1 [kg/s]

T =  20 [C]

P = 100000 [Pa]

H = 0.1 [m]

W = 0.1 [m]

L = 5 [m]

DP = DuctRectFriction_CL(F$, m_dot, T, P, H, W, L)



DP = 45.85 [Pa]}