modelSwitch
Extends from ThermofluidStream.Utilities.DropOfCommonsPlus, Modelica.Icons.ObsoleteModel.
Information
<<CAUTION: This model will be removed from the library in the next major release!>>
This model should only be used as a switch, i.e. it should either direct the flow completely in one or the other direction. This requires the input being either zero or one. All values in between will result in less mass flow and/ or a higher pressure drop, depending on the system up- or downstream of the switch, which in most cases is an undesired behaviour. If e.g. a bypass shall be controlled, use the newly created ThreeWayValve which allows for splitting the flow continuously between zero and one.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| SI.MassFlowRate | m_flow_ref | 0.1 | Reference mass flow rate |
| Medium.AbsolutePressure | p_ref | 1e5 | Reference pressure |
| Real | relativeLeakiness | 1e-3 | Imperfection of valve |
| Boolean | invertInput | false | =true, if input single is inverted |
| Initialization | |||
| Boolean | initializeOneMassflowSplit | false | = true, if mass flow rate ratio is initialized |
| Advanced | |||
| ThermofluidStream.Utilities.Units.Inertance | L | dropOfCommons.L | Inertance |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| ThermofluidStream.Interfaces.Inlet | inlet | ||
| ThermofluidStream.Interfaces.Outlet | outletA | ||
| ThermofluidStream.Interfaces.Outlet | outletB | ||
| Modelica.Blocks.Interfaces.RealInput | u | Flow split | |
| ThermofluidStream.FlowControl.TanValve | tanValve | ||
| ThermofluidStream.FlowControl.TanValve | tanValve1 | ||
| ThermofluidStream.Topology.SplitterT2 | splitterT2_1 | ||
| Real | u2 | (if not invertInput then u else 1 - u) |
Contents
| Name | Description |
|---|---|
| Medium | Medium model |