ii# OpenFOAM

OpenFOAM (for “Open source Field Operation And Manipulation”) is a C++ toolbox for the development of customized numerical solvers, and pre-/post-processing utilities for the solution of continuum mechanics problems, including computational fluid dynamics (CFD).(https://www.openfoam.com/)

Getting Started

Select OpenFOAM as the plugin. There are no specific Application Parameters for this plugin.

This is an example of how OpenFOAM can integrate with ParaView Visualizer for visualizing results

OpenFOAM/ParaView Visualizer Example

Launch both the OpenFOAM plugin and the ParaView Visualizer plugins

Example OpenFOAM 1
Example OpenFOAM 1

Upon running the OpenFOAM Application, it will open a Terminal Window and build your environment.

Example OpenFOAM 2
Example OpenFOAM 2

Run the following commands to create a generic OpenFoam example

Creating folder and Copying the Tutorial folder
  1. mkdir my-run
  2. cd my-run
  3. cp -r $FOAM_TUTORIALS/incompressible/simpleFoam/pitzDaily .
  4. cd pitzDaily
Running OpenFOAM commands and creating an output file
  1. blockMesh
  2. simpleFoam
  3. foamToSurface out.vtk

Viewing within ParaView Visualizer

Run your ParaView Visualizer instance - Click the Document icon in the top right corner

Example OpenFOAM 3
Example OpenFOAM 3

Open your OpenFOAM outputed file (ex. out.vtk) from the my-run folder

Example OpenFOAM 4
Example OpenFOAM 4

Your OpenFOAM generated file should open for viewing

Example OpenFOAM 5
Example OpenFOAM 5