COMSOL Multiphysics

Comsol in Triton is best run in Batch-mode. To check which versions of Comsol are available, run:

module spider comsol
  • To run Comsol in a single node use the “-np” instead of “-clustersimple”:

    # Ask for e.g. 20 compute cores
    #SBATCH -N 1
    #SBATCH -n 20
    cd $WRKDIR/my_comsol_directory
    module load comsol
    # Details of your input and output files
    comsol batch -np $SLURM_NTASKS -inputfile $INPUTFILE -outputfile $OUTPUTFILE -tmpdir $TMPDIR
  • Comsol can run even bigger jobs over multiple computing nodes with “-clustersimple”. For this, please refer to Comsol online manual or ask for further help.

  • Comsol uses a lot of temp file storage, which by default goes to $HOME. Fix a bit like the following:

    $ rm -rf ~/.comsol/v43a/recoveries
    $ mkdir /scratch/work/$USER/comsol_revoveries/
    $ ln -s /scratch/work/$USER/comsol_revoveries/ ~/.comsol/