|
[Sponsors] |
March 19, 2008, 18:37 |
Need a macro to run every timestep
|
#1 |
Guest
Posts: n/a
|
1.) Do macros automatically run every timestep? 2.) Does anyone have a sample of such a macro?
I need to come up with my own macro to export XYZ tables each timestep but I'm not sure how to go about getting the macro to run every step. Thanks! |
|
March 24, 2008, 16:37 |
Re: Need a macro to run every timestep
|
#2 |
Guest
Posts: n/a
|
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. |
|
March 24, 2008, 18:13 |
Re: Need a macro to run every timestep
|
#3 |
Guest
Posts: n/a
|
Thanks Steve!
I guess that was kind of a no-brainer. I hadn't though about the fact that you can step just once like that. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
load sheme macro (Solv Execute Command macro) | manu | FLUENT | 2 | March 13, 2008 01:00 |
Macro Trouble -Winows Explorer Crashes with Macro | Martin Castillo | FLUENT | 1 | July 25, 2007 04:18 |
timestep | ousegui | CFX | 0 | March 18, 2005 08:43 |
Call a macro from a macro | Flav | Siemens | 2 | July 1, 2004 05:42 |
timestep | Eugenio Mayol | CFX | 2 | February 8, 2001 01:39 |