#when you have finished editing this file change the name and submit by using the sbatch program The flags indicate a field that must be edited in addition to the number of nodes,processors and time. # this file must be edited to suit your unique job. # This is an example of an Ansys Mechanical APDL job sbatch script. Once you have saved your changes, you can use the sbatch program to submit your job: You will also need to make a plain text file of the apdl commands you want to run using some text editor and substitute the name of that file in the appropriate spots in the script below. This script can be copied from the shared folder on the condo cluster to the directory you are in using this cp command:Ĭp /shared/hpc/sample-job-scripts/ansys/sample_mapdl_job1.sh ansys_job1.sh you can also edit the number of processors, nodes, and run time requested with this script. in general in this sample script the flags indicate some sort of file name or text you have to input.
Then you will need to edit the file to suit your needs. Below is a basic job script that can run textfiles of Ansys Mechanical APDL commands.Ĭopy this script to to your work directory and rename it, in this example I have named the script ansys_job1.sh.