Gregoire Castagna avatar image
1 Like"
Gregoire Castagna asked jourjinaalex commented

Train crossover with railworks library


I'm testing the route algorithm in Railworks library, with a simple model. I'd like the algorithm to send one train on the direct path and the other one on the crossover path to avoid collision. So far I can only get the two trains to stop when facing each other. Is there a way with the railworks library to handle such situations without having to create the all process flow involved to manage such crossovers?

Thanks a lot for your help,



FlexSim 24.0.0
· 4
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Arun Kr avatar image Arun Kr commented ·
0 Likes 0 ·
jourjinaalex avatar image jourjinaalex Arun Kr commented ·
@Lucas Klein could yo help me on something please
0 Likes 0 ·
Lucas Klein avatar image Lucas Klein jourjinaalex commented ·
Absolutely @jourjinaalex , just please create a new question here on the forum so I can answer directly in your post.
0 Likes 0 ·
Show more comments

1 Answer

Lucas Klein avatar image
Lucas Klein answered Gregoire Castagna commented

Hello Gregoire,

This is a very important topic on railways simulation because when handling with crossovers, intersections, bifurcations and detours, there is an infinity of scenarios in railways operations, this can happen due to priority rules, operational protocols, traffic strategies and so on, so it's a very debated topic while developing RailWorks so we can provide a flexible solution for each case, and we know that this brings a lot of effort for simple-looking operations.

For your model, there is not an automatically way to RailWorks solve crossovers yet, so you need to create the processFlow to manage which train will go through the detour and which one should proceed straight ahead. Follows attached a model where you can find a way to manage the crossover using resources on ProcessFlow, so when two trains are trying to cross the detour is used, but if you have only one train, it will not use the detour

If you have an idea that might solve this situation, please feel free to create an idea here in FlexSim Answers with railworks topic or directly email our dev team at [email protected]

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Gregoire Castagna avatar image Gregoire Castagna commented ·

Thanks Lucas,

We manage several rail transport operations in different countries, and indeed such regulation questions can be tricky. Your proposal is interesting, although we should probably create the same logic on both trains (basically the condition to leave a station is that the next block is free and you can book a position in the following station, otherwise you stay in your current position).

This is basically recreating the network regulator logic, and I know for developping such models before that the simple logic above will lead to deadlocks, you have to look several blocks ahead and include prioritization rules.

Thanks again for your answer,


0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.