Removed unneeded lib dependency from mdInitialise
[foam-extend-3.2.git] / applications / solvers / lagrangian / coalChemistryFoam / coalChemistryFoam.C
blobb4d3905177ccc8902d5122702b63b2a9b3efa0e5
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright held by original author
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 the
13     Free Software Foundation; either version 2 of the License, or (at your
14     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, write to the Free Software Foundation,
23     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25 Application
26     coalChemistryFoam
28 Description
29     Transient solver for:
30     - compressible,
31     - turbulent flow,
32     with
33     - coal and limestone parcel injections,
34     - energy source, and
35     - combustion.
37 \*---------------------------------------------------------------------------*/
39 #include "fvCFD.H"
40 #include "hCombustionThermo.H"
41 #include "turbulenceModel.H"
42 #include "basicThermoCloud.H"
43 #include "CoalCloud.H"
44 #include "psiChemistryModel.H"
45 #include "chemistrySolver.H"
46 #include "timeActivatedExplicitSource.H"
47 #include "radiationModel.H"
49 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
51 int main(int argc, char *argv[])
53     #include "setRootCase.H"
55     #include "createTime.H"
56     #include "createMesh.H"
57     #include "readChemistryProperties.H"
58     #include "readGravitationalAcceleration.H"
59     #include "createFields.H"
60     #include "createClouds.H"
61     #include "createRadiationModel.H"
62     #include "initContinuityErrs.H"
63     #include "readTimeControls.H"
64     #include "compressibleCourantNo.H"
65     #include "setInitialDeltaT.H"
67     // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
69     Info<< "\nStarting time loop\n" << endl;
71     while (runTime.run())
72     {
73         #include "readTimeControls.H"
74         #include "readPISOControls.H"
75         #include "compressibleCourantNo.H"
76         #include "setDeltaT.H"
78         runTime++;
80         Info<< "Time = " << runTime.timeName() << nl << endl;
82         rhoEffLagrangian = coalParcels.rhoEff() + limestoneParcels.rhoEff();
83         pDyn = 0.5*rho*magSqr(U);
85         coalParcels.evolve();
87         limestoneParcels.evolve();
89         #include "chemistry.H"
90         #include "rhoEqn.H"
92         // --- PIMPLE loop
93         for (int ocorr=1; ocorr<=nOuterCorr; ocorr++)
94         {
95             #include "UEqn.H"
96             #include "YEqn.H"
97             #include "hsEqn.H"
99             // --- PISO loop
100             for (int corr=1; corr<=nCorr; corr++)
101             {
102                 #include "pEqn.H"
103             }
104         }
106         turbulence->correct();
108         rho = thermo.rho();
110         if (runTime.write())
111         {
112             chemistry.dQ()().write();
113         }
115         Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s"
116             << "  ClockTime = " << runTime.elapsedClockTime() << " s"
117             << nl << endl;
118     }
120     Info<< "End\n" << endl;
122     return(0);
126 // ************************************************************************* //