CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   CFX (http://www.cfd-online.com/Forums/cfx/)
-   -   Hpw to run cfx5solve in batch (http://www.cfd-online.com/Forums/cfx/18462-hpw-run-cfx5solve-batch.html)

yusoff February 8, 2001 01:40

Hpw to run cfx5solve in batch
 
Hi,

I have a lot of .def file waiting to be solve. If I wait for each of run to finish then it will take a very long time for me to finish my analysis. Is there any way I can automate the run such that it will start solving the next .def file after finishing with previous .def file ? Could anyone advise me and if possible give an example for this.

Thanks

Yusoff

Dan Williams February 8, 2001 02:36

Re: Hpw to run cfx5solve in batch
 
On NT write a batch file. On unix write a shell script. It's that easy. Just pick up a book on shell for UNIX or batch files on NT.

Dan.

yusoff February 8, 2001 06:28

script...
 
hmm... thanks for your suggestion. anyway I figured a way using Makefile...to do it. if I got time ..probably I'll try to find some nice book.

thanks

yusoff

Dan Williams February 12, 2001 00:23

Re: script...
 
A make file? Wow, that sounds sort of odd. Make is used for compiling programs. It should be as easy as
adding something like:


#!/bin/sh
cfx5solve -def myfile1.def
cfx5solve -def myfile2.def


etc... to a shell or batch file and that's it (you don't need the #!/bin/sh for a NT batch file). Both shell and batch support simple looping structures and conditional checks if you need to do that. You might also need additional switches if you are doing restarts or running parallel.

Dan.

yusoff February 14, 2001 01:19

thanks
 
heh .. that's right ... thank you for your tips ... I'll try it .

Yusoff

alikhube January 2, 2013 07:05

Hi

please help me step by step to run cfx batch mode

thank you

cdegroot January 2, 2013 10:26

This is already described above. If you are having specific problems, please describe them.


All times are GMT -4. The time now is 14:48.