COMSOL¶
COMSOL Multiphysics is a finite element simulation platform for coupled physics problems across electrical, mechanical, fluid, acoustics, and chemical domains.
Licensing¶
COMSOL requires a valid license. Send your license details to support-hpc@dipc.org so we can verify it and grant you access to the binaries.
Loading the module¶
module load COMSOL/6.2
To see all installed versions across clusters, check the software catalog or run module spider COMSOL.
Expand to see all available modules on each cluster
COMSOL/6.1 |
COMSOL/6.2 |
COMSOL/5.5 |
COMSOL/5.6 |
COMSOL/6.0 |
COMSOL/6.1-IKUR |
COMSOL/6.1-NANOPHOTONICS |
COMSOL/6.2.0.415-IKUR |
COMSOL/5.5 |
COMSOL/6.0 |
COMSOL/6.1-IKUR |
COMSOL/6.1-NANOPHOTONICS |
COMSOL/6.2.0.415-IKUR |
Batch job example¶
#!/bin/bash
#SBATCH --qos=regular
#SBATCH --job-name=comsol
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=48
#SBATCH --cpus-per-task=1
#SBATCH --mem=200G
#SBATCH --time=24:00:00
#SBATCH --output=%x.%j.out
#SBATCH --error=%x.%j.err
module load COMSOL/6.2
TMPDIR=/scratch/$USER/comsol_tmp/$SLURM_JOB_ID
mkdir -p $TMPDIR
comsol batch -nn ${SLURM_NTASKS} \
-nnhost ${SLURM_JOB_NUM_NODES} \
-np ${SLURM_CPUS_PER_TASK} \
-tmpdir $TMPDIR \
-mpibootstrap slurm -alivetime 15 -recover \
-inputfile mymodel.mph \
-outputfile mymodel_out.mph \
-batchlog mymodel.log
rm -rf $TMPDIR
Temporary directory
COMSOL uses /tmp by default for scratch files. On compute nodes /tmp is small and fills up quickly, causing No space left on device errors. Always redirect with -tmpdir to a directory under /scratch as shown above.
See also¶
-
Software catalog
Versions available on each cluster.
-
COMSOL documentation
Official COMSOL Multiphysics documentation.