CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   CFX (http://www.cfd-online.com/Forums/cfx/)
-   -   Is there any way to batch run in sequence? (http://www.cfd-online.com/Forums/cfx/25848-there-any-way-batch-run-sequence.html)

R.J May 22, 2008 05:32

Is there any way to batch run in sequence?
 
Hi, all.

I want to run a set of models in batch mode instead of interactive operation. Because one model could be solved in 2 hours, and I have several models to calculate during night.

After referring to documentation of help, I did not find the solution to get close to my goal. So, I hope anyone experienced this could do me a favor.

Thanks in advace!

R.J

andy2O May 22, 2008 12:27

Re: Is there any way to batch run in sequence?
 
The normal way to do this is to write a script to execute the CFX commands from a command line. The scripting can be done however you like - it is not part of CFX. So, on windows most people would use a batch script. On Linux/Unix, a shell script would generally be used. If you prefer, you could however use Perl, Python, etc instead....

It's quite simple to do - it's mainly just a list of CFX solver commands one after the other. You just need to make sure that the correct environment variables are set at the command prompt - you should be able to do this by launching your script from the CFX batch mode command prompt.

Good luck, andy

R.J May 22, 2008 20:21

Re: Is there any way to batch run in sequence?
 
Thank you very much, Andy. Your timely reply may lead to less time effort, thank you.

Jonathan May 26, 2008 13:02

Re: Is there any way to batch run in sequence?
 
One more tip is to use the "cfx5cmds" commands to extract the CCL from your .def file, manipulate it (for example changeing some input parameter) and writing it back again.

This way you avoid genereating multiple .def files for simple parameter changes.

R.J May 26, 2008 21:05

Re: Is there any way to batch run in sequence?
 
Thanks for your tip,Jonathan.

But this should be done in the interactive mode,right? And modified .def file need to be prepared before batch running.

R.J


All times are GMT -4. The time now is 00:15.