1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software: you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by
13 the Free Software Foundation, either version 3 of the License, or
14 (at your option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
28 Solver for compressible premixed/partially-premixed combustion with
31 Combusting RANS code using the b-Xi two-equation model.
32 Xi may be obtained by either the solution of the Xi transport
33 equation or from an algebraic exression. Both approaches are
34 based on Gulder's flame speed correlation which has been shown
35 to be appropriate by comparison with the results from the
38 Strain effects are encorporated directly into the Xi equation
39 but not in the algebraic approximation. Further work need to be
40 done on this issue, particularly regarding the enhanced removal rate
41 caused by flame compression. Analysis using results of the spectral
42 model will be required.
44 For cases involving very lean Propane flames or other flames which are
45 very strain-sensitive, a transport equation for the laminar flame
46 speed is present. This equation is derived using heuristic arguments
47 involving the strain time scale and the strain-rate at extinction.
48 the transport velocity is the same as that for the Xi equation.
50 \*---------------------------------------------------------------------------*/
53 #include "hhuCombustionThermo.H"
54 #include "turbulenceModel.H"
55 #include "laminarFlameSpeed.H"
58 #include "pimpleControl.H"
60 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
62 int main(int argc, char *argv[])
64 #include "setRootCase.H"
66 #include "createTime.H"
67 #include "createMesh.H"
68 #include "readCombustionProperties.H"
69 #include "readGravitationalAcceleration.H"
70 #include "createFields.H"
71 #include "initContinuityErrs.H"
72 #include "readTimeControls.H"
73 #include "compressibleCourantNo.H"
74 #include "setInitialDeltaT.H"
76 pimpleControl pimple(mesh);
78 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
80 Info<< "\nStarting time loop\n" << endl;
84 #include "readTimeControls.H"
85 #include "compressibleCourantNo.H"
86 #include "setDeltaT.H"
89 Info<< "Time = " << runTime.timeName() << nl << endl;
93 // --- Pressure-velocity PIMPLE corrector loop
94 for (pimple.start(); pimple.loop(); pimple++)
109 for (int corr=0; corr<pimple.nCorr(); corr++)
114 if (pimple.turbCorr())
116 turbulence->correct();
124 Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s"
125 << " ClockTime = " << runTime.elapsedClockTime() << " s"
129 Info<< "End\n" << endl;
135 // ************************************************************************* //