CFD Online Discussion Forums

CFD Online Discussion Forums (
-   STAR-CCM+ (
-   -   Call Macro @stop criteria reached (

eRzBeNgEl March 22, 2012 06:54

Call Macro @stop criteria reached
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?

madhuvc March 22, 2012 17:01

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

All times are GMT -4. The time now is 16:24.