TUDelft-CNS-ATM / bluesky

The open source air traffic simulator
GNU General Public License v3.0
342 stars 239 forks source link

Running Multiple Simulations In Separate Intances of Bluesky #482

Closed nl22-nmsu closed 8 months ago

nl22-nmsu commented 9 months ago

Hello,

I'm curious if it's possible to run two separate instances of BS at the same time. I have a plugin with two operating conditions and I'd like to run one operating condition in one instance of BS and the other operating condition in a separate instance of BS simultaneously (preferably with both of them time synced though this isn't mandatory).

I tried just opening a new instance using another terminal but it ended up copying the first instance that was already running.

Thanks,

jooste commented 9 months ago

Hi @nl22-nmsu,

By default, BlueSky is a multi-process application. From the gui you can start multiple simulation instances that can then be used to run several simulations in parallel. You can use the ADDNODES stack command, and/or look at the treeview in the bottom-right corner of the interface.

nl22-nmsu commented 9 months ago

Perfect. How can I add nodes and reference into those nodes in a plugin?

jooste commented 8 months ago

What is it exactly that you want to do? Each node is a separate simulation instance, which can load its own plugins.

nl22-nmsu commented 8 months ago

I realized that after I asked my last question. That accomplishes what I wanted to do. Thank you for the help!