Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
comsol:5.4 [2020/09/09 07:30] – [How to use Comsol] admincomsol:5.4 [2020/11/17 15:15] (Version actuelle) – admin
Ligne 1: Ligne 1:
 ====== Comsol 5.4 ====== ====== Comsol 5.4 ======
  
-<note important>Only Femto-ST researchers are allowed to use this version.</note>+<note important> 
 +  * Only Femto-ST researchers are allowed to use this version. 
 +  * The license server is hosted at Femto-ST. Make sure you have access to it. 
 +</note>
  
-<note important>License server is hosted on Femto-ST server. Make sure that you have access.</note>+**Available Modules**
  
-====== How to use Comsol======+  * AC/DC 
 +  * Acoustics  
 +  * CFD  
 +  * Heat Transfer 
 +  * MEMS 
 +  * Microfluidics 
 +  * Nonlinear Structural Materials 
 +  * RF 
 +  * Structural Mechanics 
 +  * CAD Import 
 +  * LiveLink for Matlab 
 +====== How to use Comsol?======
 Since ''HOME'' directory is read only on the computing node. We need to setup the ''.comsol'' Since ''HOME'' directory is read only on the computing node. We need to setup the ''.comsol''
 folder to be located on the ''WORK'' folder. folder to be located on the ''WORK'' folder.
Ligne 22: Ligne 36:
 $ module load comsol/5.4 $ module load comsol/5.4
 </code> </code>
-and then run comsol+<note warning>By default comsol will use all available cores on the node. 
 +We need to provide the number of cores to use with ''-np'' option 
 +</note> 
 + 
 +For example run comsol using 16 cores.
 <code bash> <code bash>
-$ comsol+$ comsol -np 16 
 </code> </code>
-An error my occurs, we need then to use the disable 3D rendering.+ 
 +If an error my occurs, we need then to use the disable 3D rendering:
  
 <code bash> <code bash>
-$ comsol -3drend sw+$ comsol -np 16 -3drend sw
 </code>  </code> 
  
 This will open main comsol graphical interface. This will open main comsol graphical interface.
 +{{ :comsol:comsol54.png?800 |}}
 ===== Batch mode ===== ===== Batch mode =====
 <note> <note>
Ligne 42: Ligne 61:
 ===== SGE script ===== ===== SGE script =====
  
-==== Sequential version (1 core) ==== 
-here is a example of SGE script to use  
-<code bash> 
  
-#!/bin/bash 
-  
-#$ -o $JOB_NAME.o$JOB_ID 
  
-#$ -N job_comsol_batch 
-  
-#$ -q all.q 
- 
-#$ -l h_vmem=10G  # modify here 
- 
-module load comsol/5.4 
-  
-comsol batch -inputfile shallow_water.mph -outputfile result.mph 
- 
-</code> 
  
  
 ==== Parallel multi-core version ==== ==== Parallel multi-core version ====
 +This script will use the entire node i.e 16 cores and 64G of memory.
  
 <code bash> <code bash>
Ligne 83: Ligne 86:
 comsol batch -np $NSLOTS -inputfile shallow_water.mph -outputfile result.mph comsol batch -np $NSLOTS -inputfile shallow_water.mph -outputfile result.mph
  
 +</code>
 +
 +submit script by:
 +<code bash>
 +$ qsub script.sge
 </code> </code>
  • comsol/5.4.1599636632.txt.gz
  • Dernière modification : 2020/09/09 07:30
  • de admin