shaped.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) 2025 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::shaped
26 
27 Description
28  Base class for clouds with particles with mass
29 
30 SourceFiles
31  shaped.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef shaped_H
36 #define shaped_H
37 
38 #include "grouped.H"
39 
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 
42 namespace Foam
43 {
44 namespace clouds
45 {
46 
47 /*---------------------------------------------------------------------------*\
48  Class shaped Declaration
49 \*---------------------------------------------------------------------------*/
50 
51 class shaped
52 {
53  // Private Member Functions
54 
55  //- Calculate the particles' volumes
56  virtual tmp<LagrangianSubScalarField> calcv
57  (
58  const LagrangianModelRef& model,
59  const LagrangianSubMesh& subMesh
60  ) const = 0;
61 
62  //- Calculate the particles' surface areas
63  virtual tmp<LagrangianSubScalarField> calca
64  (
65  const LagrangianModelRef& model,
66  const LagrangianSubMesh& subMesh
67  ) const = 0;
68 
69 
70 public:
71 
72  // Public Static Data
73 
74  //- Run-time type information
75  TypeName("shaped");
76 
77  //- Name of volume fields
78  static const word vName;
79 
80 
81  // Public Data
82 
83  //- Volume
85 
86  //- Surface area
88 
89  //- Volume fraction
91 
92 
93  // Constructors
94 
95  //- Construct from a reference to the cloud
96  shaped(const cloud&);
97 
98  //- Construct from a reference to the cloud and its base classes
99  shaped(const cloud&, const grouped&);
100 
101 
102  //- Destructor
103  virtual ~shaped();
104 };
105 
106 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
107 
108 } // End namespace clouds
109 } // End namespace Foam
110 
111 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
112 
113 #endif
114 
115 // ************************************************************************* //
Simple wrapper to provide an optional reference to a Lagrangian model.
Mesh that relates to a sub-section of a Lagrangian mesh. This is used to construct fields that relate...
Base class for clouds. Provides a basic evolution algorithm, models, and a database for caching deriv...
Definition: cloud.H:63
Base class for clouds in which particles are grouped into parcels.
Definition: grouped.H:51
Base class for clouds with particles with mass.
Definition: shaped.H:51
TypeName("shaped")
Run-time type information.
virtual ~shaped()
Destructor.
Definition: shaped.C:90
const CloudAverageField< scalar > & alpha
Volume fraction.
Definition: shaped.H:89
const CloudDerivedField< scalar > & v
Volume.
Definition: shaped.H:83
shaped(const cloud &)
Construct from a reference to the cloud.
Definition: shaped.C:44
const CloudDerivedField< scalar > & a
Surface area.
Definition: shaped.H:86
static const word vName
Name of volume fields.
Definition: shaped.H:77
A class for managing temporary objects.
Definition: tmp.H:55
A class for handling words, derived from string.
Definition: word.H:62
Namespace for OpenFOAM.