dense.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) 2026 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::clouds::dense
26 
27 Description
28  Base class for clouds with a user-specified density field
29 
30 SourceFiles
31  dense.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef dense_H
36 #define dense_H
37 
38 #include "massive.H"
39 
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 
42 namespace Foam
43 {
44 namespace clouds
45 {
46 
47 /*---------------------------------------------------------------------------*\
48  Class denseBase Declaration
49 \*---------------------------------------------------------------------------*/
50 
51 class denseBase
52 {
53 protected:
54 
55  // Protected Data
56 
57  //- Density
59 
60 
61 public:
62 
63  // Constructors
64 
65  //- Construct from a reference to the cloud
66  denseBase(const cloud&);
67 };
68 
69 /*---------------------------------------------------------------------------*\
70  Class dense Declaration
71 \*---------------------------------------------------------------------------*/
72 
73 class dense
74 :
75  private denseBase,
76  public massive
77 {
78 public:
79 
80  // Public Static Data
81 
82  //- Run-time type information
83  TypeName("dense");
84 
85 
86  // Constructors
87 
88  //- Construct from a reference to the cloud and its base classes
89  dense(const cloud&, const shaped&);
90 
91 
92  //- Destructor
93  virtual ~dense();
94 };
95 
96 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
97 
98 } // End namespace clouds
99 } // End namespace Foam
100 
101 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
102 
103 #endif
104 
105 // ************************************************************************* //
Generic GeometricField class.
Base class for clouds. Provides a basic evolution algorithm, models, and a database for caching deriv...
Definition: cloud.H:61
denseBase(const cloud &)
Construct from a reference to the cloud.
Definition: dense.C:41
LagrangianScalarDynamicField rho_
Density.
Definition: dense.H:57
Base class for clouds with a user-specified density field.
Definition: dense.H:76
dense(const cloud &, const shaped &)
Construct from a reference to the cloud and its base classes.
Definition: dense.C:58
TypeName("dense")
Run-time type information.
virtual ~dense()
Destructor.
Definition: dense.C:67
Base class for clouds with particles with mass.
Definition: massive.H:51
Base class for clouds with particles with mass.
Definition: shaped.H:51
Namespace for OpenFOAM.