2. OpenFOAM

OpenFOAM is opensource CFD toolbox written using C++ with object oriented approach.

2.1. OpenFOAM Basics

Resources to Learn or Revise OpenFOAM

2.2. OpenFOAM Programing

This section demonstrate how to built custom solver in simple steps.

Note

It is advisable to read and understand the 12 steps to N-S solver

Or refer to The Visual Room short notes

2.2.1. Linear Advection Diffusion

  • Problem statement: Develope a solver for following Linear Advection Diffusion Equation.

\[\frac{\partial U}{\partial t}+c \nabla U = \nu \nabla^2 U\]

2.2.2. Non Linear Advection Diffusion

  • Problem statement: Develope a solver for following Non Linear Advection Diffusion Equation.

\[\frac{\partial U}{\partial t}+U \bullet \nabla U = \nu \nabla^2 U\]