Page 415 - ExtendSim User Guide
P. 415

Merging, Diverging, and Routing Flow 389
Merging and diverging flow
the routing of flow by providing different values (1, 2, 3, 4 sequentially every 20 minutes) at the Merge block’s ID connector.
In this model, the Merge block is set to Invalid value at ID: choose top connection. This means that when the ID connector gets a value of 4 from the Create block, it will select the flow from its top input connector.
Batch/Unbatch mode
The Batch and Unbatch modes are used to cause a different total amount of outflow than what would be indicated by the total amount of inflow or to change the total amount of inflow into a different total amount of outflow.
• When the Merge block is in Batch mode, each unit of flow from each inflow branch is com- bined into one outflow unit. The effective rates of each inflow branch and the outflow con- nector are thus required to be equal. In this mode, the Merge block's behavior is similar to that of the Batch block (Item library).
• When the Diverge block is in Unbatch mode, each unit of flow from its inflow branch is cloned into one unit of flow for each outflow branch. The effective rates for the inflow con- nector and each outflow branch are thus required to be equal. In this mode, the Diverge block's behavior is similar to that of the Unbatch block (Item library).
☞ The Batch/Unbatch modes are different from all the other modes because the amount of total inflow is never equal to the amount of total outflow.
Batch Mode Merge model
In the Batch Mode Merge example, the Merge block is set to Merge mode: batch. Each time unit the block takes one unit of flow from Infinite Source 1 and one unit of flow from Infinite Source 2. It then com- bines them to make one unit of output flow per time unit. Since the model runs for 1,000 time units, the Infinite Source 1 and Infinite Source 2 blocks each provide 1,000 units of flow.
Notice the amount of flow (1,000 units) that
has entered the Infinite Sink is half the total
amount of flow that has left the two source
tanks. This is because the effective rate for
the Merge block’s outflow connector is required to be the same as the rate at each of its two inflow branches.
Unbatch Mode Diverge model
In this example, one unit of flow per time unit from the Infinite Source is unbatched into two flow units per time unit – one for Infinite Sink 1 and the other for Infinite Sink 2. Notice the total quantity of flow (2,000) in the two sink tanks is double the amount of flow (1,000) that exited the source tank.
Batch Mode Merge model
Discrete Rate


































































































   413   414   415   416   417