You are here: Home Help/User Support Parallel Computing in the CAE Lab Cluster Job Example: Abaqus

Cluster Job Example: Abaqus

Abaqus can theoretically parallize across multiple systems, but this is not yet supported locally. Therefore, you should limit yourself to running Abaqus jobs on one system, with only one or two CPUs. Therefore, use either "#PBS -l nodes=1:ppn=1" for a single-CPU job, "#PBS -l nodes=1:ppn=2" for a dual-CPU job, or "#PBS -l nodes=1:ppn=4" for a 4-CPU job. You should also add the flag cpus=N to the abaqus command line, where N is the number of CPUs you wish to use.

Sample input file (abaqus_demo.inp)

*HEADING
Two-dimensional overhead hoist frame
SI Units
1-axis horizontal, 2-axis vertical
*PREPRINT, ECHO=YES, MODEL=YES, HISTORY=YES
**
** Model definition
**
*NODE
101, 0., 0., 0.
102, 1., 0., 0.
103, 2., 0., 0.
104, 0.5, 0.866, 0.
105, 1.5, 0.866, 0.
*ELEMENT, TYPE=T2D2, ELSET=FRAME
11, 101,102
12, 102,103
13, 101,104
14, 102,104
15, 102,105
16, 103,105
17, 104,105
*SOLID SECTION, ELSET=FRAME, MATERIAL=STEEL
1.963E-5,
*MATERIAL, NAME=STEEL
*ELASTIC
200.E9, 0.3
**
** History data
**
*STEP, PERTURBATION
10kN central load
*STATIC
*BOUNDARY
101, ENCASTRE
103, 2
*CLOAD
102, 2, -10.E3
*NODE PRINT
U,
RF,
*EL PRINT
S,
**********************************
** OUTPUT FOR ABAQUS QA PURPOSES
**********************************
*EL FILE
S,
*NODE FILE
U, RF
*END STEP

Sample qsub command file

#!/bin/bash
# Example Abaqus job

# Request 1 node with 1 free CPU core. If the job can be parallelized, you can change
# the ppn value below to something between 2 and 8.
#PBS -l nodes=1:ppn=1

# Reserve 24 hours on selected cores
#PBS -l walltime=24:00:00

# Give the job a descriptive name for emails (name must start with a letter)
#PBS -N Hoist_frame

# Send mail to address given below when the job begins, ends normally, or aborts
#PBS -m bea
#PBS -M myusername@tntech.edu

cd $PBS_O_WORKDIR
abaqus job=abaqus_demo input=abaqus_demo.inp interactive
# If the job can be parallelized, add "cpus=N" (without quotes) to the above command
# line, where N is the same number you used for the ppn setting at the start of this
# file.