Différences
Ci-dessous, les différences entre deux révisions de la page.
| 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/08 14:05] – [Batch mode] admin | comsol:5.4 [2020/11/17 15:15] (Version actuelle) – admin | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| ====== Comsol 5.4 ====== | ====== Comsol 5.4 ====== | ||
| - | <note important> | + | <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. | ||
| + | </ | ||
| - | License server is hosted on Femto-ST server. Make sure that you have access. | + | **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 '' | ||
| + | folder to be located on the '' | ||
| + | |||
| + | **Execute this command only once the first time you log in**: | ||
| + | <code bash> | ||
| + | $ module load comsol/ | ||
| + | $ meso-setup-comsol | ||
| + | </ | ||
| ===== Interactive mode ===== | ===== Interactive mode ===== | ||
| Ligne 14: | Ligne 36: | ||
| $ module load comsol/5.4 | $ module load comsol/5.4 | ||
| </ | </ | ||
| - | and then run comsol | + | <note warning> |
| + | We need to provide the number of cores to use with '' | ||
| + | </ | ||
| + | |||
| + | For example | ||
| <code bash> | <code bash> | ||
| - | $ comsol | + | $ comsol |
| </ | </ | ||
| - | 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 |
| </ | </ | ||
| This will open main comsol graphical interface. | This will open main comsol graphical interface. | ||
| + | {{ : | ||
| ===== Batch mode ===== | ===== Batch mode ===== | ||
| < | < | ||
| Ligne 31: | Ligne 58: | ||
| Batch mode = run comsol using command line in a computing node using SGE.</ | Batch mode = run comsol using command line in a computing node using SGE.</ | ||
| - | Since '' | ||
| - | folder to be located on the '' | ||
| - | Execute this command only once the first time you log in: | + | ===== SGE script ===== |
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | ==== Parallel multi-core version ==== | ||
| + | This script will use the entire node i.e 16 cores and 64G of memory. | ||
| <code bash> | <code bash> | ||
| - | $ module load comsol/5.4 | ||
| - | $ meso-setup-comsol | ||
| - | </ | ||
| + | #!/bin/bash | ||
| + | |||
| + | #$ -o $JOB_NAME.o$JOB_ID | ||
| + | #$ -N job_comsol_batch | ||
| + | |||
| + | #$ -q all.q | ||
| + | #$ -pe openmp 16 | ||
| + | |||
| + | #$ -l h_vmem=4G | ||
| + | |||
| + | module load comsol/5.4 | ||
| + | |||
| + | comsol batch -np $NSLOTS -inputfile shallow_water.mph -outputfile result.mph | ||
| + | |||
| + | </ | ||
| + | |||
| + | submit script by: | ||
| + | <code bash> | ||
| + | $ qsub script.sge | ||
| + | </ | ||