OPENFOAM

OPENFOAM

openfoam
Version: 2.0

Contents

            1. Description

            2. Requirement

            3. How to run job OpenFoam using HPC

            4. Contact Us

Description:

Computational fluid dynamics toolbox.
Webpage:
http://www.openfoam.org/version2.0.0/
We have 4 Versions of OpenFOAM 3.0.1, 2.3.x, 2.2.1 and 2.1.1

Requirement

Step 1: Please register to UTM HPC Account
Step 2: HPC admin (hpc@utm.my) will sent HPC account to your email.

How to run job OpenFoam using HPC

Submit a OpenFoam job

In the example below the input folder, cylinder will be run after submit a job using PBS script, pbs-script. For example, create a submission script file called pbs-script that contains the lines below. This example requests one node and four processor cores.

#!/bin/sh

# set the queue

## Specify the number of nodes and the number of processors
## per node to allocate for this job.

#PBS -N openfoam

#PBS -l nodes=1:ppn=4
EXEC=bashrc

export PATH=$MPI_OPENMPI_PATH/bin:$PATH
export LD_LIBRARY_PATH=$MPI_OPENMPI_PATH/lib:$LD_LIBRARY_PATH
source $VO_ACADEMICGRID_SW_DIR/OpenFOAM/OpenFOAM-2.1.1/etc/$EXEC

cd $HOME/OpenFoam/basic/potentialFoam/cylinder
decomposePar
mpirun -np 4 pimpleDyMFoam -parallel
reconstructPar

Transfering Files & Submitting Job

Then, upload the submission script above and your input file to the HPC using WinSCP tool. To submit a job, please using a Putty tool and run the command below. How to access the HPC server, please go to our New User Guide page.
 
Submit the OpenFoam submission job to the queue:

Users can submit the job using two options as below. The pbs-script name below is the name of your submission script.

qsub -q bigmem pbs-script
OR
qsub -q hpc pbs-script
Please note that queue for hpc above have 8 core’s for each cluster/node so if you are using this cluster please make sure in the script, you state “ppn=8″ to make sure your job can run.

Contact Us

Any problem about HPC, please email to hpc@utm.my or our facebook (OpenFoam)