modelStep4Separator

Extends from Modelica.Icons.Example (Icon for runnable examples), ThermofluidStream.Idealized.Utilities.IconInertanceNeglect (Icon for considerInertance = false).

Information

In a forth step, the intermediate heat exchanger is replaced by a flashChamber operating at an intermediate pressure level. The evaporator and condenser temperature and the cooling heat flow rate are set. The flashChamber pressure level is varied linearly over time between the lower and higher pressure level and the coefficient of performance (COP) is evaluated.

The COP is not continuous due to interpolation artifacts in the Modelica medium R134a_ph. These discontinuities are not physical and do not occur when using TIL R134a. Such non-smooth behavior can adversely affect controller performance and may significantly slow down the simulation.

Since the flashChamber pressure is varying with time the inverse calculation of the mass flow rate in the upper loop based on the mass flow rate in the lower loop requires considerInertance = false, also see UsersGuide.InertanceNeglect.

Further documentation is available in the VaporCycle package.

Parameters

TypeNameDefaultDescription
Medium.TemperatureT_Evaporator253.15Evaporator temperature
Medium.TemperatureT_Condensor323.15Condensor temperature
Medium.AbsolutePressurep_EvaporatorMedium.saturationPressure(T_Evaporator)Evaporator pressure
Medium.AbsolutePressurep_CondensorMedium.saturationPressure(T_Condensor)Condensor pressure
Medium.SpecificEnthalpyh_out_EvaporatorMedium.dewEnthalpy(Medium.setSat_T(T_Evaporator))Evaporator outlet specific enthalpy
Medium.SpecificEnthalpyh_out_CondensorMedium.bubbleEnthalpy(Medium.setSat_T(T_Condensor))Condensor outlet specific enthalpy

Components

TypeNameDefaultDescription
Medium.AbsolutePressurep_SeperatorflashChamberPressureRamp.ySeperator pressure
Medium.SpecificEnthalpyh_SeperatorBubbleMedium.bubbleEnthalpy(Medium.setSat_p(p_Seperator))Specific bubble enthalpy at seperator pressure
Medium.SpecificEnthalpyh_SeperatorDewMedium.dewEnthalpy(Medium.setSat_p(p_Seperator))Specific dew enthalpy at seperator pressure
ThermofluidStream.Idealized.Processes.Adiabaticcompressor1
ThermofluidStream.DropOfCommonsdropOfCommons
ThermofluidStream.Idealized.Processes.Isenthalpicvalve1
ThermofluidStream.Idealized.Processes.Isobaricevaporator
Boundaries.LoopBreakerloopBreaker1
ThermofluidStream.Utilities.showRealValuecoefficientOfPerformance
ThermofluidStream.Idealized.Processes.Adiabaticcompressor2
ThermofluidStream.Idealized.Processes.Isobariccondensor
ThermofluidStream.Idealized.Processes.Isenthalpicvalve2
ThermofluidStream.Idealized.Boundaries.LoopBreakerloopBreaker2
Modelica.Blocks.Sources.RampflashChamberPressureRamp
Components.SeparatorflashChamber
Modelica.Blocks.Sources.RealExpressionh_SeperatorDew_
ThermofluidStream.Sensors.TwoPhaseSensorSelectvaporQual_separatorLiqOut
ThermofluidStream.Sensors.TwoPhaseSensorSelectvaporQual_evapOut
ThermofluidStream.Sensors.TwoPhaseSensorSelectvaporQual_evapValveOut
ThermofluidStream.Sensors.TwoPhaseSensorSelectvaporQual_evapCmpOut
ThermofluidStream.Sensors.TwoPhaseSensorSelectvaporQual_condValveOut
ThermofluidStream.Sensors.TwoPhaseSensorSelectvaporQual_condOut
ThermofluidStream.Sensors.TwoPhaseSensorSelectvaporQual_condCmpOut
ThermofluidStream.Sensors.TwoPhaseSensorSelectvaporQual_separatorVapOut
EnergyFlow.Sources.FixedEnergyFlowenergyFlowSource

Contents

NameDescription
Medium

Revisions

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