This hybrid model represents a soaking-pit furnace operation to heat steel ingots.
The arrival of ingot to the furnace has been described with a discrete-event model.
The furnace has been modeled as a continuous-time model, that calculates the temperature of the furnace and each of the 9 positions.
Both parts communicate using the ExternalProcess module.
The ingots arrive to the heating process and wait for a free position in the furnace.
When there is a free position in the furnace, the externalProcess notifies using its entityStart port that a new ingot entered the furnace.
The model of the furnace detects the new ingot and starts heating it.
When any of the ingots of the furnace reaches the desired temperarute, it is removed from the furnace that notifies this action to the ExternalProcess by setting the value of the entityEnd port to the identifier of the leaving ingot.
The ExternalProcess module detects this event and sends the ingot to the next module.