CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens

looping a macro

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 3, 2008, 19:17
Default looping a macro
  #1
Troy
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.

  Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 17:43.