Difference between revisions of "Applications/COMSOL"

From HPC
Jump to: navigation , search
(Created page with "__TOC__ === Application Details === * Description: COMSOL Multiphysics® is a general-purpose software platform, based on advanced numerical methods, for modeling and simulati...")
 
m (Further Information)
 
(10 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
=== Application Details ===
 
=== Application Details ===
 
* Description: 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.
* Versions: 5.2a
+
* Versions: 5.2, 5.3, 5.3a, 5.4
* Module names: comsol/52a
+
* Module names: comsol/52a comsol/53 comsol/53a comsol/54
* License: Restricted commercial license, limited to Materials Engineering group. Please email [mailto:viper@hull.ac.uk viper@hull.ac.uk] for information.
+
* License: Restricted commercial license, limited to Materials Engineering group. Please raise a support ticket on https://support.hull.ac.uk/ for information.
  
 
== Usage Examples ==
 
== Usage Examples ==
Line 28: Line 28:
 
#SBATCH -J ComsolTest # Job name, you can change it to whatever you want
 
#SBATCH -J ComsolTest # Job name, you can change it to whatever you want
 
#SBATCH -N 1                # Number of nodes to run across
 
#SBATCH -N 1                # Number of nodes to run across
#SBATCH -n 28             # Number of cores to run across
+
#SBATCH -n 28               # Number of cores to run across
 
#SBATCH -o %N-%j.log        # Standard output will be written here
 
#SBATCH -o %N-%j.log        # Standard output will be written here
 
#SBATCH -e %N-%j.err        # Standard error will be written here
 
#SBATCH -e %N-%j.err        # Standard error will be written here
Line 38: Line 38:
 
comsol batch -np 28 -inputfile "Input file.mph" -tmpdir /local/username/comsol -outputfile output-file.mph -batchlog comsolout.log
 
comsol batch -np 28 -inputfile "Input file.mph" -tmpdir /local/username/comsol -outputfile output-file.mph -batchlog comsolout.log
 
</pre>  
 
</pre>  
 
The options for mpirun are required to make use of the Omni-Path interconnect.
 
  
This submission script can be found at /path/to/sample/script
+
Because COMSOL creates large temporary files, performance can be improved by using the -tmpdir setting and using local storage by specifying a directory /local/username/comsol.
  
 
<pre style="background-color:#000000; color: white; font-family: monospace, sans-serif;">
 
<pre style="background-color:#000000; color: white; font-family: monospace, sans-serif;">
[username@login01 ~]$ sbatch MRBayes.job
+
[username@login01 ~]$ sbatch COMSOL.job
 
Submitted batch job 289555
 
Submitted batch job 289555
 
</pre>
 
</pre>
  
 
== Further Information ==
 
== Further Information ==
* [http://mrbayes.sourceforge.net/ MrBayes website]
+
* [https://uk.comsol.com/comsol-multiphysics COMSOL Multiphysics website]
* [[Main Page#General_Support|Wiki: General Support]]
+
 
* [[Programming/OpenMPI|Wiki: OpenMPI]]
+
{{Licensepagenav}}
* [[Main Page|Wiki: Home]]
 

Latest revision as of 11:20, 16 November 2022

Application Details

  • Description: COMSOL Multiphysics® is a general-purpose software platform, based on advanced numerical methods, for modeling and simulating physics-based problems.
  • Versions: 5.2, 5.3, 5.3a, 5.4
  • Module names: comsol/52a comsol/53 comsol/53a comsol/54
  • License: Restricted commercial license, limited to Materials Engineering group. Please raise a support ticket on https://support.hull.ac.uk/ for information.

Usage Examples

Executables

Executable Description
comsol The comsol executable is used to start both the graphical version of COMSOL or, with the batch flag, the batch version.

Interactive

The GUI version of COMSOL can be started in an interactive session by running comsol:

[username@c100 ~]$ module add test-modules comsol/52a
[username@c100 ~]$ comsol

Batch Submission

#!/bin/bash
#SBATCH -J ComsolTest # Job name, you can change it to whatever you want
#SBATCH -N 1                # Number of nodes to run across
#SBATCH -n 28               # Number of cores to run across
#SBATCH -o %N-%j.log        # Standard output will be written here
#SBATCH -e %N-%j.err        # Standard error will be written here
#SBATCH -p compute          # Slurm partition, where you want the job to be queued
#SBATCH --exclusive

module add test-modules comsol/52a

comsol batch -np 28 -inputfile "Input file.mph" -tmpdir /local/username/comsol -outputfile output-file.mph -batchlog comsolout.log

Because COMSOL creates large temporary files, performance can be improved by using the -tmpdir setting and using local storage by specifying a directory /local/username/comsol.

[username@login01 ~]$ sbatch COMSOL.job
Submitted batch job 289555

Further Information





Special License Applications | Main Page | Further Topics