OpenFOAM(v2012), a fluid/continuum simulation platform, is available at SQUID.
Basic use
OpenFOAM commands can be used by reading the environment setting file with the following command.
$ module load BaseCPU
$ module load BaseApp
$ module load OpenFOAM/v2012
Please execute it by batch job. An example job script is as follows. It is an example of executing damBreak($FOAM_TUTORIALS/multiphase/interFoam/laminar/damBreak) in tutorial. Preprocessing such as blockMesh (lattice creation) and decomposePar (region division) can be done in front-end nodes. In the following example, batch processing is used. Please submit the script from the root directory of the case.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
#!/bin/bash #PBS -q SQUID #PBS --group=[group name] #PBS -l elapstim_req=01:00:00 #PBS -b 2 #PBS -T intmpi module load BaseCPU module load BaseApp module load OpenFOAM/v2012 cd $PBS_O_WORKDIR blockMesh cp 0.orig 0 -r decomposePar mpirun ${NQSV_MPIOPTS} -np 152 interFoam -parallel |
In this job script, 152 processes are executed in parallel. Please set the numberOfSubdomains of decomposeParDict to 152 before submitting the job.
Click here to learn how to submit a batch job.
qsub Command