Example PBS qsub Command Lines

All of the following examples show how to submit Linux hfss jobs on PBS, but similar command lines and job scripts will work for all Ansys EM products. Most of the following examples are PBS "Single-node jobs." The last example is a PBS "multi-node jobs"; this example demonstrates how to specify the allocation of threads, tasks and nodes to a job.

Serial job:

qsub ~/pbs_scripts/OptimTee.sh

Job Script File:

#!/bin/sh

/opt/ansys_inc/v252/AnsysEM/ansysedt -ng -BatchSolve

~/projects/OptimTee.aedt

Serial job that needs a minimum of 4GB memory and two hours of real (wallclock) time:

qsub ~/pbs_scripts/OptimTee.sh

Job Script File:

#!/bin/sh

#PBS -l walltime=2:00:00

#PBS -l mem=4gb

/opt/ansys_inc/v252/AnsysEM/ansysedt -ng -BatchSolve

~/projects/OptimTee.aedt

Multi-processing job using 4 cores:

qsub ~/pbs_scripts/OptimTee.sh

Job Script File:

#!/bin/sh

#PBS -l ncpus=4

/opt/ansys_inc/v252/AnsysEM/ansysedt -ng -BatchSolve -batchoptions
-machinelist num=4

~/projects/OptimTee.aedt

Distributed processing job using 4 engines on a single host:

qsub ~/pbs_scripts/OptimTee.sh

Job Script File:

#!/bin/sh

#PBS -l ncpus=4

/opt/ansys_inc/v252/AnsysEM/ansysedt -ng -BatchSolve -Distributed -machinelist num=4

~/projects/OptimTee.aedt

Distributed processing and multi-processing job using 8 cores on two nodes, running 4 engines (two per node) with 2 cores for multi-processing:

qsub ~/pbs_scripts/OptimTee.sh

Job Script File:

#!/bin/sh

#PBS -l nodes=2:ppn=2:cpp=2#excl

/opt/ansys_inc/v252/AnsysEM/ansysedt -ng -BatchSolve -Distributed
-machinelist num=4 -batchoptions ~/projects/OptimTee.aedt