CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens > STAR-CCM+

Call Macro @stop criteria reached

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 22, 2012, 05:54
Default Call Macro @stop criteria reached
  #1
Senior Member
 
Join Date: Dec 2010
Posts: 135
Rep Power: 15
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, 16:01
Default
  #2
New Member
 
MadhuVC
Join Date: Feb 2011
Posts: 28
Rep Power: 15
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

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 01:50.