CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   How to batch run CFX 11 solver on Win XP (https://www.cfd-online.com/Forums/cfx/26075-how-batch-run-cfx-11-solver-win-xp.html)

James July 8, 2008 14:36

How to batch run CFX 11 solver on Win XP
 
I put all def files in the same directory and created the file.bat file as following:

C:\Program Files\ANSYS Inc\v110\CFX\bin\cfx5solve -def inletv20mms.def C:\Program Files\ANSYS Inc\v110\CFX\bin\cfx5solve -def inletv15mms.def C:\Program Files\ANSYS Inc\v110\CFX\bin\cfx5solve -def inletv10mms.def C:\Program Files\ANSYS Inc\v110\CFX\bin\cfx5solve -def inletv5mms.def C:\Program Files\ANSYS Inc\v110\CFX\bin\cfx5solve -def inletv1mms.def C:\Program Files\ANSYS Inc\v110\CFX\bin\cfx5solve -def inletv05mms.def C:\Program Files\ANSYS Inc\v110\CFX\bin\cfx5solve -def inletv01mms.def

when I run the bat file, The error information come out: 'C:\Program' is not recognized as an internal or external command, operable program or batch file.


andy2o July 8, 2008 14:50

Re: How to batch run CFX 11 solver on Win XP
 
I think it's probably the space in the 'Program Files' directory name that is causing problems. It's reading 'C:\Program' as a command on its own, and interpreting the rest as an additional argument. I think you can solve this by placing double quotes around each name containing spaces. For example:

"C:\Program Files\ANSYS Inc\v110\CFX\bin\cfx5solve" -def inletv20mms.def

but I cannot test this now, and I am more familiar with Linux systems. However, at least you know what the likely problem is and can look up how to solve it...

Also, put the separate run details on separate lines (perhaps you have already done this, but they are not shown in your post, so I cannot be sure).

Good luck, andy

James July 8, 2008 17:44

Re: How to batch run CFX 11 solver on Win XP
 
Thanks. andy.

I changed my file.bat file to the form "C:\Program Files\ANSYS Inc\v110\CFX\bin\cfx5solve" -def inletv20mms.def

when I ran the bat file, the error information comes out as:

An error has occurred in cfx5solve:

ANSYS solver terminated unexpectedly with return code

1792

But when I ran the simulation without batch command, there is no such kind of problem.

Glenn Horrocks July 8, 2008 18:20

Re: How to batch run CFX 11 solver on Win XP
 
Hi,

You should not need to specify the full path to the solver. If you use a command window from the CFX launcher it has all the paths already set up so you can just use cfx5solve. Also if the solver needs to find any other files it has the correct path to find it.

Glenn Horrocks

James July 8, 2008 18:45

Re: How to batch run CFX 11 solver on Win XP
 
I tried the command window and revised the bat file as cfx5solve -def inletv20mms.def ..............................

It doesn't help. The same error come out.

Sans July 9, 2008 04:08

Re: How to batch run CFX 11 solver on Win XP
 
Hi,

With reference to Andy's reply, I dont the double quotes would work, instead try to use the '~' operator, something like this.

C:\Progra~1\AnsysI~1\v110\CFX\bin\cfx5solve -def C:\yourdeffile.def

BB July 10, 2008 10:42

Re: How to batch run CFX 11 solver on Win XP
 
Did you figure it out? Search this forum, this topic has been discussed many times. There are different ways to run batch.

july July 10, 2008 10:44

Re: How to batch run CFX 11 solver on Win XP
 
change your cfx 11.0 to cfx11.0sp1

when cfx10.0 or 11.0sp1 is used, no problem will occur, however ,there is something wrong with batch mode in cfx11.0(non sp1). I use it for optimization. And your problem once had obsessed me for a long period of time.

anyway, you can add the "C:\Program Files\Ansys Inc\v110\CFX\bin" to your path. then you may write your bat file like this

cmd /c cfx5solve -def example.def

so you need not to input the whole path.

James July 10, 2008 11:57

Re: How to batch run CFX 11 solver on Win XP
 
Not yet. The is the only way I got from the forum. Anyway, I will search it again.

Thanks.


All times are GMT -4. The time now is 21:41.