COMSOL Multiphysics provides a range of simulation, finite element analysis and solver functionality. More information on the package is available here:

The latest version installed on the HPC clusters at Leeds is version 5.1.

Accessing the software

To make COMSOL available in your environment, enter the command:

module load comsol

Example script

This script will allocate 8 cores ( np=8 ) with 4 cores per node ( ppn=4 ) and thus 8GB per process (64GB in total and 2 full nodes).

# Run in current working directory with current environment
#$ -cwd -V

#change this line for time
#$ -l h_rt=01:00:00

#Email on start and end of job
#$ -m be
#$ -M

#the line below sets the number of cores and nodes
#$ -l np=8,ppn=4

module load comsol/5.1
comsol batch -np $NSLOTS -tmpdir $TMPDIR -inputfile input.mph -outputfile outphysics.mph

In the script above:

Change <email> to your username. For example, if your username is matzz :

#$ -M

Change <port@server> to the license server details obtained from your Faculty IT support. For example is you are given 1322@server :