modelSuddenContraction

Pressure drop due to contraction using Modelica.Fluid.Dissipation.PressureLoss.Orifice

Extends from Interfaces.SISOFlow_nonConstArea (SISOFlow considering dynamic effects due to different inlet/outlet cross sectional areas).

Information

This component models a sudden pipe contraction. It computes the pressure loss of the fluid depending on the massflow rate or the massflow rate depending on a given pressure difference, some medium properties and the geometry of the contraction. The model is valid for both incompressible and compressible calculation up to at least Ma 0.3 at pipe outlet and one phase medium.

The pressure loss is calculated with the same functions used in the SuddenExpansion model. To obtain an inverse effect, the function is subjected to a virtual negative mass flow. The negative mass flow is compensated by a change of sign in the pressure drop. The mass flow through the base model is not affected by this.

The pipe bend component is using the partial model SISOFlow_nonConstArea implementing the common flow balances. For the calculation of pressure loss the function dp_suddenChange_DP by Modelica is implemented. The input records dp_suddenChange_IN_con & dp_suddenChange_IN_var are overwritten with the input parameters defining the geometry of the expansion and fluid properties. For more information on the underlying pressure loss function, click here. To improve the accuracy when compressible media are used, center state fluid properties (mean dynamic viscosity & mean density) are defined and refered to in the pressure loss function.

The following figure, a resistance coefficient chart representing the pressure loss model under common conditions is shown. (Currently not yet available)

[P. Jordan; HTWG Konstanz; 10/23]

HTWG Konstanz

Parameters

TypeNameDefaultDescription
StringinstanceName (from DropOfCommonsPlus)getInstanceName()Instance name
BooleanassumeConstantMaterialPropertiestrue= true, if constant density and dynamic viscosity is assumed (use '= false' e.g. for Ma > 0.3)
Modelica.Fluid.Dissipation.PressureLoss.Orifice.dp_suddenChange_IN_conIn_conInput record constants
Layout
BooleandisplayInstanceName (from DropOfCommonsPlus)dropOfCommons.displayInstanceNames= true, if instance name is displayed
BooleandisplayParameters (from DropOfCommonsPlus)dropOfCommons.displayParameters= true, if displaying parameters is enabled
Advanced
ThermofluidStream.Utilities.Units.InertanceL (from SISOFlow_nonConstArea)dropOfCommons.LInertance of the flow
StateSelectm_flowStateSelect (from SISOFlow_nonConstArea)StateSelect.defaultState select for m_flow
Booleanclip_p_out (from SISOFlow_nonConstArea)If false, set dr_corr to zero
Medium.AbsolutePressurep_min (from SISOFlow_nonConstArea)dropOfCommons.p_minMinimal steady-state output pressure
Medium.Densityrho_mindropOfCommons.rho_minMinimal density
StateSelectdpStateSelectStateSelect.defaultState select for dp
ThermofluidStream.Utilities.Units.InertanceL_valuedropOfCommons.LInertance
Initialization › Mass flow
InitializationMethodsinitM_flow (from SISOFlow_nonConstArea)ThermofluidStream.Utilities.Types.InitializationMethods.noneInitialization method for m_flow
SI.MassFlowRatem_flow_0 (from SISOFlow_nonConstArea)0Initial value for m_flow
ThermofluidStream.Utilities.Units.MassFlowAccelerationm_acceleraton_0 (from SISOFlow_nonConstArea)0Initial value for der(m_flow)
Geometry
SI.Lengthd_1Inlet diameter
SI.Lengthd_2Outlet diameter
Initialization › dp
ThermofluidStream.Utilities.Types.InitializationMethodsinitdpThermofluidStream.Utilities.Types.InitializationMethods.noneInitialization method for pressure difference dp
SI.Pressuredp_00Initial value for pressure difference dp
ThermofluidStream.Utilities.Units.MassFlowAccelerationdp_acceleraton_00Initial value for der(dp)

Connectors

TypeNameDefaultDescription
ThermofluidStream.Interfaces.Inletinlet (from SISOFlow_nonConstArea)
ThermofluidStream.Interfaces.Outletoutlet (from SISOFlow_nonConstArea)

Components

TypeNameDefaultDescription
SI.MassFlowRatem_flow (from SISOFlow_nonConstArea)inlet.m_flowmass flow through component
SI.Velocityc_in (from SISOFlow_nonConstArea)Inlet velocity
SI.Velocityc_out (from SISOFlow_nonConstArea)Outlet velocity
SI.Pressuredr_corr (from SISOFlow_nonConstArea)
SI.Pressuredp (from SISOFlow_nonConstArea)Static pressure difference dp = p_out - p_in
SI.Pressuredq (from SISOFlow_nonConstArea)Dynamic pressure difference dq = q_out - q_in
Medium.DensityrhoMean density
Medium.DynamicViscositymuMean dynamic viscosity
Modelica.Fluid.Dissipation.PressureLoss.Orifice.dp_suddenChange_IN_varIn_varInput record variables
SI.ReynoldsNumberRed_1*abs(m_flow)/A_1/muReynoldsnumber