CFD Online Logo CFD Online URL
Home > Forums > STAR-CCM+

Call Macro @stop criteria reached

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

LinkBack Thread Tools Display Modes
Old   March 22, 2012, 06:54
Default Call Macro @stop criteria reached
Senior Member
Join Date: Dec 2010
Posts: 135
Rep Power: 6
eRzBeNgEl is on a distinguished road
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?
eRzBeNgEl is offline   Reply With Quote

Old   March 22, 2012, 17:01
New Member
Join Date: Feb 2011
Posts: 27
Rep Power: 6
madhuvc is on a distinguished road
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
madhuvc is offline   Reply With Quote


Thread Tools
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro problem cfddummy CD-adapco 1 April 9, 2007 12:37
Call a macro from a macro Flav CD-adapco 2 July 1, 2004 05:42
UDF switch macro vs. call Law Christian FLUENT 4 November 24, 2002 02: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

All times are GMT -4. The time now is 22:06.