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
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | PSNumberIn | ||
| Integer | PSNumberOut | ||
| Boolean | init | ||
| DESLib.ARENALib.BasicProcess.Assign | SetFlowRate | ||
| DESLib.ARENALib.BasicProcess.Assign | SetFlowRate2 | ||
| DESLib.ARENALib.BasicProcess.Dispose | dispose | ||
| DESLib.ARENALib.BasicProcess.Dispose | dispose1 | ||
| DEVSLib.AuxModels.CrossUP | crossUP | ||
| DEVSLib.AuxModels.CrossDOWN | crossDOWN | ||
| Real | tankFlowRate | ||
| Real | tankLevel | ||
| DESLib.ARENALib.SRC.BasicProcess.Variable | FlowRate | ||
| Modelica.Blocks.Sources.RealExpression | realExpression |