modelSeparator
Model of a phase separator for two-phase medium - Overdetermined (1 equation)
Extends from ThermofluidStream.Utilities.DropOfCommonsPlus (Extend this to use 'dropOfCommons', 'instanceName', 'displayInstanceName' and 'displayParameters').
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 | instanceName (from DropOfCommonsPlus) | getInstanceName() | Instance name |
| String | name | getInstanceName() | |
| Layout | |||
| Boolean | displayInstanceName (from DropOfCommonsPlus) | dropOfCommons.displayInstanceNames | = true, if instance name is displayed |
| Boolean | displayParameters (from DropOfCommonsPlus) | dropOfCommons.displayParameters | = true, if displaying parameters is enabled |
| 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 |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| ThermofluidStream.Interfaces.Inlet | inletA | ||
| ThermofluidStream.Interfaces.Outlet | outletLiquid | ||
| ThermofluidStream.Interfaces.Inlet | inletB | ||
| ThermofluidStream.Interfaces.Outlet | outletVapor |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| 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 model |
Revisions
-
2026, by Raphael Gebhart (raphael.gebhart@dlr.de):
Initial version.