Package Modelica.​Fluid.​Pipes.​BaseClasses.​WallFriction.​Detailed.​Internal
Functions to calculate mass flow rate from friction pressure drop and vice versa

Information

This icon shall be used for a package that contains internal classes not to be directly utilized by a user.

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

Package Contents

NameDescription
dp_fric_of_m_flowCalculate pressure drop due to friction as function of mass flow rate
m_flow_of_dp_fricCalculate mass flow rate as function of pressure drop due to friction

Function 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

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
Pressuredp_fricPressure loss due to friction (dp = port_a.p - port_b.p)
Densityrho_aDensity at port_a
Densityrho_bDensity at port_b
DynamicViscositymu_aDynamic viscosity at port_a (dummy if use_mu = false)
DynamicViscositymu_bDynamic viscosity at port_b (dummy if use_mu = false)
LengthlengthLength of pipe
DiameterdiameterInner (hydraulic) diameter of pipe
AreacrossAreaInner cross section area
ReynoldsNumberRe1Boundary between laminar regime and transition
ReynoldsNumberRe2Boundary between transition and turbulent regime
RealDeltaRelative roughness

Outputs

TypeNameDescription
MassFlowRatem_flowMass flow rate from port_a to port_b
Realdm_flow_ddp_fricDerivative of mass flow rate with dp_fric

Function 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

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
MassFlowRatem_flowMass flow rate from port_a to port_b
Densityrho_aDensity at port_a
Densityrho_bDensity at port_b
DynamicViscositymu_aDynamic viscosity at port_a (dummy if use_mu = false)
DynamicViscositymu_bDynamic viscosity at port_b (dummy if use_mu = false)
LengthlengthLength of pipe
DiameterdiameterInner (hydraulic) diameter of pipe
AreacrossAreaInner cross section area
ReynoldsNumberRe1Boundary between laminar regime and transition
ReynoldsNumberRe2Boundary between transition and turbulent regime
RealDeltaRelative roughness

Outputs

TypeNameDescription
Pressuredp_fricPressure loss due to friction (dp_fric = port_a.p - port_b.p - dp_grav)
Realddp_fric_dm_flowDerivative of pressure drop with mass flow rate

Generated 2018-12-12 12:13:24 EST by MapleSim.