modelFlowResistance

Flow resistance model

Extends from Interfaces.SISOFlow (Base Model with basic flow eqautions for SISO).

Information

Implementation of a flow resistance pipe with different selectable flow resistance functions (laminar, laminar-turbulent, linear-quadratic).

The pressure drop can be displayed with the coloring (displayColor in the DropOfCommons). The parameter dp_ref_color can be adjusted depending on expected pressure drop and intensity of coloring. Coloring ranges from 0 to 100 % red, with 100 % red at dp = dp_ref_color.

dp_ref_color needs to be defined according to the use case.

Parameters

TypeNameDefaultDescription
StringinstanceName (from DropOfCommonsPlus)getInstanceName()Instance name
SI.LengthD_h4*areaCross/perimeterHydraulic diameter
SI.Lengthperimeterif shape == ShapeOfResistance.circular then 2*pi*r elseif shape == ShapeOfResistance.rectangle then 2*a + 2*b else perimeterInputPerimeter
SI.AreaareaCrossif shape == ShapeOfResistance.circular then pi*r*r elseif shape == ShapeOfResistance.rectangle then a*b else areaCrossInputCross-sectional area
SI.AreaareaHydraulicpi*D_h*D_h*1/4Hydraulic cross-sectional area
Layout
BooleandisplayInstanceName (from DropOfCommonsPlus)dropOfCommons.displayInstanceNames= true, if instance name is displayed
BooleandisplayParameters (from DropOfCommonsPlus)dropOfCommons.displayParameters= true, if displaying parameters is enabled
Advanced
BooleanconsiderInertance (from SISOFlow)dropOfCommons.considerInertance=true, if transient momentum (inertance) term is considered; disable only for advanced use
Utilities.Units.InertanceL (from SISOFlow)dropOfCommons.LInertance
StateSelectm_flowStateSelect (from SISOFlow)StateSelect.defaultState selection for mass flow rate
Booleanclip_p_out (from SISOFlow)= false, if dr_corr=0 (correction of inertial pressure difference)
Medium.AbsolutePressurep_min (from SISOFlow)dropOfCommons.p_minMinimum steady-state output pressure
Medium.Densityrho_mindropOfCommons.rho_minMinimal inlet density
Initialization › Mass flow rate
InitializationMethodsinitM_flow (from SISOFlow)ThermofluidStream.Utilities.Types.InitializationMethods.noneInitialization method for mass flow rate
SI.MassFlowRatem_flow_0 (from SISOFlow)0Initial value for mass flow rate
Utilities.Units.MassFlowAccelerationm_acceleration_0 (from SISOFlow)0Initial value for derivative of mass flow rate
Geometry
SI.LengthlLength
ShapeOfResistanceshapeThermofluidStream.Processes.Internal.ShapeOfResistance.circularCross section shape
SI.Radiusr0Radius
SI.Lengtha0Rectangle width
SI.Lengthb0Rectangle height
SI.AreaareaCrossInput0Cross-sectional area
SI.LengthperimeterInput0Wetted perimeter
Advanced › Inertance
BooleancomputeLtrue= true, if inertance L is computed from the geometry
Utilities.Units.InertanceL_valuedropOfCommons.LInertance
Layout › Visuals
SI.Pressuredp_ref_color1e5Reference pressure drop value for the intensity of coloring
Layout › Display variables
BooleanshowPressureDroptrue= true, if pressure drop is displayed
ThermofluidStream.Types.PressureUnitpressureDropUnitThermofluidStream.Types.PressureUnit.PaUnit used for displaying the pressure drop
IntegerpressureDropSignificantDigits1Number of significant digits used to display the pressure drop

Connectors

TypeNameDefaultDescription
Inletinlet (from SISOFlow)
Outletoutlet (from SISOFlow)

Components

TypeNameDefaultDescription
SI.MassFlowRatem_flow (from SISOFlow)inlet.m_flowMass flow rate
SI.Pressuredr_corr (from SISOFlow)Correction of inertial pressure difference
SI.Pressuredp (from SISOFlow)Pressure difference
Medium.AbsolutePressurep_in (from SISOFlow)Medium.pressure(inlet.state)Inlet pressure
Medium.SpecificEnthalpyh_in (from SISOFlow)Medium.specificEnthalpy(inlet.state)Inlet specific enthalpy
Medium.MassFraction[Medium.nXi]Xi_in (from SISOFlow)Medium.massFraction(inlet.state)Inlet mass fractions
Medium.AbsolutePressurep_out (from SISOFlow)Outlet pressure
Medium.SpecificEnthalpyh_out (from SISOFlow)Outlet specific enthalpy
Medium.MassFraction[Medium.nXi]Xi_out (from SISOFlow)Outlet mass fractions
RealphiNormalized pressure for coloring the flow resistance

Contents

NameDescription
pLoss