|
[Sponsors] |
March 22, 2012, 05:54 |
Call Macro @stop criteria reached
|
#1 |
Senior Member
Join Date: Dec 2010
Posts: 135
Rep Power: 15 |
Hi guys,
i have a java macro which I want to call at the end of simulation. For example, after running 2000 iterations it should start the macro. This should work with if-then-else, but I do not know how to call the stop criteria Any suggestions? |
|
March 22, 2012, 16:01 |
|
#2 |
New Member
MadhuVC
Join Date: Feb 2011
Posts: 28
Rep Power: 15 |
you should be looking at the class SimulationIterator. calling the method getCurrentIteration will return you the current iteration number and if it satisfies your criterion you can call either call the other macro (another method right) or stop.
You can have more details in this class star.common.SimulationIterator. if you are looking for the exact syntax or example code, I won't be able to help much. hope this helps |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Macro problem | cfddummy | Siemens | 1 | April 9, 2007 12:37 |
Call a macro from a macro | Flav | Siemens | 2 | July 1, 2004 05:42 |
UDF switch macro vs. call Law | Christian | FLUENT | 4 | November 24, 2002 01:15 |
2D CFD code using SIMPLE algorithm | bfan | Main CFD Forum | 3 | June 22, 2002 22:01 |
Who's ok for an Open Source CFD project ? | Viet | Main CFD Forum | 16 | July 26, 1999 15:57 |