COMSOL Multiphysics installations at NSC

Directory list:

4.3 COMSOL Multiphysics version
4.3b COMSOL Multiphysics version 4.3b
5.1 COMSOL Multiphysics version COMSOL Multiphysics version COMSOL Multiphysics version COMSOL Multiphysics version COMSOL Multiphysics version also known as 5.2a COMSOL Multiphysics version also known as 5.2a update 2

Level of support

Tier 3 NSC will not be able to help you much with this program, either because we lack the in-house experience, or because it is a test installation. In general, these types of installations are untested, and will not be updated unless you send a request to NSC.

Please see the page describing our software support categories for more information.
You can also contact for further information.


Due to the terms of the COMSOL Multiphysics license, NSC is not allowed to make COMSOL Multiphysics available to anyone not affiliated (student, researcher etc) with Linköping University.

If you are a LiU user and cannot access COMSOL Multiphysics, please contact and we will add you to the license group (“liu”), which will give you access.

How to run

Load the module corresponding to the version you want to use.

module load comsol/5.1

To run COMSOL Multiphysics interactively, allocate a compute node for interactive use and then run “comsol”. E.g

interactive -N1 --exclusive -t 00:30:00
comsol &

When running the COMSOL GUI, NSC recommends using ThinLinc to access Triolith. For more information on how to use ThinLinc, please see:

Example batch script

An example batch script for running COMSOL looks like this:

#SBATCH --time=00:30:00                # Requested walltime 
#SBATCH --nodes=2                      # Number of compute nodes to allocate
#SBATCH --exclusive                    # Don't share compute nodes
#SBATCH --account=snicYYYY-XX-ZZ       # Account string for the project

module add comsol/5.1

INFILE=infile.mph                      # The name of your COMSOL input file

F=$(echo ${INFILE}|sed 's/.mph$//')

if ! [ -f ${F}.mph ];then
  echo "${F} not found, exiting"
  exit 1

echo "Running COMSOL. Output file is ${F}-out.mph, Logfile is ${F}.log"

time comsol -clustersimple batch -mpibootstrap slurm -inputfile ${F}.mph \
            -outputfile ${F}-out.mph -batchlog ${F}.log

exit 0