×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Batch file for multiple runs [APDL]

Batch file for multiple runs [APDL]

Batch file for multiple runs [APDL]

(OP)
thread569-238844: Running batch mode

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   

RE: Batch file for multiple runs [APDL]

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.

RE: Batch file for multiple runs [APDL]

(OP)
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
  

RE: Batch file for multiple runs [APDL]

(OP)
Hi again,

That works fine for me now. Thanks for the directions!

Dave

RE: Batch file for multiple runs [APDL]

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
 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources