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

Update comsol-multiphysics.md

parent b2f24744
No related branches found
No related tags found
4 merge requests!368Update prace.md to document the change from qprace to qprod as the default...,!367Update prace.md to document the change from qprace to qprod as the default...,!366Update prace.md to document the change from qprace to qprod as the default...,!323extended-acls-storage-section
...@@ -20,7 +20,7 @@ On the clusters, COMSOL is available in the latest stable version. There are two ...@@ -20,7 +20,7 @@ On the clusters, COMSOL is available in the latest stable version. There are two
* **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]. * **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 COMSOL module, use: To load the `COMSOL` module, use:
```console ```console
$ ml COMSOL $ ml COMSOL
...@@ -43,7 +43,7 @@ $ ml COMSOL ...@@ -43,7 +43,7 @@ $ ml COMSOL
$ comsol $ comsol
``` ```
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 default (comsol.pbs) job script and execute it via the `qsub` command:
```bash ```bash
#!/bin/bash #!/bin/bash
...@@ -70,7 +70,7 @@ ntask=$(wc -l $PBS_NODEFILE) ...@@ -70,7 +70,7 @@ ntask=$(wc -l $PBS_NODEFILE)
comsol -nn ${ntask} batch -configuration /tmp –mpiarg –rmk –mpiarg pbs -tmpdir /scratch/.../$USER/ -inputfile name_input_f.mph -outputfile name_output_f.mph -batchlog name_log_f.log comsol -nn ${ntask} batch -configuration /tmp –mpiarg –rmk –mpiarg pbs -tmpdir /scratch/.../$USER/ -inputfile name_input_f.mph -outputfile name_output_f.mph -batchlog name_log_f.log
``` ```
A working directory has to be created before sending the (comsol.pbs) job script into the queue. The input file (name_input_f.mph) has to be in the working directory or a full path to the input file has to be specified. The appropriate path to the temp directory of the job has to be set by the -tmpdir command option. A working directory has to be created before sending the (comsol.pbs) job script into the queue. The input file (name_input_f.mph) has to be in the working directory or a full path to the input file has to be specified. The appropriate path to the temp directory of the job has to be set by the `-tmpdir` command option.
## LiveLink for MATLAB ## LiveLink for MATLAB
...@@ -88,7 +88,7 @@ $ comsol server MATLAB ...@@ -88,7 +88,7 @@ $ comsol server MATLAB
On the first start of the LiveLink for MATLAB (client-MATLAB/server-COMSOL connection), the login and password is requested; this information is not requested again. On the first start of the LiveLink for MATLAB (client-MATLAB/server-COMSOL connection), the login and password is requested; this information is not requested again.
To run LiveLink for MATLAB in batch mode with (comsol_matlab.pbs) job script, you can utilize/modify the following script and execute it via the qsub command. To run LiveLink for MATLAB in batch mode with (comsol_matlab.pbs) job script, you can utilize/modify the following script and execute it via the `qsub` command.
```bash ```bash
#!/bin/bash #!/bin/bash
...@@ -117,7 +117,7 @@ cd /apps/cae/COMSOL/51/mli ...@@ -117,7 +117,7 @@ cd /apps/cae/COMSOL/51/mli
matlab -nodesktop -nosplash -r "mphstart; addpath /scratch/work/user/$USER/work; test_job" matlab -nodesktop -nosplash -r "mphstart; addpath /scratch/work/user/$USER/work; test_job"
``` ```
This example shows how to run LiveLink for MATLAB with the following configuration: 3 nodes and 16 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 16 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 [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/x-window-system.md
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment