CFD solver for laminar flows based on OpenFOAM and flamelets
- OpenFOAM-2.x
- OpenFOAM-4.x
- OpenFOAM-dev
- Intel MKL (https://software.intel.com/en-us/intel-mkl)
Two different options are available to compile the code
- Minimalist: no external Intel MKL libraries are needed
- Minimalist + Intel MKL: better performances thanks to the linking to the Intel MKL libraries is needed
- Open the
mybashrc.minimalist
, select the OpenFOAM version you are working with and update the required paths - Type:
source mybashrc.minimalist
- Compile the steady-state solver: from the
solver/laminarSimpleSMOKE-flamelet
folder typewclean
and thenwmake
- Compile the unsteady solver: from the
solver/laminarPimpleSMOKE-flamelet
folder typewclean
and thenwmake
- Open the
mybashrc.minimalist.mkl
select the OpenFOAM version you are working with and update the required paths (in particular those pointing to the Intel MKL libraries) - Type:
source mybashrc.minimalist.mkl
- Compile the steady-state solver: from the
solver/laminarSimpleSMOKE-flamelet
folder typewclean
and thenwmake
- Compile the unsteady solver: from the
solver/laminarPimpleSMOKE-flamelet
folder typewclean
and thenwmake
The folder cases/openfoam-4.x/CounterFlow/Coarse
contains a simple test case (counterflow diffusion flame). Obviously, if you are using older versions of OpenFOAM, the corresponding folder is cases/openfoam-2.x/CounterFlow/Coarse
.
-
Unsteady simulation: Open the
laminarPimpleSMOKE-flamelet
folder, build the mesh using theblockMesh
utility, and run the case using thelaminarPimpleSMOKE-flamelet
solver. Even if you are interested in steady state conditions, we strongly suggest to always start with unsteady calculations to create a reasonable first-guess solution for the application of the steady state solver. -
Steady state simulation: you can now move to the
laminarSimpleSMOKE-flamelet
folder. Copy the last time folder calculated by the unsteady solver (point 1 above), build the mesh using theblockMesh
utility, and run the case using thelaminarSimpleSMOKE-flamelet
solver. In order to reach the steady state conditions, 5000-6000 iterations are enough.