CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   STAR-CCM+ (https://www.cfd-online.com/Forums/star-ccm/)
-   -   Call Macro @stop criteria reached (https://www.cfd-online.com/Forums/star-ccm/98934-call-macro-stop-criteria-reached.html)

eRzBeNgEl March 22, 2012 05: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 16: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 17:14.