|
[Sponsors] |
![]() |
![]() |
#1 |
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 |
|
![]() |
![]() |
![]() |
#2 |
Guest
Posts: n/a
|
starccm -batch filename.java -n filename.sim
where n is the number of processor |
|
![]() |
![]() |
![]() |
#3 |
Guest
Posts: n/a
|
do I need filename.java?
Thanks, Rabat |
|
![]() |
![]() |
![]() |
#4 |
Guest
Posts: n/a
|
yes you need java file
|
|
![]() |
![]() |
![]() |
#5 |
Guest
Posts: n/a
|
also without java file you can run your sim file on different unix, linux machine..
|
|
![]() |
![]() |
![]() |
#6 |
Guest
Posts: n/a
|
if you leave out filename.java, ccm+ will just run the sim until the stopping criterion is met.
|
|
![]() |
![]() |
![]() |
#7 |
Guest
Posts: n/a
|
I need a java file with stopping criteria.
thanks rabat |
|
![]() |
![]() |
![]() |
#8 |
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) |
|
![]() |
![]() |
![]() |
#9 |
New Member
sriramakrishna
Join Date: Mar 2009
Posts: 3
Rep Power: 17 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#10 |
New Member
Join Date: May 2009
Posts: 4
Rep Power: 17 ![]() |
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. |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to export a mesh from star design to star cd | aounallah | Siemens | 4 | March 6, 2009 06:22 |
Star Design to Star-CD(Prostar) | AB | Siemens | 5 | October 28, 2004 12:21 |