kinematicParcel.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::kinematicParcel
26 
27 Description
28  Basic cloud with spherical, constant density, particles, grouped into
29  parcels.
30 
31  This cloud's modelling is the same as for kinematicParticle, except
32  that an additional number field is used to represent multiple physical
33  particles per Lagrangian parcel. This adds flexibility with regards to
34  managing the expense of simulating large numbers of physical particles,
35  and also provides the ability to specify the number, size (distribution)
36  and volume or mass flow rate of particles at an injection.
37 
38 See also
39  Foam::clouds::kinematicParticle
40 
41 SourceFiles
42  kinematicParcel.C
43 
44 \*---------------------------------------------------------------------------*/
45 
46 #ifndef kinematicParcel_H
47 #define kinematicParcel_H
48 
49 #include "grouped.H"
51 #include "sphericalCoupled.H"
52 
53 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
54 
55 namespace Foam
56 {
57 namespace clouds
58 {
59 
60 /*---------------------------------------------------------------------------*\
61  Class kinematicParcel Declaration
62 \*---------------------------------------------------------------------------*/
63 
64 class kinematicParcel
65 :
66  public cloud,
67  public grouped,
68  public spherical,
70  public sphericalCoupled
71 {
72 protected:
73 
74  // Protected Member Functions
75 
76  //- Initialisation hook
77  virtual void initialise(const bool predict);
78 
79  //- Partition hook
80  virtual void partition();
81 
82  //- Return the acceleration with which to do second-order tracking
84  (
85  const LagrangianSubMesh&
86  ) const;
87 
88  //- Do we need to re-calculate particles that are modified?
89  virtual bool reCalculateModified();
90 
91  //- Update the cloud properties
92  virtual void calculate
93  (
94  const LagrangianSubScalarField& deltaT,
95  const bool final
96  );
97 
98 
99 public:
100 
101  // Public Static Data
102 
103  //- Run-time type information
104  TypeName("kinematicParcel");
105 
106 
107  // Constructors
108 
109  //- Construct from a mesh and a name
111  (
112  const polyMesh& mesh,
113  const word& name,
114  const contextType context,
117  );
118 
119 
120  //- Destructor
121  virtual ~kinematicParcel();
122 
123 
124  // Member Functions
125 
126  //- Solve the cloud's evolution over the current time-step
127  virtual void solve();
128 };
129 
130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
131 
132 } // End namespace clouds
133 } // End namespace Foam
134 
135 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
136 
137 #endif
138 
139 // ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
readOption
Enumeration defining the read options.
Definition: IOobject.H:117
const word & name() const
Return name.
Definition: IOobject.H:307
writeOption
Enumeration defining the write options.
Definition: IOobject.H:126
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
contextType
Context in which this cloud is used.
Definition: cloud.H:222
enum Foam::cloud::contextType context
const LagrangianMesh & mesh() const
Access the mesh.
Definition: cloud.H:276
Base class for clouds which are coupled to an incompressible fluid.
Base class for clouds in which particles are grouped into parcels.
Definition: grouped.H:51
Basic cloud with spherical, constant density, particles, grouped into parcels.
virtual ~kinematicParcel()
Destructor.
virtual bool reCalculateModified()
Do we need to re-calculate particles that are modified?
virtual tmp< LagrangianSubVectorField > dUdt(const LagrangianSubMesh &) const
Return the acceleration with which to do second-order tracking.
TypeName("kinematicParcel")
Run-time type information.
virtual void initialise(const bool predict)
Initialisation hook.
kinematicParcel(const polyMesh &mesh, const word &name, const contextType context, const IOobject::readOption readOption=IOobject::READ_IF_PRESENT, const IOobject::writeOption writeOption=IOobject::AUTO_WRITE)
Construct from a mesh and a name.
virtual void partition()
Partition hook.
virtual void calculate(const LagrangianSubScalarField &deltaT, const bool final)
Update the cloud properties.
virtual void solve()
Solve the cloud's evolution over the current time-step.
Base class for clouds of spherical particles which are coupled to a fluid.
Base class for clouds with spherical particles.
Definition: spherical.H:53
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:80
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.