This content has been marked as final. Show 4 replies
I was just testing 2009 sp3, and even having different configurations, I can use the run all studies to get them solved.
The downside is that it runs them in parallel, and does not que them up to solve one after the other. This would obviously be a great enhancement. If you've seen how Flow Simulation manages this, it would be great to have that for simulation also.
The only other alternative I can see is writing a macro to manage this. Technically it's not too hard, but I'm rusty on my VB skills, but there are examples in the API help. All you would do is traverse the studies, run each one in turn. I had a look and there appears to be api functions to process a run & know when it finishes. The only thing I haven't found yet is something that identifies the configuration associated with a study to ensure it is active. There should be something there, or perhaps making the study active does this automatically. A little testing should confirm this.
Hope this helps you out.
Thanks Ian. I've never programmed for Cosmos, but I'll give it a go.
Here is the macro I ended up writing. I know I can use the "Run All Studies" command that Ian pointed out, but it has its down sides. As far as I can tell, it's only available in the Run flyout button. I'm happily toolbar and command manager free, so I didn't feel like adding this button to any of my toolbars. As Ian mentioned, the studies are run in parallel. This basically makes your PC unusable until everything's finished. Lastly, I wanted to fiddle with the Simulation API