CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > Siemens

looping a macro

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

LinkBack Thread Tools Search this Thread Display Modes
Old   July 3, 2008, 18:17
Default looping a macro
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


// insert your recorded macro code here


Any java book or a bit of work with google should sort you out.

  Reply With Quote


Thread Tools Search this Thread
Search this Thread:

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
looping rr123 FLUENT 1 July 8, 2008 17:49
load sheme macro (Solv Execute Command macro) manu FLUENT 2 March 13, 2008 01:00
Looping in UDF!!! safa FLUENT 0 December 11, 2007 08:07
Macro Trouble -Winows Explorer Crashes with Macro Martin Castillo FLUENT 1 July 25, 2007 04:18
looping macro equivalence Swarup FLUENT 1 June 8, 2006 05:14

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