How can I perform batch simulation on VC

  1. How can we use the feature in Visual Components (VC) that automatically runs multiple simulations based on different user-defined parameter combinations?
    For example, in a production process simulation, analyzing system performance by varying machine speed to 50, 60, 70, etc.
    → Instead of running each simulation manually, using batch simulation to execute all of them at once and collect the results.

  2. Is it possible to access the Python scripting interface for the entire simulation project (i.e., the whole production process) in Visual Components, rather than just at the individual equipment/component level?

Hi,

  1. The easiest way is most likely to open multiple instances of VC that have the same layout on them. Then you can configure each instance differently and run them in parallel. If you want to automate it a bit more, you can create either an add-on or a component that has access to other components which brings us to point 2.

  2. As mentioned, components can interact which each other with the help of interfaces or, for example, a python script. Pseudo code to access all components would look something like this:

app = getApplication()
comp_list = app.Components
for c in comp_list:
    print c.Name
    # your implementation could go here

With this, you could access every machine (with your own logic to filter them out as you obtain all the components) and configure them to some property value stored to your component that accesses others. This could automate a bit of your work if you have many different machines to configure differently.

br,
lefa

1 Like