COMSOL Multiphysics is a cross-platform finite element analysis, solver and multiphysics simulation software. It allows conventional physics-based user interfaces and coupled systems of partial differential equations (PDEs). COMSOL provides an IDE and unified workflow for electrical, mechanical, fluid, acoustics, and chemical applications.
Usage
Version | module |
---|
5.4 | comsol/5.4 |
CAUTION: There are only 3 COMSOL licenses available for all of Lehigh. Considering that COMSOL is used outside of Research Computing resources that do not have a wall time limit, there may not be a license available when your job is scheduled to start.Â
Example Submit Scripts
#!/bin/bash
#SBATCH -p lts
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=10
#SBATCH --time=60
#SBATCH -J comsol
cd ${SLURM_SUBMIT_DIR}
module load comsol
cp /share/Apps/comsol/comsol54/multiphysics/applications/COMSOL_Multiphysics/Fluid_Dynamics/cylinder_flow.mph .
comsol batch -np ${SLURM_NTASKS} -inputfile cylinder_flow.mph -outputfile cylinder_flow_output.mph -batchlog comsollog.txt
#!/bin/bash
#SBATCH -p infolab
#SBATCH --nodes=2
#SBATCH --ntasks-per-node=2
#SBATCH --time=60
cd ${SLURM_SUBMIT_DIR}
module purge
module load comsol
module load mpich
cp /share/Apps/comsol/comsol54/multiphysics/applications/COMSOL_Multiphysics/Fluid_Dynamics/cylinder_flow.mph .
# single node runs
#comsol batch -np ${SLURM_NTASKS} -inputfile cylinder_flow.mph -outputfile cylinder_flow_output.mph -batchlog comsollog.txt
# multi node runs
comsol -nn ${SLURM_NTASKS} --nnhost ${SLURM_NNODES} -mpi mpich2 -mpifabrics shm:ofa batch -inputfile cylinder_flow.mph -outputfile cylinder_flow_output.mph -batchlog comsollog.txt
Â