All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
drippingInjection.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-2019 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::regionModels::surfaceFilmModels::drippingInjection
26 
27 Description
28  Film Dripping mass transfer model.
29 
30  If the film mass exceeds that needed to generate a valid parcel, the
31  equivalent mass is removed from the film.
32 
33  New parcel diameters are sampled from a PDF.
34 
35 SourceFiles
36  drippingInjection.C
37 
38 \*---------------------------------------------------------------------------*/
39 
40 #ifndef drippingInjection_H
41 #define drippingInjection_H
42 
43 #include "injectionModel.H"
44 #include "distributionModel.H"
45 #include "Random.H"
46 
47 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48 
49 namespace Foam
50 {
51 namespace regionModels
52 {
53 namespace surfaceFilmModels
54 {
55 
56 /*---------------------------------------------------------------------------*\
57  Class drippingInjection Declaration
58 \*---------------------------------------------------------------------------*/
59 
61 :
62  public injectionModel
63 {
64 protected:
65 
66  // Protected data
67 
68  //- Stable film thickness - drips only formed if thickness
69  // exceeds this threshold value
70  scalar deltaStable_;
71 
72  //- Number of particles per parcel
73  scalar particlesPerParcel_;
74 
75  //- Random number generator
77 
78  //- Parcel size PDF model
81 
82  //- Diameters of particles to inject into the dripping
84 
85 
86 public:
87 
88  //- Runtime type information
89  TypeName("drippingInjection");
90 
91 
92  // Constructors
93 
94  //- Construct from surface film model
96  (
98  const dictionary& dict
99  );
100 
101  //- Disallow default bitwise copy construction
102  drippingInjection(const drippingInjection&) = delete;
103 
104 
105  //- Destructor
106  virtual ~drippingInjection();
107 
108 
109  // Member Functions
110 
111  // Evolution
112 
113  //- Correct
114  virtual void correct
115  (
116  scalarField& availableMass,
117  scalarField& massToInject,
118  scalarField& diameterToInject
119  );
120 
121 
122  // Member Operators
123 
124  //- Disallow default bitwise assignment
125  void operator=(const drippingInjection&) = delete;
126 };
127 
128 
129 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
130 
131 } // End namespace surfaceFilmModels
132 } // End namespace regionModels
133 } // End namespace Foam
134 
135 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
136 
137 #endif
138 
139 // ************************************************************************* //
TypeName("drippingInjection")
Runtime type information.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:158
const dictionary & dict() const
Return const access to the cloud dictionary.
Definition: subModelBase.C:110
void operator=(const drippingInjection &)=delete
Disallow default bitwise assignment.
const surfaceFilmRegionModel & film() const
Return const access to the film surface film model.
scalar deltaStable_
Stable film thickness - drips only formed if thickness.
scalar particlesPerParcel_
Number of particles per parcel.
const autoPtr< distributionModel > parcelDistribution_
Parcel size PDF model.
scalarList diameter_
Diameters of particles to inject into the dripping.
Random number generator.
Definition: Random.H:57
Base class for film injection models, handling mass transfer from the film.
drippingInjection(surfaceFilmRegionModel &film, const dictionary &dict)
Construct from surface film model.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:52
Namespace for OpenFOAM.