Comsol is available to users with their own license server.
COMSOL Multiphysics is a general-purpose software platform, based on advanced numerical methods, for modeling and simulating physics-based problems.
COMSOL Multiphysics is a general-purpose software platform, based on advanced numerical methods, for modeling and simulating physics-based problems. With COMSOL Multiphysics, you will be able to account for coupled or multiphysics phenomena. With more than 30 add-on products to choose from, you can further expand the simulation platform with dedicated physics interfaces and tools for electrical, mechanical, fluid flow, and chemical applications.
Comsol is available on Kebnekaise
To use Comsol you need to have a license server running at your home institute. The license server must be reachable from HPC2N, i.e., any firewalls must be opened for access from HPC2N networks.
Comsol is available as a module. To see which versions are available use:
module spider comsol
Read the page about modules for the system to see how to load the required module.
Before starting Comsol the first time
Comsol uses a hidden directory named .comsol in your home directory to store application state and settings. The first time you start Comsol, it will create this hidden directory in your home directory ($HOME/.comsol). Since your home directory resides on the AFS namespace, your running jobs and consequently Comsol will have limited permissions, causing your job to fail. To resolve this, you need to move the directory to the parallel file system 'pfs' where Comsol has full permissions, and then provide a link to the directory so Comsol can find it. Log in to one of the HPC2N resources and run the following commands, before starting Comsol for the first time:
rm -rf $HOME/.comsol mkdir /pfs/nobackup$HOME/.comsol ln -s /pfs/nobackup$HOME/.comsol $HOME
Note: If you have run Comsol previously at HPC2N, without moving your .comsol directory, the commands above will remove your current settings.
To run Comsol in the batch system your submit file must first load the correct module and the a line that points it to your license server.
For information on the correct port and hostname, consult you local Comsol license administrator.
You should then run comsol with the "batch" argument. See Comsols documentation for details.
A small example is:
#!/bin/bash #SBATCH -A <your-project> #SBATCH -n 4 #SBATCH -t 00:10:00 module add Comsol/5.2a export LM_LICENSE_FILEfirstname.lastname@example.org comsol batch -inputfile journalbearingDemo.mph -outputfile output.mph -batchlog batchlog.txt