We will start with specifying trains to appear at the stopLineEntry
track point every 15 minutes.
TrainSource:
Interarrival time: 15 minutes
# of cars (including loco): 11
Position on track: stopLineEntry
Once generated, every train will head to the stopLineArrival track point where it will decelerate and stop.
TrainMoveTo:
Below you can find the description of the Rail Library blocks that we are using.
Rail Library block |
Description |
Creates trains, performs initial setup and puts them in the railway network. Starts any rail process flowchart. Supports several types of arrivals scheduling. |
|
Removes trains from the model. |
|
Controls movement of trains. Can calculate routes and set switch states as the train goes along the route. Supports acceleration and deceleration. |
|
Couples two trains that "touch" each other into one train. |
|
Decouples cars from the incoming train and creates a new train from those cars. |
|
Takes the train agent and places it on the railway track. |
|
Removes the train from the railway network and passes the train agent on to the regular process flowchart. |
|
Defines the advanced settings for the railway network. |
Route is: Calculated automatically from current to
target
track
Target is: A given position on track
Position on track : stopLineHump
Finish options: Decelerate and stop
Direction: Backward
Route should not contain: trackArrival
Position on track: stopLineEntry
Position on track: stopLineArrival
Now that we have moved the loco to the back of the train consisting of rail cars, we need to add another TrainMoveTo block by Ctrl dragging (Mac OS: Cmd dragging) trainMoveTo1 block. It will simulate loco pushing rail cars to the hump area, represented in our model by the stopLineHump Position on track element.
Position on track: stopLineHump
Cruise speed (0 for no change): 5 meters per second
Delay time: 15 seconds
We have completed Phase 2. You can run the model to see how trains appear and move along our track.
Run the model
Click the Run toolbar button and choose the
experiment you want to run from the drop-down list. Your simulation
experiment is called Hump Yard /
Simulation.
On starting the model, you will see the model window. It displays the
presentation of the top-level agent type (by default, it's Main).
Observe the process dynamics. If needed, adjust the execution speed
to your needs using slow down and speed up
controls.
If you see the "The car being
created must fully be on one track" error, it will mean that
there is not enough space for the whole train to fit in on the railway
track before the stopLineEntry Position on Track
element. In this case you will need to increase the length of the trackEntry railway track and move
the stopLineEntry Position on Track further from the
track's start point.
The train stops at the stop line and the loco uses the lead track to
couple with the train end.
Reference model: Hump Yard - Phase 2