COMSOL Multiphysics is a powerful interactive environment for modeling and solving all kinds of scientific and engineering problems based on partial differential equations (PDEs). With this product you can easily extend conventional models for one type of physics into multiphysics models that solve coupled physics phenomena and do so simultaneously. Accessing this power does not require an in-depth knowledge of mathematics or numerical analysis. Thanks to the built-in physics modes it is possible to build models by defining the relevant physical quantities such as material properties, loads, constraints, sources, and fluxes rather than by defining the underlying equations. COMSOL Multiphysics then internally compiles a set of PDEs representing the entire model. You access the power of COMSOL Multiphysics as a standalone product through a flexible graphical user interface, or by script programming in the MATLAB language.
To use COMSOL on Raijin, please send out the request to join COMSOL software group first by following this link [https://my.nci.org.au/mancini/project/comsol/join] and, if Matlab is needed, please also join corresponding Matlab software group through [my.nci.org.au] according to your institution.
Before running COMSOL version 5.1 you should do the following:
This ensures that your home quota is not exceeded by COMSOL temporary files being stored in $HOME/.comsol/v51.
To use COMSOL on raijin do
An example submission script for running a batch job within one compute node, using shared memory, is shown below.
For up to 16 processors (28 cores for jobs submitted to broadwell queues), you can use the script shown above. Please make sure to compare timings on 1, 2, 4 etc processors to see if there is a speed-up by using more processors as problem with very small size
To run cluster COMSOL on more than 16(28) cpus follow the instructions for using Intel MPI in the documentation. An example batch script follows:
Please note, pass the number of cores optimised for your sub-problem to the option
-np which determines number of processes per task and pass the number of tasks to the option
-nn. Please double check
-nn * -np = $PBS_NCPUS before submitting a modified script.
If you wish to run a matlab comsol script (and are an ANU staff or student) as a batch job you need to stop the java windows from opening, see further discussion here, and load the matlab module as well. An example batch script which runs Comsol with Matlab is shown below. Please note, each matlab worker connects to only one comsol mphserver and most institutions do not provide their matlab licenses with Matlab Distributed Computing Server, therefore, it is highly recommended to use Matlab liveLink only to generate the mph file which can be used in the batch/cluster parallel computing modes described above.
There are only 2 licenses for COMSOL so only 2 jobs can be run concurrently.