modelOven

Batch processing of inflow (aka batch delay)

Extends from Icons.Oven (Icon for ovens), Interfaces.Basics.GenericStock_Special (Generic Stock with internal dynamics).

Information

This information is part of the Business Simulation Library (BSL). Please support this work and ► donate.

An oven (aka batch delay) can be seen as an idealized model of a batch process, e.g., cookies are put on a baking tray, the oven is loaded, the cookies are baked for some time, and finally the oven is unloaded (the process may then start over again).

The parameters or inputs batchSize, maxLoadingTime, processingTime, and setupTime specify the behavior of the batch process. The oven is loaded by a flow connected to its inflow port (usually from a cloud or another stock representing a buffer stock) until either the batchSize is reached (the oven's capacity) or the time since the loading of the oven commenced has reached the maxLoadingTime. It will then close and prevent further inflow for the duration of the processingTime. The unloading of the finished "material" will take place in dt time - a global variable that indicates the shortest possible durationa of any process in a model. The reloading can commence after setupTime has passed since the process has ended. For setupTime = 0 simulatenous loading and unloading will take place.

To initialize the oven, an initialLoad and an initialLoadingTime (e.g., how much time has already passed loading the oven when the simulation starts) have to be given.

Notes

  • Care has to be taking in the case of simultaneous loading and unloading as in the case of the loading rate being higher than the unloading rate the capacity could be reached before the unloading is done so that material would be processed twice.

  • batchSize, maxLoadingTime, processingTime, and setupTime can be time-varying continuous inputs, but are internally recalculated every time the process starts and then are held fixed.

Parameters

TypeNameDefaultDescription
OutputTypeinitialLoad0Amount loaded at start time
TimeinitialLoadingTime0Time that has already passed to load the initial load at start time
OutputTypebatchSizeunspecifiedConstant number of units processed in one batch (optional)
TimemaxLoadingTimeinfConstant maximum allowed time for loading (optional)
TimeprocessingTimeunspecifiedConstant processing time for the batch process or per unit loaded (optional)
TimesetupTimeunspecifiedTime needed after processing is finished before loading can start (set to zero for simultaneous loading and unloading)
TimeunloadingTimemodelSettings.dtTime needed to unload
Advanced
InitializationOptionsinit (from GenericStock_Special)InitializationOptions.FixedValueProvide InitializationOptions (Free, FixedValue, SteadyState)
Structural Parameters
BooleanhasStockInfoOutput (from GenericStock_Special)false= true, if a StockInfoOutput should be added to the stock
BooleanhasFixedProcessingTimefalse= true, if the processing time is given for the process, otherwise it is the time per unit loaded
BooleanhasConstantLoadingTimefalse= true, if the maximum allowed time for loading is to be given by the parameter
BooleanhasConstantBatchSizefalse= true, if the batch size is to be given by the parameter
BooleanhasConstantProcessingTimefalse= true, if the processing time is to be given by the parameter
BooleanhasConstantSetupTimefalse= true, if the setup time is to be given by a parameter
BooleanhasConstantUnloadingTimefalse= true, if the unloading time is to be given as a parameter

Connectors

TypeNameDefaultDescription
StockPortinflow (from GenericStock_Special)Inflow port of the stock
StockPort_Specialoutflow (from GenericStock_Special)Special outflow port of the stock (stock sets rate)
StockInfoOutputy_stockInfo (from GenericStock_Special)Optional StockInfoOutput
InputConnectordataInExpandable connector for inputs
OutputConnectordataOutExpandable connector for outputs

Components

TypeNameDefaultDescription
RealOutputy (from ThreeSO)Level or rate information
RealOutputy1 (from ThreeSO)Level or rate information
RealOutputy2 (from ThreeSO)Level or rate information
ModelSettingsmodelSettings

Contents

NameDescription
InputConnectorNamed inputs for the component
OutputConnector
TimeOutputprotected

Revisions

  • Fixed missing connect equations to establish potentially present variables in expandable connector for output in v2.1.0.

  • Removed conditionality for expandable connector dataIn in v2.1.0.

  • Connectors InputConnector and OutputConnector changed to encapsulated expandable connector classes in v2.1.0.

  • Continuous inputs made default in v2.1.0 and changed default parameter values to unspecified in v.2.1.0.