Child pages
  • How to run Comsol on FAS Odyssey (SEAS users only)

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


  1. Due to the limited number of COMSOL licenses, we sometimes run out of licenses. If you get a message to that effect, wait for some time before trying again.  Also, please log out of any sessions when not in use. If your work requires regular use of COMSOL, please consider purchasing a copy from COMSOL.
  2. With the introduction of OnDemand VDI (see below), the only supported use of comsol will be on Odyssey.
  3. SEAS Comsol licenses are to be used for only academic non-profit work.

OnDemand Virtual Desktop (VDI)


Code Block
#SBATCH -n 8        # Number of cores 
#SBATCH -N 1        # Number of nodes (all cores will be on this node)
#SBATCH -t 0-1:00   # Runtime in D-HH:MM format 
#SBATCH -p general  # Partition to submit to 
# Memory per CPU for multinode/MPI work
# use --mem= for single node work, and specify -N 1
#SBATCH --mem-per-cpu=500 #Memory per cpu in MB (see also --mem) 

module load comsol/5.3a4-fasrc01
# To run with an older module (example):
# source
# module load legacy

#For an earlier version:
#module load centos6
#module load legacy
# module load seas/comsol5.1
# The input file, for example, is assumed to be a COMSOL generated
# file called 'busbar.mph'.


# use $SLURM_NTASKS env set by #SBATCH -n value
comsol batch -np $COMSOL_NUM_THREADS -inputfile $INPUT_FILENAME -outputfile $OUTPUT_FILENAME -batchlog $OUTLOG

# Report some useful info
/bin/uname -a




Comsol documentation is usually found under html and pdf directories. You can open the pdf documentation with the following SLURM command:(Please do not use evince directly on the login node.) (from an OnDemand remote desktop terminal):

Alternatively, you can copy the pdf files to your local desktop/laptop.

Code Block
srun -p interact --mem 4000 --pty --x11=first -t 0-2:00 /bin/bash
evince /n/sw/comsol53a/doc/pdf/COMSOL_Multiphysics/IntroductionToCOMSOLMultiphysics.pdf