kinematicCloud.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2011-2019 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 public:
53 
54  //- Runtime type information
55  TypeName("kinematicCloud");
56 
57  // Constructors
58 
59  //- Null constructor
61 
62  //- Disallow default bitwise copy construction
63  kinematicCloud(const kinematicCloud&) = delete;
64 
65 
66  //- Destructor
67  virtual ~kinematicCloud();
68 
69 
70  // Member Functions
71 
72  // Check
73 
74  //- Number of parcels
75  virtual label nParcels() const = 0;
76 
77  //- Total mass in system
78  virtual scalar massInSystem() const = 0;
79 
80  //- Total linear momentum of the system
81  virtual vector linearMomentumOfSystem() const = 0;
82 
83  //- Total linear kinetic energy in the system
84  virtual scalar linearKineticEnergyOfSystem() const = 0;
85 
86  //- Mean diameter Dij
87  virtual scalar Dij(const label i, const label j) const = 0;
88 
89  //- Max diameter
90  virtual scalar Dmax() const = 0;
91 
92 
93  // Fields
94 
95  //- Volume swept rate of parcels per cell
96  virtual const tmp<volScalarField> vDotSweep() const = 0;
97 
98  //- Return the particle volume fraction field
99  // Note: for particles belonging to this cloud only
100  virtual const tmp<volScalarField> theta() const = 0;
101 
102  //- Return the particle mass fraction field
103  // Note: for particles belonging to this cloud only
104  virtual const tmp<volScalarField> alpha() const = 0;
105 
106  //- Return the particle effective density field
107  // Note: for particles belonging to this cloud only
108  virtual const tmp<volScalarField> rhoEff() const = 0;
109 
110 
111  // Member Operators
112 
113  //- Disallow default bitwise assignment
114  void operator=(const kinematicCloud&) = delete;
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.
void operator=(const kinematicCloud &)=delete
Disallow default bitwise assignment.
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.