dynamicParcel.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-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::dynamicParcel
26 
27 Description
28  Basic cloud with spherical, variable density, particles, grouped into
29  parcels.
30 
31  This cloud's modelling is the same as for dynamicParticle, except that an
32  additional number field is used to represent multiple physical particles
33  per Lagrangian parcel. This adds flexibility with regards to managing the
34  expense of simulating large numbers of physical particles, and also
35  provides the ability to specify the number, size (distribution) and volume
36  or mass flow rate of particles at an injection.
37 
38 See also
39  Foam::clouds::dynamicParticle
40 
41 SourceFiles
42  dynamicParcel.C
43 
44 \*---------------------------------------------------------------------------*/
45 
46 #ifndef dynamicParcel_H
47 #define dynamicParcel_H
48 
49 #include "grouped.H"
50 #include "dense.H"
51 #include "massiveCoupledToFluid.H"
52 #include "sphericalCoupled.H"
53 
54 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
55 
56 namespace Foam
57 {
58 namespace clouds
59 {
60 
61 /*---------------------------------------------------------------------------*\
62  Class dynamicParcel Declaration
63 \*---------------------------------------------------------------------------*/
64 
65 class dynamicParcel
66 :
67  public cloud,
68  public carried,
69  public grouped,
70  public spherical,
71  public dense,
72  public coupledToFluid,
73  public sphericalCoupled,
75 {
76 protected:
77 
78  // Protected Member Functions
79 
80  //- Return the acceleration with which to do second-order tracking
82  (
83  const LagrangianSubMesh&
84  ) const;
85 
86  //- Do we need to re-calculate particles that are modified?
87  virtual bool reCalculateModified();
88 
89  //- Update the cloud properties
90  virtual void calculate
91  (
92  const LagrangianSubScalarField& deltaT,
93  const bool final
94  );
95 
96  //- Partition hook
97  virtual void partition();
98 
99 
100 public:
101 
102  // Public Static Data
103 
104  //- Run-time type information
105  TypeName("dynamicParcel");
106 
107 
108  // Constructors
109 
110  //- Construct from a mesh and context
112  (
114  const contextType context,
115  const dictionary& dict
116  );
117 
118 
119  //- Destructor
120  virtual ~dynamicParcel();
121 
122 
123  // Member Functions
124 
125  //- Solve the cloud's evolution over the current time-step
126  virtual void solve(const bool initial, const bool final);
127 };
128 
129 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
130 
131 } // End namespace clouds
132 } // End namespace Foam
133 
134 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
135 
136 #endif
137 
138 // ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Class containing Lagrangian geometry and topology.
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:61
contextType
Context in which this cloud is used.
Definition: cloud.H:203
enum Foam::cloud::contextType context
const LagrangianMesh & mesh() const
Access the mesh.
Definition: cloud.H:280
Base class for clouds which are carried by a fluid.
Definition: carried.H:57
Base class for clouds which are coupled to a variable density fluid.
Base class for clouds with a user-specified density field.
Definition: dense.H:76
Basic cloud with spherical, variable density, particles, grouped into parcels.
Definition: dynamicParcel.H:74
virtual void solve(const bool initial, const bool final)
Solve the cloud's evolution over the current time-step.
virtual bool reCalculateModified()
Do we need to re-calculate particles that are modified?
Definition: dynamicParcel.C:71
dynamicParcel(LagrangianMesh &mesh, const contextType context, const dictionary &dict)
Construct from a mesh and context.
virtual tmp< LagrangianSubVectorField > dUdt(const LagrangianSubMesh &) const
Return the acceleration with which to do second-order tracking.
Definition: dynamicParcel.C:57
virtual ~dynamicParcel()
Destructor.
TypeName("dynamicParcel")
Run-time type information.
virtual void partition()
Partition hook.
virtual void calculate(const LagrangianSubScalarField &deltaT, const bool final)
Update the cloud properties.
Base class for clouds in which particles are grouped into parcels.
Definition: grouped.H:51
Base class for clouds of massive particles which are coupled to a fluid.
Base class for clouds of spherical particles which are coupled to a carrier.
Base class for clouds with spherical particles.
Definition: spherical.H:53
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Definition: dictionary.H:162
A class for managing temporary objects.
Definition: tmp.H:55
Namespace for OpenFOAM.
dictionary dict