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

Star-CD vs. Star-CCM+

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 26, 2009, 02:34
Default Star-CD vs. Star-CCM+
  #1
rabat
Guest
 
Posts: n/a
Hello,

in Star-CD for the parallel calculation I use star -distribute to use diffrent workstation unther linux. Who can I set this in Star ccm+? or what is the best way to calculate a sim in diffrent workstation?

Thanks and ragards,

Rabat

  Reply With Quote

Old   February 27, 2009, 05:19
Default Re: Star-CD vs. Star-CCM+
  #2
MK
Guest
 
Posts: n/a
starccm -batch filename.java -n filename.sim

where n is the number of processor
  Reply With Quote

Old   February 27, 2009, 08:18
Default Re: Star-CD vs. Star-CCM+
  #3
Rabat
Guest
 
Posts: n/a
do I need filename.java?

Thanks,

Rabat

  Reply With Quote

Old   February 28, 2009, 06:40
Default Re: Star-CD vs. Star-CCM+
  #4
MK
Guest
 
Posts: n/a
yes you need java file
  Reply With Quote

Old   February 28, 2009, 12:17
Default Re: Star-CD vs. Star-CCM+
  #5
name
Guest
 
Posts: n/a
also without java file you can run your sim file on different unix, linux machine..

  Reply With Quote

Old   March 2, 2009, 23:37
Default Re: Star-CD vs. Star-CCM+
  #6
phil
Guest
 
Posts: n/a
if you leave out filename.java, ccm+ will just run the sim until the stopping criterion is met.
  Reply With Quote

Old   March 3, 2009, 11:34
Default Re: Star-CD vs. Star-CCM+
  #7
rabat
Guest
 
Posts: n/a
I need a java file with stopping criteria.

thanks

rabat
  Reply With Quote

Old   March 4, 2009, 11:08
Default Re: Star-CD vs. Star-CCM+
  #8
MK
Guest
 
Posts: n/a
/ STAR-CCM+ macro: test.java package macro;

import java.util.*;

import star.common.*; import star.base.neo.*;

public class test extends StarMacro {

public void execute() {

Simulation simulation_0 =

getActiveSimulation();

StepStoppingCriterion stepStoppingCriterion_0 =

((StepStoppingCriterion) simulation_0.getSolverStoppingCriterionManager().g etSolverStoppingCriterion("Maximum Steps"));

stepStoppingCriterion_0.setMaximumNumberSteps(600) ;

Solution solution_0 =

simulation_0.getSolution();

solution_0.resetForRestart();

} }

make it *.java change number of iteration (600)
  Reply With Quote

Old   March 23, 2009, 03:23
Default to Create a java macro
  #9
New Member
 
sriramakrishna
Join Date: Mar 2009
Posts: 2
Rep Power: 0
ramki is on a distinguished road
in order to get filenama .java in the CCM+ window there is a button called recard macro. so in the recording mode you have to record the auto save enabled, and some basic setup requried before you give a run and then you give a step run for a step size of 1 iteration or 10 iterations. with that it is will ask you to save the macro you give the location to save. this will be saved as a <filename>.java

after that open that *.java file and edit the no of iterations and save file loaction etc. to suite your requirement. then write a shell script as suggested by some one for the batch run
ramki is offline   Reply With Quote

Old   May 18, 2009, 18:25
Default
  #10
New Member
 
Join Date: May 2009
Posts: 4
Rep Power: 8
Lilu is on a distinguished road
There are two ways to run the code in parallel: manually or batch.
- To run manually, the "parallel" option must be selected in the "Open File" or "New Simulation" dialogs. Selecting this option allows you to specify the number of processors on which to run the simulation, either on the host machine or a specified other. Since STAR-CCM+ is a client-server application the simulation can be set to run in the Java client, then the client closed, leaving the solvers to carry on in the background (i.e. on the server).
- To run in batch, use the method specified in MK's first post. In this case a java macro is required to tell the simulation what to do once it is opened, e.g. run for x iterations, save the simulation, etc. Java macros are easy peasy in STAR-CCM+ because you can record them from within the program itself - just press the Record Macro button and perform the actions that you want your macro to carry out for you the next time it is run.
Lilu is offline   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
how to export a mesh from star design to star cd aounallah CD-adapco 4 March 6, 2009 07:22
Star Design to Star-CD(Prostar) AB CD-adapco 5 October 28, 2004 12:21


All times are GMT -4. The time now is 04:33.