icoUncoupledKinematicParcelFoam.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  icoUncoupledKinematicParcelFoam
28 
29 Group
30  grpLagrangianSolvers
31 
32 Description
33  Transient solver for the passive transport of a single kinematic
34  particle cloud.
35 
36  Uses a pre-calculated velocity field to evolve the cloud.
37 
38 \*---------------------------------------------------------------------------*/
39 
40 #include "fvCFD.H"
44 
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 
47 int main(int argc, char *argv[])
48 {
49  argList::addNote
50  (
51  "Transient solver for the passive transport"
52  " of a single kinematic particle cloud"
53  );
54  argList::addOption
55  (
56  "cloud",
57  "name",
58  "specify alternative cloud name. default is 'kinematicCloud'"
59  );
60 
61  #include "postProcess.H"
62 
63  #include "addCheckCaseOptions.H"
64  #include "setRootCaseLists.H"
65  #include "createTime.H"
66  #include "createMesh.H"
67  #include "createControl.H"
68  #include "createFields.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 
80  laminarTransport.correct();
81 
82  mu = laminarTransport.nu()*rhoInfValue;
83 
84  kinematicCloud.evolve();
85 
86  runTime.write();
87 
88  runTime.printExecutionTime(Info);
89  }
90 
91  Info<< "End\n" << endl;
92 
93  return 0;
94 }
95 
96 
97 // ************************************************************************* //
runTime
engineTime & runTime
Definition: createEngineTime.H:13
Foam::constant::physicoChemical::mu
const dimensionedScalar mu
Atomic mass unit.
Definition: createFieldRefs.H:4
singlePhaseTransportModel.H
turbulentTransportModel.H
Foam::endl
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:369
basicKinematicCollidingCloud.H
setRootCaseLists.H
addCheckCaseOptions.H
Required Classes.
Foam::Info
messageStream Info
Information stream (stdout output on master, null elsewhere)
postProcess.H
Execute application functionObjects to post-process existing results.
Foam::nl
constexpr char nl
Definition: Ostream.H:404
createMesh.H
Required Variables.
createTime.H
fvCFD.H
laminarTransport
singlePhaseTransportModel laminarTransport(U, phi)