×
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

Ansys in batch mode with shell scripts and qsub command

Ansys in batch mode with shell scripts and qsub command

Ansys in batch mode with shell scripts and qsub command

(OP)
Hello all,

I've been doing FEA simulations with Ansys for several years now, and recently I have been allowed to use a cluster running on Linux. Since I am quite newbie to this thing, I have read a lot on the internet to get more familiar with Unix language. I found some example codes which are supposed to launch Ansys and read input files, but it does not work for me. What I want to do is simple:
1- I need to use Ansys 12.1 in batch mode, with the Academic Research license (aa_r);
2- Ansys should read my input file (which is an APDL command file) and save the database and results in my working directory on the server.

I know I have to write a shell script to call Ansys, and then to call this script via the "qsub" command. I think the shell script should look like this, or at least be close to:

CODE

#!/bin/bash

#PBS -l nodes=1:ppn=1

nohup /ansys_inc/v121/ansys/bin/ansys121 -b nolist -p aa_r -j jobname -i jobname.inp -o jobname.out &

with "jobname.inp" being my APDL command file and "jobname.out" being the output file. Then I should call this script by typing the command "qsub example.sh", with "example.sh" being the shell script.

Obviously there is something wrong with my understanding of shell scripts since it does not work! So any advice would be appreciated!

Thank you in advance!

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