Comsol

Software name: 
Comsol
Policy 

Comsol is available to users with their own license server.

General 

COMSOL Multiphysics is a general-purpose software platform, based on advanced numerical methods, for modeling and simulating physics-based problems.

Description 

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.

Availability 

Comsol is available on Kebnekaise

Licensing

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.

Usage at HPC2N 

Comsol is available as a module. To see which versions are available use:

Kebnekaise:
module spider comsol

Read the page about modules for the system to see how to load the required module.

Running Comsol

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.

export LMCOMSOL_LICENSE_FILE=port@hostname.of.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.6.0.401
export LMCOMSOL_LICENSE_FILE=someport@some.server.se
comsol batch -inputfile  journalbearingDemo.mph -outputfile output.mph -batchlog batchlog.txt

 

Updated: 2021-09-23, 10:41