Modelica.Fluid.Pipes.BaseClasses.WallFriction.Detailed.Internal

Functions to calculate mass flow rate from friction pressure drop and vice versa

Information

Extends from Modelica.Icons.InternalPackage (Icon for an internal package (indicating that the package should not be directly utilized by user)).

Package Content

Name Description
Modelica.Fluid.Pipes.BaseClasses.WallFriction.Detailed.Internal.m_flow_of_dp_fric m_flow_of_dp_fric Calculate mass flow rate as function of pressure drop due to friction
Modelica.Fluid.Pipes.BaseClasses.WallFriction.Detailed.Internal.dp_fric_of_m_flow dp_fric_of_m_flow Calculate pressure drop due to friction as function of mass flow rate

Modelica.Fluid.Pipes.BaseClasses.WallFriction.Detailed.Internal.m_flow_of_dp_fric Modelica.Fluid.Pipes.BaseClasses.WallFriction.Detailed.Internal.m_flow_of_dp_fric

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

Information

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
dp_fricPressure loss due to friction (dp = port_a.p - port_b.p) [Pa]
rho_aDensity at port_a [kg/m3]
rho_bDensity at port_b [kg/m3]
mu_aDynamic viscosity at port_a (dummy if use_mu = false) [Pa.s]
mu_bDynamic viscosity at port_b (dummy if use_mu = false) [Pa.s]
lengthLength of pipe [m]
diameterInner (hydraulic) diameter of pipe [m]
crossAreaInner cross section area [m2]
Re1Boundary between laminar regime and transition [1]
Re2Boundary between transition and turbulent regime [1]
DeltaRelative roughness

Outputs

NameDescription
m_flowMass flow rate from port_a to port_b [kg/s]
dm_flow_ddp_fricDerivative of mass flow rate with dp_fric

Modelica.Fluid.Pipes.BaseClasses.WallFriction.Detailed.Internal.dp_fric_of_m_flow Modelica.Fluid.Pipes.BaseClasses.WallFriction.Detailed.Internal.dp_fric_of_m_flow

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

Information

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
m_flowMass flow rate from port_a to port_b [kg/s]
rho_aDensity at port_a [kg/m3]
rho_bDensity at port_b [kg/m3]
mu_aDynamic viscosity at port_a (dummy if use_mu = false) [Pa.s]
mu_bDynamic viscosity at port_b (dummy if use_mu = false) [Pa.s]
lengthLength of pipe [m]
diameterInner (hydraulic) diameter of pipe [m]
crossAreaInner cross section area [m2]
Re1Boundary between laminar regime and transition [1]
Re2Boundary between transition and turbulent regime [1]
DeltaRelative roughness

Outputs

NameDescription
dp_fricPressure loss due to friction (dp_fric = port_a.p - port_b.p - dp_grav) [Pa]
ddp_fric_dm_flowDerivative of pressure drop with mass flow rate
Automatically generated Thu Oct 1 16:07:57 2020.