functionm_flow_of_dp_fric

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

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

Inputs

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

Outputs

TypeNameDefaultDescription
SI.MassFlowRatem_flowMass flow rate from port_a to port_b
Realdm_flow_ddp_fricDerivative of mass flow rate with dp_fric

Contents

NameDescription
interpolateInRegion2_withDerivativeprotectedInterpolation in log-log space using a cubic Hermite polynomial, where x=log10(lambda2), y=log10(Re)