BUG: UListIO: byteSize overflowing on really big faceLists
[OpenFOAM-2.0.x.git] / applications / solvers / lagrangian / LTSReactingParcelFoam / LTSReactingParcelFoam.C
blob25b7d66ba67e6110d5c36f526be4e008d1abfd2f
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     LTSReactingParcelFoam
27 Description
28     Local time stepping (LTS) solver for steady, compressible, laminar or
29     turbulent reacting and non-reacting flow with multiphase Lagrangian
30     parcels and porous media, including explicit sources for mass, momentum
31     and energy
33     Note: ddtPhiCorr not used here when porous zones are active
34     - not well defined for porous calculations
36 \*---------------------------------------------------------------------------*/
38 #include "fvCFD.H"
39 #include "hReactionThermo.H"
40 #include "turbulenceModel.H"
41 #include "basicReactingMultiphaseCloud.H"
42 #include "rhoChemistryModel.H"
43 #include "chemistrySolver.H"
44 #include "radiationModel.H"
45 #include "porousZones.H"
46 #include "timeActivatedExplicitSource.H"
47 #include "SLGThermo.H"
48 #include "fvcSmooth.H"
49 #include "pimpleControl.H"
51 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
53 int main(int argc, char *argv[])
55     #include "setRootCase.H"
57     #include "createTime.H"
58     #include "createMesh.H"
59     #include "readGravitationalAcceleration.H"
61     pimpleControl pimple(mesh);
63     #include "readTimeControls.H"
64     #include "readAdditionalSolutionControls.H"
65     #include "createFields.H"
66     #include "createRadiationModel.H"
67     #include "createClouds.H"
68     #include "createExplicitSources.H"
69     #include "createPorousZones.H"
70     #include "initContinuityErrs.H"
72     // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
74     Info<< "\nStarting time loop\n" << endl;
76     while (runTime.run())
77     {
78         #include "readChemistryProperties.H"
79         #include "readAdditionalSolutionControls.H"
80         #include "readTimeControls.H"
82         runTime++;
84         Info<< "Time = " << runTime.timeName() << nl << endl;
86         parcels.evolve();
88         #include "chemistry.H"
89         #include "timeScales.H"
91         #include "rhoEqn.H"
93         // --- Pressure-velocity PIMPLE corrector loop
94         for (pimple.start(); pimple.loop(); pimple++)
95         {
96             if (pimple.nOuterCorr() != 1)
97             {
98                 p.storePrevIter();
99             }
101             turbulence->correct();
103             #include "UEqn.H"
104             #include "YEqn.H"
105             #include "hsEqn.H"
107             // --- PISO loop
108             for (int corr=0; corr<pimple.nCorr(); corr++)
109             {
110                 #include "pEqn.H"
111             }
112         }
114         if (runTime.write())
115         {
116             chemistry.dQ()().write();
117         }
119         Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s"
120             << "  ClockTime = " << runTime.elapsedClockTime() << " s"
121             << nl << endl;
122     }
124     Info<< "End\n" << endl;
126     return(0);
130 // ************************************************************************* //