Submitting Ansys EM PBS Batch Jobs

The PBS qsub command may be used to submit Ansys EM batch jobs. The typical command format is:

qsub qsub_args script

where:

The job script is a shell script containing the Ansys batch command or commands to be run. If a batch command line contains any characters that are special to the shell running the script, then these special characters should be quoted, as needed. The job script may also contain PBS directives on lines before the first executable line of the script. Any qsub options on the command line will take precedence over the PBS directives in the job script.

When a PBS batch job is started, the job script runs as the job user in a new shell. In this shell environment, the path must include the directory containing the PBS commands.

Note:

You should ensure that the PATH variable set in the shell startup script (e.g., .cshrc, .profile, .bashrc) includes the directory containing the PBS commands. For example:

export PATH=/opt/pbs/default/bin:$PATH

If the PATH variable is not set correctly, the job runs only locally, the batch log file shows the list of allocated hosts as empty, and the error file shows an error (sh: qstat: command not found.)

Further PBS directives need to be on top of the job script file. This is discussed in the PBS documentation.

Serial PBS Batch Jobs

In the PBS documentation, serial batch jobs are also called single-node jobs. In general, any job submitted without specifying the -l nodes=value command line argument, will run as a serial or single-node job.

See Monitoring PBS Batch Jobs for options that can facilitate monitoring of Ansys Electromagnetics batch jobs.

Parallel PBS Batch Jobs

In the PBS documentation, parallel batch jobs are also called multi-node jobs. When an Ansys Electromagnetics batch job is run as an PBS parallel job, the PBS scheduler will select the hosts for the distributed analysis job based on the qsub command line arguments, the PBS resource directives from the job script, and the status of the hosts when the job is run. The desktop process will be started on one of these hosts. The desktop process will obtain the list of hosts allocated to the job from the PBS scheduler, and start analysis processes on these hosts, as needed, using the PBS scheduler facilities. To run a PBS parallel job, the job must be submitted with a -l nodes=value qsub command line argument or with a -l nodes=value PBS directive in the job script.