massFlowRate_dp_staticHead

Return mass flow rate m_flow as function of pressure loss dp, i.e., m_flow = f(dp), due to wall friction and static head

Syntax

m_flow = massFlowRate_dp_staticHead(dp, rho_a, rho_b, mu_a, mu_b, length, diameter, g_times_height_ab, crossArea, roughness, dp_small, Re_turbulent)

Inputs (12)

dp

Type: Pressure (Pa)

Description: Pressure loss (dp = port_a.p - port_b.p)

rho_a

Type: Density (kg/m³)

Description: Density at port_a

rho_b

Type: Density (kg/m³)

Description: Density at port_b

mu_a

Type: DynamicViscosity (Pa·s)

Description: Dynamic viscosity at port_a (dummy if use_mu = false)

mu_b

Type: DynamicViscosity (Pa·s)

Description: Dynamic viscosity at port_b (dummy if use_mu = false)

length

Type: Length (m)

Description: Length of pipe

diameter

Type: Diameter (m)

Description: Inner (hydraulic) diameter of pipe

g_times_height_ab

Type: Real (m²/s²)

Description: Gravity times (Height(port_b) - Height(port_a))

crossArea

Default Value: pi * diameter ^ 2 / 4

Type: Area (m²)

Description: Inner cross section area

roughness

Default Value: 2.5e-5

Type: Roughness (m)

Description: Absolute roughness of pipe, with a default for a smooth steel pipe (dummy if use_roughness = false)

dp_small

Default Value: 1

Type: AbsolutePressure (Pa)

Description: Regularization of zero flow if |dp| < dp_small (dummy if use_dp_small = false)

Re_turbulent

Default Value: 4000

Type: ReynoldsNumber

Description: Turbulent flow if Re >= Re_turbulent (dummy if use_Re_turbulent = false)

Outputs (1)

m_flow

Type: MassFlowRate (kg/s)

Description: Mass flow rate from port_a to port_b