CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   STAR-CCM+ (https://www.cfd-online.com/Forums/star-ccm/)
-   -   Macro for running simulation after stopping criteria (https://www.cfd-online.com/Forums/star-ccm/162838-macro-running-simulation-after-stopping-criteria.html)

Alberto Damas November 18, 2015 12:40

Macro for running simulation after stopping criteria
 
As the title says, I want to make a macro that runs the simulation when a stopping criteria stop it.

The goal is:
while stopping criteria(A) is not true:
run
when stopping criteria (B) is true, execute mesh (it has a field function refinement)
end.


I guess it is just a few lines but I am not used to use this kind of tool. Can anyone tell me how would it be? Or at least somewhere to find useful help about this?

Thx.

me3840 November 20, 2015 01:08

You can construct the macro by simply recording yourself doing these actions and looking at the output of the file. If you hook up an IDE to the STAR-CCM+ API, you can gain access to other functions that aren't really accessible from the GUI (like testing if a stopping criterion is true or not). Take a look at the user portal, there's several good articles there I think.


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