modelLoopBreaker_m
Extends from ThermofluidStream.Utilities.DropOfCommonsPlus (Extend this to use 'dropOfCommons', 'instanceName', 'displayInstanceName' and 'displayParameters').
Information
Combination of ThermofluidStream.Source with Sink_m to artificially close a loop. Cyclic loops without a loop breaker lead to algebraic loops which can make the system unsolvable. The loop-breaker acts as both a source and a sink, defining a beginning (source) and an end (sink) in the loop, breaking the algebraic equations.
Inlet and outlet states of the loop breaker are independent of each other. The outlet state of the loop breaker is prescribed, while the user must ensure that the inlet state is consistent. Any deviation is indicated by a warning.
Discontinuous mass flow rates require considerInertance = false, see UsersGuide.InertanceNeglect.
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 |
| Mass flow rate | |||
| ValueSpecification | m_flowSpec | ThermofluidStream.Types.ValueSpecification.Fixed | Method for specifying the value of the inlet mass flow rate |
| SI.MassFlowRate | m_flow_in_par | 0 | Fixed inlet mass flow rate |
| Pressure | |||
| ValueSpecification | pSpec | ThermofluidStream.Types.ValueSpecification.Fixed | Specifies whether the outlet pressure is fixed or prescribed |
| Medium.AbsolutePressure | p_out_fixed | Medium.p_default | Fixed outlet pressure |
| Thermal | |||
| ThermalSpecification | thermalSpec | ThermofluidStream.Types.ThermalSpecification.Temperature | Thermal quantity used to define the outlet state |
| ValueSpecification | thermalValueSpec | ThermofluidStream.Types.ValueSpecification.Fixed | Specifies whether the outlet thermal quantity is fixed or prescribed |
| Medium.Temperature | T_out_fixed | Medium.T_default | Fixed outlet temperature |
| Medium.SpecificEnthalpy | h_out_fixed | Medium.h_default | Fixed outlet specific enthalpy |
| Mass fractions | |||
| ValueSpecification | XiSpec | ThermofluidStream.Types.ValueSpecification.Fixed | Specifies whether the outlet mass fractions are fixed or prescribed |
| Medium.MassFraction[Medium.nXi] | Xi_out_fixed | Medium.X_default[1:Medium.nXi] | Fixed outlet mass fractions |
| 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 |
| Advanced › Accepted errors | |||
| AssertionLevel | assertionLevel | AssertionLevel.warning | Assertion level |
| SI.PressureDifference | tol_p | 1e-5*Medium.p_default | Absolute tolerance for pressure p_in, p_out |
| SI.SpecificEnthalpy | tol_h | 10 | Absolute tolerance for specific enthalpy h_in, h_out |
| SI.MassFlowRate | tol_m_flow | 1e-3 | Absolute tolerance for mass flow rate m_flow_in, m_flow_out |
| Medium.MassFraction | tol_Xi | 1e-5 | Absolute tolerance for mass fractions Xi_in, Xi_out |
| Layout › Display parameters | |||
| Boolean | showMassFlowRate | true | = true to show the fixed inlet mass flow rate value m_flow_in_fixed |
| Boolean | showPressure | true | = true to show the fixed outlet pressure value p_out_fixed |
| Boolean | showThermalSpecification | true | = true to show the fixed outlet thermal specification value (either T_out_fixed or h_out_fixed) |
| Boolean | showMassFractions | false | = true to show the fixed outlet mass fraction values Xi_out_fixed |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | m_flow_in_prescribed | Prescribed inlet mass flow rate [kg/s] | |
| Modelica.Blocks.Interfaces.RealInput | p_out_prescribed | Prescribed outlet pressure [Pa] | |
| Modelica.Blocks.Interfaces.RealInput | T_out_prescribed | Prescribed outlet temperature [K] | |
| Modelica.Blocks.Interfaces.RealInput | h_out_prescribed | Prescribed outlet specific enthalpy [J/kg] | |
| Modelica.Blocks.Interfaces.RealInput[Medium.nXi] | Xi_out_prescribed | Prescribed outlet mass fractions [kg/kg] | |
| ThermofluidStream.Interfaces.Inlet | inlet | ||
| ThermofluidStream.Interfaces.Outlet | outlet |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| SI.MassFlowRate | m_flow_out | -outlet.m_flow | Outlet mass flow rate |
| Medium.AbsolutePressure | p_in | Medium.pressure(inlet.state) | Inlet pressure |
| Medium.SpecificEnthalpy | h_in | Medium.specificEnthalpy(inlet.state) | Inlet specific enthalpy |
| Medium.MassFraction[Medium.nXi] | Xi_in | Medium.massFraction(inlet.state) | Inlet mass fractions |
| SI.Pressure | dp | Pressure difference | |
| SI.SpecificEnthalpy | dh | Enthalpy difference | |
| SI.MassFlowRate | dm_flow | Mass flow rate difference | |
| ThermofluidStream.Units.MassFractionDifference[Medium.nXi] | dXi | Mass fraction difference |
Contents
| Name | Description |
|---|---|
| Medium model |
Revisions
-
2026, by Raphael Gebhart (raphael.gebhart@dlr.de):
Initial version.