CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > CD-adapco

Stacking the simulations

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   December 14, 2006, 11:10
Default Stacking the simulations
  #1
Kasper Skriver
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
  Reply With Quote

Old   December 14, 2006, 17:27
Default Re: Stacking the simulations
  #2
shell scripting
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

  Reply With Quote

Old   December 14, 2006, 17:28
Default Re: Stacking the simulations
  #3
Ben
Guest
 
Posts: n/a
I agree, windows is a seriously unfriendly environment for scripting
  Reply With Quote

Old   December 18, 2006, 04:23
Default Re: Stacking the simulations
  #4
Kasper Skriver
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"));

} }

  Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
2D Simulations Uros CFX 7 February 24, 2007 09:04
How to time simulations Sara FLUENT 2 May 16, 2006 04:15
LES simulations Ben Andrus FLUENT 3 December 4, 2004 10: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 07:30


All times are GMT -4. The time now is 01:37.