modelP_11_2a

Carpet-cleaning-liquid model (control loop)

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.

Components

TypeNameDefaultDescription
IntegerPSNumberIn
IntegerPSNumberOut
Booleaninit
RealtankFlowRate
RealtankLevel
DESLib.ARENALib.BasicProcess.CreateCreateOneEntity
DESLib.ARENALib.BasicProcess.ProcessDelayToFill
DESLib.ARENALib.BasicProcess.AssignSetFlowRate
DESLib.ARENALib.BasicProcess.ProcessDelayToEmpty
DESLib.ARENALib.BasicProcess.AssignSetFlowRate2
DESLib.ARENALib.SRC.BasicProcess.VariableFlowRate
DESLib.ARENALib.SRC.BasicProcess.Resourceresource
DESLib.ARENALib.SRC.BasicProcess.Resourceresource1
DEVSLib.AuxModels.BreakLoopbreakLoop
DiscreteLib.ARENALib.BasicProcess.Entityentity