dp_fric_of_m_flow

Calculate pressure drop due to friction as function of mass flow rate

Syntax

(dp_fric, ddp_fric_dm_flow) = dp_fric_of_m_flow(m_flow, rho_a, rho_b, mu_a, mu_b, length, diameter, crossArea, Re1, Re2, Delta)

Inputs (11)

m_flow

Type: MassFlowRate (kg/s)

Description: Mass flow rate from port_a to port_b

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

crossArea

Type: Area (m²)

Description: Inner cross section area

Re1

Type: ReynoldsNumber

Description: Boundary between laminar regime and transition

Re2

Type: ReynoldsNumber

Description: Boundary between transition and turbulent regime

Delta

Type: Real

Description: Relative roughness

Outputs (2)

dp_fric

Type: Pressure (Pa)

Description: Pressure loss due to friction (dp_fric = port_a.p - port_b.p - dp_grav)

ddp_fric_dm_flow

Type: Real

Description: Derivative of pressure drop with mass flow rate