Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

Batch file for multiple runs [APDL]

Status
Not open for further replies.

Dave442

Mechanical
Sep 9, 2008
495
0
0
IE
thread569-238844

Hi all!

I am trying to set up a batch file that will allow me to run a series of analyses overnight - similar to the problem posted in the thread referenced above. As with the original post I am unfamiliar with DOS and I cant quite follow the directions in the Help file for creating the batch file.

set ANSYS121_PRODUCT=ANE3FL
set ANS_CONSEC=YES
"C:\Program Files\Ansys Inc\V121\ANSYS\bin\<platform>
\ansys121" -b -i vm1.dat -o vm1.out
"C:\Program Files\Ansys Inc\V121\ANSYS\bin\<platform>
\ansys121" -b -i vm1.dat -o vm1.out
etc...

Is this the only bit of code I need to write and save as a .BAT file?

In particular, I dont quite follow the definition of the input/output files. Do I enter the location of each file? If anyone could offer some insight or post a sample/link to a completed batch file so I could figure it out I would greatly appreciate the help.

I am using Ansys 12.1 with an academic research licence with Windows XP SP2 x64.

Thanking you,
Dave
 
Replies continue below

Recommended for you

If you have the input deck and want the output deck in the same directory you are running the batch file from you should not have to (but can). If they are somewhere else then you do.
 
Hi TERIO,

Thanks for the reply. So would I just create the .BAT file in the same directory as the input files in the following manner:

set ANSYS121_PRODUCT=aa_r
set ANS_CONSEC=YES
"C:\Program Files\Ansys Inc\V121\ANSYS\bin\WINX64
\ansys121" -b -i RUN1.dat -o RUN1.out
"C:\Program Files\Ansys Inc\V121\ANSYS\bin\WINX64
\ansys121" -b -i RUN2.dat -o RUN2.out
etc...

I think this might be right. Il try it today, Thanks again for the reply.

Dave
 
Hi Dave, my suggestion is defining the job name too.

"C:\Program Files\Ansys Inc\V121\ANSYS\bin\WINX64
\ansys121" -b –j RUN1 -i RUN1.dat -o RUN1.out

regards
Jalil
 
Status
Not open for further replies.
Back
Top