1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
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 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
33 Note: ddtPhiCorr not used here when porous zones are active
34 - not well defined for porous calculations
36 \*---------------------------------------------------------------------------*/
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;
78 #include "readChemistryProperties.H"
79 #include "readAdditionalSolutionControls.H"
80 #include "readTimeControls.H"
84 Info<< "Time = " << runTime.timeName() << nl << endl;
88 #include "chemistry.H"
89 #include "timeScales.H"
93 // --- Pressure-velocity PIMPLE corrector loop
94 for (pimple.start(); pimple.loop(); pimple++)
96 if (pimple.nOuterCorr() != 1)
101 turbulence->correct();
108 for (int corr=0; corr<pimple.nCorr(); corr++)
116 chemistry.dQ()().write();
119 Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s"
120 << " ClockTime = " << runTime.elapsedClockTime() << " s"
124 Info<< "End\n" << endl;
130 // ************************************************************************* //