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
| Type | Name | Default | Description |
|---|---|---|---|
| String | name | getInstanceName() | |
| Advanced | |||
| Boolean | considerInertance | dropOfCommons.considerInertance | =true, if transient momentum (inertance) term is considered; disable only for advanced use |
| ThermofluidStream.Utilities.Units.Inertance | L | dropOfCommons.L | Inertance of each component |
| Warnings | |||
| AssertionLevel | assertionLevel | AssertionLevel.warning | Assertion level for dp_AB |
| Real | relTol_dp_AB | 1e-3 | Relative tolerance for inlet pressure difference pA, pB |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| ThermofluidStream.Interfaces.Inlet | inletA | ||
| ThermofluidStream.Interfaces.Outlet | outletLiquid | ||
| ThermofluidStream.Interfaces.Inlet | inletB | ||
| ThermofluidStream.Interfaces.Outlet | outletVapor | ||
| Medium.AbsolutePressure | p | p_A | Pressure |
| Medium.AbsolutePressure | p_A | Medium.pressure(inletA.state) | Pressure A |
| Medium.AbsolutePressure | p_B | Medium.pressure(inletB.state) | Pressure B |
| Real | dp_AB_rel | Relative difference in pressure at junction inlets | |
| Real | isDPWithinTol | = 1.0 if pressure difference is within tolerance, = -1.0 if tolerance is exceeded | |
| ThermofluidStream.Idealized.Processes.Isobaric | isobaricHeatFlowPort | ||
| ThermofluidStream.Idealized.Processes.Isobaric | isobaricHeatFlowPort1 | ||
| Modelica.Blocks.Sources.RealExpression | h_dew | ||
| Modelica.Blocks.Sources.RealExpression | h_bubble |
Contents
| Name | Description |
|---|---|
| Medium | Medium model |
Revisions
-
2026, by Raphael Gebhart (raphael.gebhart@dlr.de):
Initial version.