modelP_11_2b

Carpet-cleaning-liquid model (threshold detection)

Information

This hybrid model represents the level of a tank that is filled at a constant rate of 10, and when the volume reaches 100, the tank is emptied also at constant rate.

In this case the level of the tank is check using a CrossUP and CrossDOWN models, that detect when the tank gets full or empty. Depending on the event detected, the flow rate is changed to -10 or 10, respectively.

Components

TypeNameDefaultDescription
IntegerPSNumberIn
IntegerPSNumberOut
Booleaninit
DESLib.ARENALib.BasicProcess.AssignSetFlowRate
DESLib.ARENALib.BasicProcess.AssignSetFlowRate2
DESLib.ARENALib.BasicProcess.Disposedispose
DESLib.ARENALib.BasicProcess.Disposedispose1
DEVSLib.AuxModels.CrossUPcrossUP
DEVSLib.AuxModels.CrossDOWNcrossDOWN
RealtankFlowRate
RealtankLevel
DESLib.ARENALib.SRC.BasicProcess.VariableFlowRate
Modelica.Blocks.Sources.RealExpressionrealExpression