modelSeparator

Model of a phase separator for two-phase medium - Overdetermined (1 equation)

Extends from ThermofluidStream.Utilities.DropOfCommonsPlus.

Information

Model of a stationary phase separator, for example used in a staged vapor cycle.

The two mass flow rates are not independent. This model is locally overdetermined (one additional equation). Therefore, one of the two outlets must be connected to an underdetermined component (e.g., LoopBreaker or Sink_free) to ensure that the overall system remains balanced.

The phase seperator is no loop-breaker. When the phase separator is used inside a loop, a loop-breaker must still be included to break algebraic loops.

Parameters

TypeNameDefaultDescription
StringnamegetInstanceName()
Advanced
BooleanconsiderInertancedropOfCommons.considerInertance=true, if transient momentum (inertance) term is considered; disable only for advanced use
ThermofluidStream.Utilities.Units.InertanceLdropOfCommons.LInertance of each component
Warnings
AssertionLevelassertionLevelAssertionLevel.warningAssertion level for dp_AB
RealrelTol_dp_AB1e-3Relative tolerance for inlet pressure difference pA, pB

Components

TypeNameDefaultDescription
ThermofluidStream.Interfaces.InletinletA
ThermofluidStream.Interfaces.OutletoutletLiquid
ThermofluidStream.Interfaces.InletinletB
ThermofluidStream.Interfaces.OutletoutletVapor
Medium.AbsolutePressurepp_APressure
Medium.AbsolutePressurep_AMedium.pressure(inletA.state)Pressure A
Medium.AbsolutePressurep_BMedium.pressure(inletB.state)Pressure B
Realdp_AB_relRelative difference in pressure at junction inlets
RealisDPWithinTol= 1.0 if pressure difference is within tolerance, = -1.0 if tolerance is exceeded
ThermofluidStream.Idealized.Processes.IsobaricisobaricHeatFlowPort
ThermofluidStream.Idealized.Processes.IsobaricisobaricHeatFlowPort1
Modelica.Blocks.Sources.RealExpressionh_dew
Modelica.Blocks.Sources.RealExpressionh_bubble

Contents

NameDescription
MediumMedium model

Revisions

  • 2026, by Raphael Gebhart (raphael.gebhart@dlr.de):
    Initial version.