|
[Sponsors] |
July 3, 2008, 19:17 |
looping a macro
|
#1 |
Guest
Posts: n/a
|
I'm trying to edit a macro so that it is included in a for loop. When I add the "for" command and try running it, I get errors that seem like it's not recognizing the command.
Do I need more commands than the "for" statement below? I'm not fluent in Java, so forgive the naivety ************************************************** ****** (from an archived thread) it is pretty easy to do firstly setup your model then record a macro that contains 1) the pressing of the step button. This makes the simulation take one timestep/iteration 2) the post processing steps you want (exports etc) Stop the recording and open up the java file. The next step is to wrap this code in a java for or while statement, for example int imax=100; //maximum number of steps for(i=0;i<imax;i++){ // insert your recorded macro code here } Any java book or a bit of work with google should sort you out. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
looping | rr123 | FLUENT | 1 | July 8, 2008 18:49 |
load sheme macro (Solv Execute Command macro) | manu | FLUENT | 2 | March 13, 2008 02:00 |
Looping in UDF!!! | safa | FLUENT | 0 | December 11, 2007 09:07 |
Macro Trouble -Winows Explorer Crashes with Macro | Martin Castillo | FLUENT | 1 | July 25, 2007 05:18 |
looping macro equivalence | Swarup | FLUENT | 1 | June 8, 2006 06:14 |