dripping.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-2023 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::filmEjectionModels::dripping
26 
27 Description
28  Dripping film to cloud ejection transfer model
29 
30  On an inverted surface if the film thickness is sufficient to generate a
31  valid parcel the equivalent mass is removed from the film and transferred to
32  the cloud as a parcel containing droplets with a diameter obtained from
33  the specified parcelDistribution.
34 
35 Usage
36  Example usage:
37  \verbatim
38  filmCloudTransfer
39  {
40  type filmCloudTransfer;
41 
42  ejection
43  {
44  model dripping;
45 
46  deltaStable 5e-4;
47 
48  minParticlesPerParcel 10;
49 
50  parcelDistribution
51  {
52  type RosinRammler;
53  Q 0;
54  min 1e-3;
55  max 2e-3;
56  d 7.5e-05;
57  n 0.5;
58  }
59  }
60  }
61  \endverbatim
62 
63 SourceFiles
64  dripping.C
65 
66 \*---------------------------------------------------------------------------*/
67 
68 #ifndef dripping_H
69 #define dripping_H
70 
71 #include "ejectionModel.H"
72 #include "distribution.H"
73 #include "Random.H"
74 
75 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
76 
77 namespace Foam
78 {
79 namespace filmEjectionModels
80 {
81 
82 /*---------------------------------------------------------------------------*\
83  Class dripping Declaration
84 \*---------------------------------------------------------------------------*/
85 
86 class dripping
87 :
88  public ejectionModel
89 {
90  // Private Member Data
91 
92  //- Stable film thickness - drips only formed if thickness
93  // exceeds this threshold value
94  scalar deltaStable_;
95 
96  //- Minimum number of droplets per parcel
97  scalar minParticlesPerParcel_;
98 
99  //- Random number generator
100  Random rndGen_;
101 
102  //- Parcel size PDF model
103  const autoPtr<distribution> parcelDistribution_;
104 
105 
106 public:
107 
108  //- Runtime type information
109  TypeName("dripping");
110 
111 
112  // Constructors
113 
114  //- Construct from dictionary and film model
115  dripping
116  (
117  const dictionary& dict,
118  const solvers::isothermalFilm& film
119  );
120 
121  //- Disallow default bitwise copy construction
122  dripping(const dripping&) = delete;
123 
124 
125  //- Destructor
126  virtual ~dripping();
127 
128 
129  // Member Functions
130 
131  // Evolution
132 
133  //- Correct
134  virtual void correct();
135 
136 
137  // Member Operators
138 
139  //- Disallow default bitwise assignment
140  void operator=(const dripping&) = delete;
141 };
142 
143 
144 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
145 
146 } // End namespace filmEjectionModels
147 } // End namespace Foam
148 
149 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
150 
151 #endif
152 
153 // ************************************************************************* //
Random number generator.
Definition: Random.H:58
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: autoPtr.H:51
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:160
Dripping film to cloud ejection transfer model.
Definition: dripping.H:88
virtual ~dripping()
Destructor.
Definition: dripping.C:76
TypeName("dripping")
Runtime type information.
void operator=(const dripping &)=delete
Disallow default bitwise assignment.
virtual void correct()
Correct.
Definition: dripping.C:82
dripping(const dictionary &dict, const solvers::isothermalFilm &film)
Construct from dictionary and film model.
Definition: dripping.C:44
Solver module for flow of compressible isothermal liquid films.
Namespace for OpenFOAM.
dictionary dict