Skip to content
Snippets Groups Projects
Commit ff4677dd authored by Jan Siwiec's avatar Jan Siwiec
Browse files

OJ proofread

parent 5b4a990a
No related branches found
No related tags found
No related merge requests found
Pipeline #30474 passed with warnings
......@@ -2,7 +2,7 @@
## Introduction
[COMSOL][a] is a powerful environment for modelling and solving various engineering and scientific problems based on partial differential equations. COMSOL is designed to solve coupled or multiphysics phenomena. For many standard engineering problems, COMSOL provides add-on products such as electrical, mechanical, fluid flow, and chemical applications.
[COMSOL][a] is a powerful environment for modelling and solving various engineering and scientific problems based on partial differential equations. COMSOL is designed to solve coupled or multiphysics phenomena. For many standard engineering problems, COMSOL provides add-on products (modules) such as electrical, mechanical, fluid flow, and chemical applications.
* [Structural Mechanics Module][b],
* [Heat Transfer Module][c],
......@@ -14,28 +14,22 @@ COMSOL also allows an interface support for equation-based modelling of partial
## Execution
The latest available COMSOL version on the clusters is 5.2. There are two variants of the release:
There are two types of license:
* **Non commercial** or so called **EDU variant**, which can be used for research and educational purposes.
* **Commercial** or so called **COM variant**, which can used also for commercial activities. **COM variant** has only subset of features compared to the **EDU variant** available. More about licensing [here][1].
To load the default `COMSOL` module ([**not** recommended][4]), use:
```console
$ ml COMSOL
```
By default, the **EDU variant** will be loaded. If you needs other version or variant, load the particular version. To obtain the list of available versions, use:
By default, the **EDU variant** is loaded. If you needs other version or variant, load the particular version. To obtain the list of available versions, use:
```console
$ ml av COMSOL
```
To prepare COMSOL jobs in the interactive mode, we recommend using COMSOL on the compute nodes via the PBS Pro scheduler. To run the COMSOL Desktop GUI on Windows.
To prepare COMSOL jobs in the interactive mode, we recommend using COMSOL on the compute nodes via the PBS Pro scheduler.
!!! Note
We recommend using the [Virtual Network Computing (VNC)][2].
To run the COMSOL Desktop GUI on Windows, we recommend using the [Virtual Network Computing (VNC)][2].
Example for Karolina:
......@@ -65,7 +59,7 @@ you need to run COMSOL with additional parameters:
$ comsol -3drend sw
```
To run COMSOL in batch mode without the COMSOL Desktop GUI environment, utilize the default (comsol.pbs) job script and execute it via the `qsub` command:
To run COMSOL in batch mode without the COMSOL Desktop GUI environment, utilize the following (`comsol.pbs`) job script and execute it via the `qsub` command:
```bash
#!/bin/bash
......@@ -116,13 +110,13 @@ After that, start your COMSOL Desktop GUI session and fill required information
## LiveLink for MATLAB
COMSOL is a software package for the numerical solution of partial differential equations. LiveLink for MATLAB allows connection to the COMSOL API (Application Programming Interface) with the benefits of the programming language and computing environment of the MATLAB.
COMSOL is a software package for the numerical solution of partial differential equations. LiveLink for MATLAB allows connection to the COMSOL API (Application Programming Interface) with the benefits of the programming language and computing environment of MATLAB.
LiveLink for MATLAB is available in both **EDU** and **COM** **variant** of the COMSOL release. On the clusters there is 1 commercial (**COM**) and 5 educational (**EDU**) licenses of LiveLink for MATLAB (see the [ISV Licenses][3]). The following example shows how to start COMSOL model from MATLAB via LiveLink in the interactive mode.
```console
$ qsub -I -X -A PROJECT_ID -q qexp -l select=1:ncpus=128:mpiprocs=128
$ ml MATLAB/R2015b COMSOL/5.2.0-EDU
$ ml <matlab_module> and <comsol_module>
$ comsol -3drend sw server MATLAB
```
......@@ -147,7 +141,7 @@ echo '**PBS_NODEFILE***END*********'
text_nodes < cat $PBS_NODEFILE
ml MATLAB/R2015b COMSOL/5.2.0-EDU
ml <matlab_module> and <comsol_module>
ntask=$(wc -l $PBS_NODEFILE)
......@@ -156,10 +150,10 @@ cd $EBROOTCOMSOL/mli
matlab -nodesktop -nosplash -r "mphstart; addpath /scratch/project/PROJECT_ID; test_job"
```
This example shows how to run LiveLink for MATLAB with the following configuration: 3 nodes and 128 cores per node. A working directory has to be created before submitting (comsol_matlab.pbs) job script into the queue. The input file (test_job.m) has to be in the working directory or a full path to the input file has to be specified. The Matlab command option (`-r ”mphstart”`) created a connection with a COMSOL server using the default port number.
This example shows how to run LiveLink for MATLAB with the following configuration: 3 nodes and 128 cores per node. A working directory has to be created before submitting (comsol_matlab.pbs) job script into the queue. The input file (test_job.m) has to be in the working directory or a full path to the input file has to be specified. The MATLAB command option (`-r ”mphstart”`) created a connection with a COMSOL server using the default port number.
[1]: licensing-and-available-versions.md
[2]: ../../../general/accessing-the-clusters/graphical-user-interface/x-window-system.md
[2]: ../../../general/accessing-the-clusters/graphical-user-interface/vnc.md
[3]: ../../isv_licenses.md
[4]: ../../../modules/lmod/#loading-modules
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment