Example PBS qsub Command Lines

All of the following examples show how to submit Linux maxwell jobs on PBS, but similar command lines and job scripts will work for all Ansys Electromagnetics products. Most of the following examples are PBS "Single-node jobs." The last example is a PBS "multi-node jobs"; this examples demonstrate 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/AnsysEM/v242/ansysedt -ng -BatchSolve

~/projects/OptimTee.aedt

Serial job that needs a minimum of four GB 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/AnsysEM/v242/ansysedt -ng -BatchSolve

~/projects/OptimTee.aedt

Multi-processing job using four cores:

qsub ~/pbs_scripts/OptimTee.sh

Job Script File:

#!/bin/sh

#PBS -l ncpus=4

/opt/AnsysEM/v242/ansysedt -ng -BatchSolve -batchoptions "'Maxwell3D/Preferences/NumberOfProcessors'=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/AnsysEM/v242/ansysedt -ng -BatchSolve -Distributed
-machinelist num=4

~/projects/OptimTee.aedt

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

qsub ~/pbs_scripts/OptimTee.sh

Job Script File:

#!/bin/sh

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

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

Related Topics 

Integration with PBS (Portable Batch System) Professional from Altair Engineering

qsub Arguments

Monitoring Ansys Electromagnetics PBS Batch Jobs

Example PBS qsub Command Lines