.DESLib.ARENALib.BookExamples.P_11_2a

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.

The level of the tank has been modeled as a continuous-time variable. This variable is controlled by the entities in the discrete-event part of the model.
Initially the flow rate to fill the tank is 10, so the tank starts getting filled. When an entity is created, it is delayed for 10 seconds, while waiting the tank level to reach 100. After that delay, the tank is full and the entity changes the flow rate to -10. The tank starts emptying. After another 10 seconds, the tank is empty and the entity re-sets the flow rate to 10, to restart the process.


Generated at 2024-04-28T18:16:21Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos