Difference between revisions of "OpenFOAM guide/Introduction to OpenFOAM Programming, A Walk Through reactingFOAM"

From OpenFOAMWiki
 
Line 1: Line 1:
 
== Chapter 1: Why reactingFOAM ? ==  
 
== Chapter 1: Why reactingFOAM ? ==  
  
reactingFOAM is (one of the simpler ) reacting flow solvers of OpenFOAM. Understanding how this particular code works in a line by line manner,  gives an idea not just of this particular solver but also the general programming techniques employed in OpenFOAM. Besides, this also gives an understanding of both the flow calculations as well as the reaction calculations in OpenFOAM
+
reactingFOAM is (one of the simpler ) reacting flow solvers of OpenFOAM. Understanding how this particular code works in a line by line manner,  gives an idea not just of this particular solver but also the general programming techniques employed in OpenFOAM. Besides, this also gives an understanding of both the flow calculations as well as the reaction calculations in OpenFOAM.
 +
 
 +
==Chapter 2: What do the initial header files do? ==
 +
The beginning part of reactingFoam code (ofcourse after the license statement) reads
 +
<cpp>
 +
#include "fvCFD.H"
 +
#include "hCombustionThermo.H"
 +
#include "compressible/turbulenceModel/turbulenceModel.H"
 +
#include "chemistryModel.H"
 +
#include "chemistrySolver.H"
 +
#include "multivariateScheme.H"
 +
</cpp>
 +
 
 +
Let us briefly see what these headers do
 +
 
 +
==Section 1: <cpp> "fvCFD.H" </cpp>==
 +
A look into <cpp> "fvCFD.H" </cpp> shows the following

Revision as of 10:43, 19 July 2007

1 Chapter 1: Why reactingFOAM ?

reactingFOAM is (one of the simpler ) reacting flow solvers of OpenFOAM. Understanding how this particular code works in a line by line manner, gives an idea not just of this particular solver but also the general programming techniques employed in OpenFOAM. Besides, this also gives an understanding of both the flow calculations as well as the reaction calculations in OpenFOAM.

2 Chapter 2: What do the initial header files do?

The beginning part of reactingFoam code (ofcourse after the license statement) reads

 
#include "fvCFD.H"
#include "hCombustionThermo.H"
#include "compressible/turbulenceModel/turbulenceModel.H"
#include "chemistryModel.H"
#include "chemistrySolver.H"
#include "multivariateScheme.H"

Let us briefly see what these headers do

3 Section 1:
 "fvCFD.H"

A look into
 "fvCFD.H"
shows the following