icoUncoupledKinematicCloud.H
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) 2016 OpenFOAM Foundation
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 Class
25  Foam::functionObjects::icoUncoupledKinematicCloud
26 
27 Group
28  grpLagrangianFunctionObjects
29 
30 Description
31  This functionObject tracks a uncoupled kinematic particle cloud in the
32  specified velocity field of an incompressible flow (laminar, RANS or LES).
33 
34  It may be used in conjunction with any transient single-phase incompressible
35  flow solver such as pisoFoam or pimpleFoam and tracks the particles or
36  parcels without affecting the the flow-field.
37 
38  The kinematicCloud requires the the density of the fluid which is looked-up
39  from constant/transportProperties dictionary and the acceleration due to
40  gravity which is read from the constant/g file if present or defaults to
41  zero.
42 
43  The kinematicCloud properties are read from the
44  constant/kinematicCloudProperties dictionary in the usual manner.
45 
46  Example of function object specification:
47  \verbatim
48  tracks
49  {
50  libs ("liblagrangianFunctionObjects.so");
51  type icoUncoupledKinematicCloud;
52  }
53  \endverbatim
54 
55 Usage
56  \table
57  Property | Description | Required | Default value
58  type | Type name: icoUncoupledKinematicCloud | yes |
59  U | Name of the velocity field | no | U
60  kinematicCloud | Name of the kinematicCloud | no | kinematicCloud
61  \endtable
62 
63 See also
64  Foam::functionObjects::fvMeshFunctionObject
65 
66 SourceFiles
67  icoUncoupledKinematicCloud.C
68 
69 \*---------------------------------------------------------------------------*/
70 
71 #ifndef functionObjects_icoUncoupledKinematicCloud_H
72 #define functionObjects_icoUncoupledKinematicCloud_H
73 
74 #include "fvMeshFunctionObject.H"
76 #include "volFields.H"
78 
79 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
80 
81 namespace Foam
82 {
83 
84 class singlePhaseTransportModel;
85 
86 namespace functionObjects
87 {
88 
89 /*---------------------------------------------------------------------------*\
90  Class icoUncoupledKinematicCloud Declaration
91 \*---------------------------------------------------------------------------*/
92 
93 class icoUncoupledKinematicCloud
94 :
95  public fvMeshFunctionObject
96 {
97  // Private member data
98 
99  //- Optional acceleration due to gravity
101 
102  //- Reference to the laminar transport model
103  const singlePhaseTransportModel& laminarTransport_;
104 
105  //- Uniform density value
106  dimensionedScalar rhoValue_;
107 
108  //- Density field needed to construct kinematicCloud
109  volScalarField rho_;
110 
111  //- Dynamic viscosity field needed to construct kinematicCloud
113 
114  //- Reference to the velocity field
115  const volVectorField& U_;
116 
117  //- Name of the cloud
118  word kinematicCloudName_;
119 
120  //- The kinematic cloud
121  basicKinematicCollidingCloud kinematicCloud_;
122 
123 
124  // Private member functions
125 
126  //- Disallow default bitwise copy construct
128 
129  //- Disallow default bitwise assignment
130  void operator==(const icoUncoupledKinematicCloud&);
131 
132 
133 public:
134 
135  //- Runtime type information
136  TypeName("icoUncoupledKinematicCloud");
137 
138 
139  // Constructors
140 
141  //- Construct for given objectRegistry and dictionary.
142  // Allow the possibility to load fields from files
144  (
145  const word& name,
146  const Time& runTime,
147  const dictionary& dict
148  );
149 
150 
151  //- Destructor
152  virtual ~icoUncoupledKinematicCloud();
153 
154 
155  // Member Functions
156 
157  //- Read the controls
158  virtual bool read(const dictionary&);
159 
160  //- Track the cloud
161  virtual bool execute();
162 
163  //- Write the cloud
164  virtual bool write();
165 };
166 
167 
168 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
169 
170 } // End namespace functionObjects
171 } // End namespace Foam
172 
173 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
174 
175 #endif
176 
177 // ************************************************************************* //
Cloud class to introduce kinematic colliding parcels.
dictionary dict
const word & name() const
Return the name of this functionObject.
UniformDimensionedField< vector > uniformDimensionedVectorField
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Definition: Time.H:68
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:52
A class for handling words, derived from string.
Definition: word.H:59
TypeName("icoUncoupledKinematicCloud")
Runtime type information.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
virtual bool read(const dictionary &)
Read the controls.
This functionObject tracks a uncoupled kinematic particle cloud in the specified velocity field of an...
Namespace for OpenFOAM.