kinematicCloud.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) 2011-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::kinematicCloud
26 
27 Description
28  Virtual abstract base class for templated KinematicCloud
29 
30 SourceFiles
31  kinematicCloud.H
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef kinematicCloud_H
36 #define kinematicCloud_H
37 
38 #include "typeInfo.H"
39 #include "volFieldsFwd.H"
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 
46 /*---------------------------------------------------------------------------*\
47  Class kinematicCloud Declaration
48 \*---------------------------------------------------------------------------*/
49 
50 class kinematicCloud
51 {
52  // Private Member Functions
53 
54  //- Disallow default bitwise copy construct
56 
57  //- Disallow default bitwise assignment
58  void operator=(const kinematicCloud&);
59 
60 
61 public:
62 
63  //- Runtime type information
64  TypeName("kinematicCloud");
65 
66  // Constructors
67 
68  //- Null constructor
70 
71 
72  // Member functions
73 
74  // Check
75 
76  //- Number of parcels
77  virtual label nParcels() const = 0;
78 
79  //- Total mass in system
80  virtual scalar massInSystem() const = 0;
81 
82  //- Total linear momentum of the system
83  virtual vector linearMomentumOfSystem() const = 0;
84 
85  //- Total linear kinetic energy in the system
86  virtual scalar linearKineticEnergyOfSystem() const = 0;
87 
88  //- Mean diameter Dij
89  virtual scalar Dij(const label i, const label j) const = 0;
90 
91  //- Max diameter
92  virtual scalar Dmax() const = 0;
93 
94 
95  // Fields
96 
97  //- Volume swept rate of parcels per cell
98  virtual const tmp<volScalarField> vDotSweep() const = 0;
99 
100  //- Return the particle volume fraction field
101  // Note: for particles belonging to this cloud only
102  virtual const tmp<volScalarField> theta() const = 0;
103 
104  //- Return the particle mass fraction field
105  // Note: for particles belonging to this cloud only
106  virtual const tmp<volScalarField> alpha() const = 0;
107 
108  //- Return the particle effective density field
109  // Note: for particles belonging to this cloud only
110  virtual const tmp<volScalarField> rhoEff() const = 0;
111 
112 
113  //- Destructor
114  virtual ~kinematicCloud();
115 };
116 
117 
118 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
119 
120 } // End namespace Foam
121 
122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123 
124 #endif
125 
126 // ************************************************************************* //
virtual scalar massInSystem() const =0
Total mass in system.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
virtual scalar linearKineticEnergyOfSystem() const =0
Total linear kinetic energy in the system.
virtual scalar Dmax() const =0
Max diameter.
TypeName("kinematicCloud")
Runtime type information.
virtual const tmp< volScalarField > alpha() const =0
Return the particle mass fraction field.
virtual const tmp< volScalarField > rhoEff() const =0
Return the particle effective density field.
virtual label nParcels() const =0
Number of parcels.
kinematicCloud()
Null constructor.
virtual const tmp< volScalarField > vDotSweep() const =0
Volume swept rate of parcels per cell.
virtual vector linearMomentumOfSystem() const =0
Total linear momentum of the system.
virtual scalar Dij(const label i, const label j) const =0
Mean diameter Dij.
virtual ~kinematicCloud()
Destructor.
Virtual abstract base class for templated KinematicCloud.
A class for managing temporary objects.
Definition: PtrList.H:53
virtual const tmp< volScalarField > theta() const =0
Return the particle volume fraction field.
Namespace for OpenFOAM.