simpleReactingParcelFoam.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 | www.openfoam.com
6 \\/ M anipulation |
7-------------------------------------------------------------------------------
8 Copyright (C) 2013-2017 OpenFOAM Foundation
9 Copyright (C) 2018 OpenCFD Ltd.
10-------------------------------------------------------------------------------
11License
12 This file is part of OpenFOAM.
13
14 OpenFOAM is free software: you can redistribute it and/or modify it
15 under the terms of the GNU General Public License as published by
16 the Free Software Foundation, either version 3 of the License, or
17 (at your option) any later version.
18
19 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 for more details.
23
24 You should have received a copy of the GNU General Public License
25 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26
27Application
28 simpleReactingParcelFoam
29
30Description
31 Steady-state solver for compressible, turbulent flow with reacting,
32 multiphase particle clouds and optional sources/constraints.
33
34\*---------------------------------------------------------------------------*/
35
36#include "fvCFD.H"
38#include "rhoReactionThermo.H"
39#include "CombustionModel.H"
40#include "radiationModel.H"
41#include "IOporosityModelList.H"
42#include "fvOptions.H"
43#include "SLGThermo.H"
44#include "simpleControl.H"
45#include "cloudMacros.H"
46
47#ifndef CLOUD_BASE_TYPE
48 #define CLOUD_BASE_TYPE ReactingMultiphase
49 //#define CLOUD_BASE_TYPE_NAME "reactingMultiphase" Backwards compat
50 #define CLOUD_BASE_TYPE_NAME "reacting"
51#endif
52
53#include CLOUD_INCLUDE_FILE(CLOUD_BASE_TYPE)
54#define basicReactingTypeCloud CLOUD_TYPE(CLOUD_BASE_TYPE)
55
56// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
57
58int main(int argc, char *argv[])
59{
60 argList::addNote
61 (
62 "Steady-state solver for compressible, turbulent flow"
63 " with reacting, multiphase particle clouds"
64 " and optional sources/constraints."
65 );
66
67 #include "postProcess.H"
68
69 #include "addCheckCaseOptions.H"
70 #include "setRootCaseLists.H"
71 #include "createTime.H"
72 #include "createMesh.H"
73 #include "createControl.H"
74 #include "createFields.H"
75 #include "createFieldRefs.H"
76 #include "initContinuityErrs.H"
77
78 turbulence->validate();
79
80 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
81
82 Info<< "\nStarting time loop\n" << endl;
83
84 while (simple.loop())
85 {
86 Info<< "Time = " << runTime.timeName() << nl << endl;
87
88 parcels.evolve();
89
90 // --- Pressure-velocity SIMPLE corrector loop
91 {
92 #include "UEqn.H"
93 #include "YEqn.H"
94 #include "EEqn.H"
95 #include "pEqn.H"
96 }
97
98 turbulence->correct();
99
100 runTime.write();
101
102 runTime.printExecutionTime(Info);
103 }
104
105 Info<< "End\n" << endl;
106
107 return 0;
108}
109
110
111// ************************************************************************* //
Required Classes.
C-preprocessor cloud macros.
engineTime & runTime
Required Variables.
compressible::turbulenceModel & turbulence
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:372
constexpr char nl
The newline '\n' character (0x0a)
Definition: Ostream.H:53
Execute application functionObjects to post-process existing results.
const dictionary & simple