Returns the pressure drop associated with a sudden expansion given the fluid, its flow rate and state and the upstream and downstream areas.  This function calls the K_sudden_expansion function from the minor loss library.


DELTAP = DuctSuddenExp_CL(F$, m_dot, T, P, A_2, A_1)



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)

A_2:  downstream duct area (m^2 or ft^2)

A_1:  upstream duct area (m^2 or ft^2)



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



$UnitSystem SI Mass kJ C Pa

$Load Component Library

$VarInfo DP units=Pa


F$ = 'Air'

m_dot = 0.1 [kg/s]

T =  20 [C]

P = 100000 [Pa]

A_1 = 0.01 [m^2]

A_2 = 0.02 [m^2]

DP = DuctSuddenExp_CL(F$, m_dot, T, P, A_2, A_1)



DP = 10.52 [Pa]}