|
[Sponsors] |
![]() |
![]() |
#1 |
Guest
Posts: n/a
|
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 |
|
![]() |
![]() |
![]() |
#2 |
Guest
Posts: n/a
|
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
|
|
![]() |
![]() |
![]() |
#3 |
Guest
Posts: n/a
|
I agree, windows is a seriously unfriendly environment for scripting
|
|
![]() |
![]() |
![]() |
#4 |
Guest
Posts: n/a
|
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")); } } |
|
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
2D Simulations | Uros | CFX | 7 | February 24, 2007 08:04 |
How to time simulations | Sara | FLUENT | 2 | May 16, 2006 04:15 |
LES simulations | Ben Andrus | FLUENT | 3 | December 4, 2004 09:23 |
2D simulations | jenn | Main CFD Forum | 3 | May 22, 2004 04:16 |
Simulations of CDA | Ernesto Benini | Main CFD Forum | 0 | November 21, 2000 06:30 |