simpleCoalParcelFoam.C
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | Copyright (C) 2015 OpenCFD Ltd
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
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.
15 
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.
20 
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/>.
23 
24 Application
25  simpleReactingParcelFoam
26 
27 Description
28  Steady state SIMPLE solver for laminar or turbulent flow with coal
29  Lagrangian parcels.
30 
31  Note:
32  - including run-time selectable finite volume options,e.g. sources,
33  constraints
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #include "fvCFD.H"
39 #include "coalCloud.H"
40 #include "rhoCombustionModel.H"
41 #include "radiationModel.H"
42 #include "IOporosityModelList.H"
43 #include "fvOptions.H"
44 #include "SLGThermo.H"
45 #include "simpleControl.H"
46 
47 
48 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
49 
50 int main(int argc, char *argv[])
51 {
52  #include "setRootCase.H"
53 
54  #include "createTime.H"
55  #include "createMesh.H"
56  #include "readGravitationalAcceleration.H"
57 
58  simpleControl simple(mesh);
59 
60  #include "createFields.H"
61  #include "createRadiationModel.H"
62  #include "createClouds.H"
63  #include "createMRF.H"
64  #include "createFvOptions.H"
65  #include "initContinuityErrs.H"
66 
67  // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
68 
69  Info<< "\nStarting time loop\n" << endl;
70 
71  while (simple.loop())
72  {
73  Info<< "Time = " << runTime.timeName() << nl << endl;
74 
75  parcels.evolve();
76 
77  // --- Pressure-velocity SIMPLE corrector loop
78  {
79  #include "UEqn.H"
80  #include "YEqn.H"
81  #include "EEqn.H"
82  #include "pEqn.H"
83  }
84 
85  turbulence->correct();
86 
87  runTime.write();
88 
89  Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s"
90  << " ClockTime = " << runTime.elapsedClockTime() << " s"
91  << nl << endl;
92  }
93 
94  Info<< "End\n" << endl;
95 
96  return(0);
97 }
98 
99 
100 // ************************************************************************* //
fvOptions.H
Foam::endl
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:251
createRadiationModel.H
SLGThermo.H
simple
Simple relative velocity model.
createFvOptions.H
turbulence
autoPtr< compressible::turbulenceModel > turbulence
Definition: createFields.H:23
Foam::nl
static const char nl
Definition: Ostream.H:260
Foam::Info
messageStream Info
main
int main(int argc, char *argv[])
Definition: postCalc.C:54
simpleControl.H
coalCloud.H
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:18
setRootCase.H
IOporosityModelList.H
simple
const dictionary & simple
Definition: readFluidMultiRegionSIMPLEControls.H:1
createMesh.H
createTime.H
fvCFD.H
radiationModel.H
rhoCombustionModel.H
turbulentFluidThermoModel.H