Stacking the simulations
Let's say I want to run several STAR-CD or CCM+ simulations during the weekend and im not at my PC.
Is it possible to stack the cases, so that STAR-CD or CCM+ automatically starts solving the next case when the criterions of the initial case is satisfied? Any ideas/help is appriciated |
Re: Stacking the simulations
1 - don't work on windows 2 - learn shell scripting (command 'wait') 3 - always 1 case per directory 4 - macros can even take care of the post-processing for you
|
Re: Stacking the simulations
I agree, windows is a seriously unfriendly environment for scripting
|
Re: Stacking the simulations
Well, actually it does work in windows..
combined batch and java.macro solves the problem.. This is for CCM+ bat-file: "c:\Program Files\CD-adapco\STAR-CCM+ 2.04.008\starccm+.exe" -batch runit.java internals1.sim rename finish.sim finish_run1.sim "c:\Program Files\CD-adapco\STAR-CCM+ 2.04.008\starccm+.exe" -batch runit.java internals2.sim rename finish.sim finish_run2.sim "c:\Program Files\CD-adapco\STAR-CCM+ 2.04.008\starccm+.exe" -batch runit.java internals3.sim rename finish.sim finish_run3.sim java-file: // STAR-CCM+ macro: runit.java package macro; import java.util.*; import star.common.*; import star.base.neo.*; public class runit extends StarMacro { public void execute() { Simulation simulation_0 = getActiveSimulation(); Solution solution_0 = simulation_0.getSolution(); //solution_0.clearSolution(); simulation_0.getSimulationIterator().run(); simulation_0.saveState(resolvePath("finish.sim")); } } |
All times are GMT -4. The time now is 19:44. |