uncoupledKinematicParcelFoam.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) 2011-2016 OpenFOAM Foundation
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 Application
27  uncoupledKinematicParcelFoam
28 
29 Group
30  grpLagrangianSolvers
31 
32 Description
33  Transient solver for the passive transport of a particle cloud.
34 
35  Uses a pre-calculated velocity field to evolve the cloud.
36 
37 \*---------------------------------------------------------------------------*/
38 
39 #include "fvCFD.H"
40 #include "psiThermo.H"
42 #include "basicKinematicCloud.H"
43 
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 
46 int main(int argc, char *argv[])
47 {
48  argList::addNote
49  (
50  "Transient solver for the passive transport of a particle cloud.\n"
51  "Uses a pre-calculated velocity field to evolve the cloud."
52  );
53  argList::addOption
54  (
55  "cloud",
56  "name",
57  "specify alternative cloud name. default is 'kinematicCloud'"
58  );
59 
60  #define NO_CONTROL
61  #include "postProcess.H"
62 
63  #include "addCheckCaseOptions.H"
64  #include "setRootCaseLists.H"
65  #include "createTime.H"
66  #include "createMesh.H"
67  #include "createFields.H"
68  #include "compressibleCourantNo.H"
69 
70  // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
71 
72  Info<< "\nStarting time loop\n" << endl;
73 
74  while (runTime.loop())
75  {
76  Info<< "Time = " << runTime.timeName() << nl << endl;
77 
78  Info<< "Evolving " << kinematicCloud.name() << endl;
79  kinematicCloud.evolve();
80 
81  runTime.write();
82 
83  runTime.printExecutionTime(Info);
84  }
85 
86  Info<< "End\n" << endl;
87 
88  return 0;
89 }
90 
91 
92 // ************************************************************************* //
runTime
engineTime & runTime
Definition: createEngineTime.H:13
Foam::endl
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:369
setRootCaseLists.H
addCheckCaseOptions.H
Required Classes.
Foam::Info
messageStream Info
Information stream (stdout output on master, null elsewhere)
basicKinematicCloud.H
postProcess.H
Execute application functionObjects to post-process existing results.
psiThermo.H
Foam::nl
constexpr char nl
Definition: Ostream.H:404
createMesh.H
Required Variables.
createTime.H
fvCFD.H
turbulentFluidThermoModel.H