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/>.
25 reactingParcelFilmFoam
28 Transient PISO solver for compressible, laminar or turbulent flow with
29 reacting Lagrangian parcels, and surface film modelling.
31 \*---------------------------------------------------------------------------*/
34 #include "hCombustionThermo.H"
35 #include "turbulenceModel.H"
36 #include "basicReactingCloud.H"
37 #include "surfaceFilmModel.H"
38 #include "psiChemistryModel.H"
39 #include "chemistrySolver.H"
40 #include "radiationModel.H"
41 #include "SLGThermo.H"
42 #include "pimpleControl.H"
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 int main(int argc, char *argv[])
48 #include "setRootCase.H"
50 #include "createTime.H"
51 #include "createMesh.H"
52 #include "readChemistryProperties.H"
53 #include "readGravitationalAcceleration.H"
54 #include "createFields.H"
55 #include "createClouds.H"
56 #include "createRadiationModel.H"
57 #include "createSurfaceFilmModel.H"
58 #include "initContinuityErrs.H"
59 #include "readTimeControls.H"
60 #include "compressibleCourantNo.H"
61 #include "setInitialDeltaT.H"
63 pimpleControl pimple(mesh);
65 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
67 Info<< "\nStarting time loop\n" << endl;
71 #include "readTimeControls.H"
72 #include "compressibleCourantNo.H"
73 #include "setMultiRegionDeltaT.H"
74 #include "setDeltaT.H"
78 Info<< "Time = " << runTime.timeName() << nl << endl;
84 if (solvePrimaryRegion)
86 #include "chemistry.H"
90 for (pimple.start(); pimple.loop(); pimple++)
97 for (int corr=1; corr<=pimple.nCorr(); corr++)
102 if (pimple.turbCorr())
104 turbulence->correct();
112 chemistry.dQ()().write();
120 Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s"
121 << " ClockTime = " << runTime.elapsedClockTime() << " s"
125 Info<< "End" << endl;
131 // ************************************************************************* //