This article provides basic information on how to get started with OpenFOAM at Sabalcore. It is assumed that you are already familiar with using OpenFOAM and have reviewed Section 1 User Guide Basics.
Prerequisites
Understand how to select nodes for a job and create a pbs script and running a batch or interactive job.
This article covers:
- Running the OpenFOAM demo
- Using visualization tools for OpenFOAM – Paraview
OpenFOAM Demo
From a terminal window, enter the following commands:
mkdir ~/OpenFOAM
cd ~/OpenFOAM
cp -a /uls/6/OpenFOAM/example/laminar.pbs .
qsub laminar.pbs
Use the qstat command to see its status. After the job has completed, take a look at the laminar.pbs file and the files in the “damBreakFine” and damBreak” directory. This example uses the standard “Allrun” command. You can view the output of the run in the *.o* and *.e* files that were copied to the same directory after the job completed. Use laminar.pbs as a template for your OpenFOAM batch jobs.
Now that you have this example all ready in your home directory, try running the same job interactively.
- Start an interactive job with 1 node and 4 cores – “qsub -I -l nodes=1:blue:ppn=4”
- cd to the OpenFOAM directory that you created previously
- load the OpenFOAM module (as shown in the laminar.pbs file)
- run Allclean and Allrun
Visualization Tools for OpenFOAM
ParaView is an open-source, multi-platform data analysis and visualization application. ParaView users can quickly build visualizations to analyze their data using qualitative and quantitative techniques.
Paraview can run from any node. Below are the commands to run ParaView.
To run ParaView, use the launcher located in the remote desktop. Or launch it manually as described here:
- In the terminal window, enter the following commands one at a time:
- “qsub -I -l nodes=1:blue:ppn=6″
- “module load paraview”
- “paraview”
- You should see the paraview GUI display. Now open your files in Paraview.
If you need further assistance with paraview, particularly with a specific version of OpenFOAM, please let us know.