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/2021
$ module load BaseApp/2021
$ 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.

 

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

 

Reference

OpenFOAM Official WEB