Harvard Wikis will be unavailable from 8am-noon on June 1st as we upgrade to Confluence version 6.6.13. Visit the IT Help Portal to learn about the new features coming your way!

Versions Compared

Key

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

...

Comsol versions available via the new module system:

module-query comsol

Older COMSOL versions available under the old module system:

module load centos6
source new-modules.sh
module load legacy

module av 2>&1 | grep -i comsol | grep -i seas

Newer versions: comsol 5.3a

These are under the new module system. Once you determine a version to use, run it interactively as follows:

Code Block
languagebash
module load comsol/5.3a4-fasrc01
comsol

Note that the SLURM command 'srun' requires memory to be specified. The options '–mem 4000' requests 4 Gigs of memory, which is a reasonable amount to start with; '-t 0-2:00' specifies a 2 hour session; and '-n 1 -N 1' requests 1 core on 1 node.

Older modules: comsol 5.1,5.0,4.4,4.3a

(Note that you need to load the legacy module)

Code Block
languagebash
module load centos6
source new-modules.sh
module load legacy
module load seas/comsol5.1
srun -p test --mem 4000 --pty --x11=first -t 0-2:00 -n 1 -N 1 /bin/bash
comsol


Running comsol in batch via slurm

In order to run Comsol mph files in the batch mode (i.e. solving the model without using the GUI interface) you need an input file (usually with extension .mph) created with COMSOL GUI. Once you have an input file (we use, for eg. busbar.mph in the following example), prepare a batch submission script for COMSOL using the following template (called "runscript_comsol.sh"):

...