modelSwitch

Extends from ThermofluidStream.Utilities.DropOfCommonsPlus (Extend this to use 'dropOfCommons', 'instanceName', 'displayInstanceName' and 'displayParameters'), Modelica.Icons.ObsoleteModel (Icon for classes that are obsolete and will be removed in later versions).

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

TypeNameDefaultDescription
StringinstanceName (from DropOfCommonsPlus)getInstanceName()Instance name
SI.MassFlowRatem_flow_ref0.1Reference mass flow rate
Medium.AbsolutePressurep_ref1e5Reference pressure
RealrelativeLeakiness1e-3Imperfection of valve
BooleaninvertInputfalse=true, if input single is inverted
Layout
BooleandisplayInstanceName (from DropOfCommonsPlus)dropOfCommons.displayInstanceNames= true, if instance name is displayed
BooleandisplayParameters (from DropOfCommonsPlus)dropOfCommons.displayParameters= true, if displaying parameters is enabled
Initialization
BooleaninitializeOneMassflowSplitfalse= true, if mass flow rate ratio is initialized
Advanced
ThermofluidStream.Utilities.Units.InertanceLdropOfCommons.LInertance

Connectors

TypeNameDefaultDescription
ThermofluidStream.Interfaces.Inletinlet
ThermofluidStream.Interfaces.OutletoutletA
ThermofluidStream.Interfaces.OutletoutletB
Modelica.Blocks.Interfaces.RealInputuFlow split

Components

TypeNameDefaultDescription
ThermofluidStream.FlowControl.TanValvetanValve
ThermofluidStream.FlowControl.TanValvetanValve1
ThermofluidStream.Topology.SplitterT2splitterT2_1
Realu2(if not invertInput then u else 1 - u)

Contents

NameDescription
MediumMedium model