WOLFRAM SYSTEM MODELER

massFlowRate_dp

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

Wolfram Language

In[1]:=
SystemModel["Modelica.Fluid.Pipes.BaseClasses.WallFriction.LaminarAndQuadraticTurbulent.massFlowRate_dp"]
Out[1]:=

Syntax

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

Inputs (11)

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

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