Example LSF bsub Command Lines (Linux Only)

Note: The following examples use HFSS as the product, but similar command lines will work for all Ansys EM products.
Serial Job

bsub -n 1 /Program Files/AnsysEM/v242/Win64/ansysedt -ng

-BatchSolve -machinelist num=4 ~/projects/OptimTee.aedt

The -n 1 option indicates that this job runs on one core.

Serial Job Requiring a Minimum of 4 GB

bsub -n 1 -R "select[mem>4000]"

/Program Files/AnsysEM/v242/Win64/ansysedt -ng

-BatchSolve -machinelist num=4 ~/projects/OptimTee.aedt

The -R "select[mem>4000]" option indicates that this needs a minimum of 4 GB memory.

Multi-processing Job using 4 Cores

bsub -n 4 -R "span[ptile=4]"

"/Program Files/AnsysEM/v242/Win64/ansysedt -ng -BatchSolve

-batchoptions -machinelist num=4 ~/projects/OptimTee.aedt"

Distributed Processing Job using Four Engines

bsub -n 4 /Program Files/AnsysEM/v242/Win64/ansysedt -ng -BatchSolve -Distributed ~/projects/OptimTee.aedt

Distributed Processing and Multi-processing Job using Four Cores, with Two Cores for Multiprocessing

bsub -n 4 -R "span[ptile=2]" ~/projects/OptimTee.csh

Shell Script (~/projects/OptimTee.csh):

If a command is included in the bsub command line, the entire command will be processed by the command shell two times. The command is processed when the bsub command is processed by the shell and is processed again when the command is started by the scheduler. This example shows how to use a shell script so that the command line will be processed only once. The command is placed in the shell script, and then the shell script pathname is placed in the bsub command line. Then, the command is only processed by the command processor when the job is started. When using this approach, the shell script should be accessible from all of the cluster hosts.

#!/bin/csh

/Program Files/AnsysEM/v242/Win64/ansysedt -ng -BatchSolve

-Distributed -machinelist num=2 -batchoptions

~/projects/OptimTee.aedt