The free, open source CFD software "OpenFOAM"(4.1) is installed on OCTOPUS.
How to use
First, execute a following command to load the configuration file for OpenFOAM environment. After that, you can use OpenFOAM commands.
$ source /octfs/apl/OpenFOAM/4.1/OpenFOAM-4.1/etc/bashrc
Please run OpenFOAM by batch processing. The example of job script to execute pimpleDyMFoam is below. In this case, I prepared another script "makeMesh" beforehand and make a mesh by running it in 6 line. please rewrite here according to your way.
1 2 3 4 5 6 7 |
#!/bin/bash #PBS -q OCTOPUS #PBS -l elapstim_req=1:00:00 cd $PBS_O_WORKDIR source /octfs/apl/OpenFOAM/4.1/OpenFOAM-4.1/etc/bashrc ./makeMesh pimpleDyMFoam |
Following is the example of parallel running.
1 2 3 4 5 6 7 8 9 10 |
#!/bin/bash #PBS -q OCTOPUS #PBS -l elapstim_req=1:00:00 #PBS -T intmpi #PBS -b 2 cd $PBS_O_WORKDIR source /octfs/apl/OpenFOAM/4.1/OpenFOAM-4.1/etc/bashrc decomposePar mpirun ${NQSII_MPIOPTS} -np 48 pimpleDyMFoam -parallel reconstructPar |
Please see below for the way to submit a job script.
qsub command