.DESLib.SIMANLib.BookExamples.P10_2

Information

This model represents a factory that produces canned orange juice. It has been modeled as a hybrid model.

The orange juice arrives to the factory in trucks. Each truck must wait for a free dock to start pumping its content into the factory tank. When the truck is empty, it leaves the dock. If the factory tank gets full, the pumping operation is stopped until some capacity is available.

The canning system takes juice from the factory tank and produces pallets. If the tank is empty, the canning system has to wait.

The juice in the trucks and the factory tank have been modeled as continuous-time variables.
The control of the operations is performed by the flow of entities through the system.
The interaction between the discrete-event part and the continuous-time part has been performed using the ExternalAssign block, and the CrossUP and CrossDOWN models from the DEVSLib library (which are compatible with all the SIMANLib blocks).

Simulation

The number of completed pallets is counted, and the discrete-time statistics for the number of trucks waiting for a free dock are recorded.
Results are written to the SIMANLIB_RESULTS.txt file, at the end of the simulation.
The continuous-time variables representing the truck, tank and canner levels can be ploted using Dymola.


Generated at 2024-03-27T19:15:56Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos