CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   CFX (http://www.cfd-online.com/Forums/cfx/)
-   -   Batch Run (http://www.cfd-online.com/Forums/cfx/21474-batch-run.html)

Akin July 25, 2005 08:16

Batch Run
 
Can anyone please tell my how to set up a batch Run in linux for CFX-5.7 ?

Paul July 25, 2005 12:51

Re: Batch Run
 
Hi Akin,

Place all the ".def" files in separate directories (eg. directory1, directory2, etc.). Create a text file similar to the one below. Make the text file executable (use command "chmod 755 textfile"). Run the file by typing it's name.

cd directory1 nohup cfx5solve -batch -def run1.def cd ..

cd directory2 nohup cfx5solve -batch -def run2.def cd ..

cd directory3 nohup cfx5solve -batch -def run3.def cd ..


Couldn't be easier...

Cheers

Paul

Paul July 25, 2005 12:53

Re: Batch Run
 
P.S Don't forget CFX must be included in your path.

Akin July 25, 2005 14:49

Re: Batch Run
 
Thanks Paul, now I can go on vacation and still get the work done !

Mahmoud July 26, 2005 06:03

Re: Batch Run
 
Paul, what about running a batch with in initial file or a *.res ?

Paul Lewis July 26, 2005 07:30

Re: Batch Run
 
Hi Mahmoud,

You can use the additional -ini statement to restart from an old .res file. For example:

cd directory1 nohup cfx5solve -batch -def run1.def -ini oldfile1.res cd ..

cd directory2 nohup cfx5solve -batch -def run2.def -ini oldfile1.res cd ..

cd directory3 nohup cfx5solve -batch -def run3.def -ini oldfile1.res cd ..


This and other options (parallel running etc.) can all be found in the solver manual under "running CFX from the command line".

Cheers

Paul

pablo July 26, 2005 10:05

Re: Batch Run
 
What command would you add to make each run a local parallel run?

Thanks,

Pablo

Paul Lewis July 26, 2005 12:33

Re: Batch Run
 
Pablo

For local parallel only use the "-par-local" argument.

ie

cfx5solve -batch -def run1.def -ini -oldrun.res -par-local

Cheers

Paul

Glenn Horrocks July 26, 2005 18:34

Re: Batch Run
 
Hi,

You can also get help by the command line:

cfx5solve -help

Regards, Glenn Horrocks

Pablo July 27, 2005 02:36

Re: Batch Run
 
Thanks Paul!

It now works!

Pablo

Irondome June 24, 2013 16:37

1 Attachment(s)
Quote:

Originally Posted by Paul Lewis
;72756
Pablo

For local parallel only use the "-par-local" argument.

ie

cfx5solve -batch -def run1.def -ini -oldrun.res -par-local

Cheers

Paul

Hi paul,

I tried using your help but I get this error (attatched as screenshot)
Can you please help me ?

Thank You

ghorrocks June 24, 2013 20:07

You have not defined the initial condition arguement correctly. It should be -initial AxialXXX.res or something like that - check the documentation to be sure.


All times are GMT -4. The time now is 05:28.