BUG: UListIO: byteSize overflowing on really big faceLists
[OpenFOAM-2.0.x.git] / applications / solvers / lagrangian / reactingParcelFoam / reactingParcelFoam.C
blobcc2cade75d1cb7296c712fb19e58a6a5dd727544
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 2011 OpenFOAM Foundation
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
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
19     for more details.
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/>.
24 Application
25     reactingParcelFoam
27 Description
28     Transient PISO solver for compressible, laminar or turbulent flow with
29     reacting Lagrangian parcels.
31 \*---------------------------------------------------------------------------*/
33 #include "fvCFD.H"
34 #include "hCombustionThermo.H"
35 #include "turbulenceModel.H"
36 #include "basicReactingCloud.H"
37 #include "psiChemistryModel.H"
38 #include "chemistrySolver.H"
39 #include "radiationModel.H"
40 #include "SLGThermo.H"
41 #include "pimpleControl.H"
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 int main(int argc, char *argv[])
47     #include "setRootCase.H"
49     #include "createTime.H"
50     #include "createMesh.H"
51     #include "readChemistryProperties.H"
52     #include "readGravitationalAcceleration.H"
53     #include "createFields.H"
54     #include "createClouds.H"
55     #include "createRadiationModel.H"
56     #include "initContinuityErrs.H"
57     #include "readTimeControls.H"
58     #include "compressibleCourantNo.H"
59     #include "setInitialDeltaT.H"
61     pimpleControl pimple(mesh);
63     // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
65     Info<< "\nStarting time loop\n" << endl;
67     while (runTime.run())
68     {
69         #include "readTimeControls.H"
70         #include "compressibleCourantNo.H"
71         #include "setDeltaT.H"
73         runTime++;
75         Info<< "Time = " << runTime.timeName() << nl << endl;
77         parcels.evolve();
79         #include "chemistry.H"
80         #include "rhoEqn.H"
82         // --- Pressure-velocity PIMPLE corrector loop
83         for (pimple.start(); pimple.loop(); pimple++)
84         {
85             #include "UEqn.H"
86             #include "YEqn.H"
87             #include "hsEqn.H"
89             // --- PISO loop
90             for (int corr=0; corr<pimple.nCorr(); corr++)
91             {
92                 #include "pEqn.H"
93             }
95             if (pimple.turbCorr())
96             {
97                 turbulence->correct();
98             }
99         }
101         rho = thermo.rho();
103         if (runTime.write())
104         {
105             chemistry.dQ()().write();
106         }
108         Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s"
109             << "  ClockTime = " << runTime.elapsedClockTime() << " s"
110             << nl << endl;
111     }
113     Info<< "End\n" << endl;
115     return(0);
119 // ************************************************************************* //