drippingInjection.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | Copyright (C) 2011-2013 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::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 "cachedRandom.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 private:
65 
66  // Private member functions
67 
68  //- Disallow default bitwise copy construct
70 
71  //- Disallow default bitwise assignment
72  void operator=(const drippingInjection&);
73 
74 
75 protected:
76 
77  // Protected data
78 
79  //- Stable film thickness - drips only formed if thickness
80  // execeeds this threhold value
81  scalar deltaStable_;
82 
83  //- Number of particles per parcel
84  scalar particlesPerParcel_;
85 
86  //- Random number generator
88 
89  //- Parcel size PDF model
92 
93  //- Diameters of particles to inject into the dripping
95 
96 
97 public:
98 
99  //- Runtime type information
100  TypeName("drippingInjection");
101 
102 
103  // Constructors
104 
105  //- Construct from surface film model
107  (
109  const dictionary& dict
110  );
111 
112 
113  //- Destructor
114  virtual ~drippingInjection();
115 
116 
117  // Member Functions
118 
119  // Evolution
120 
121  //- Correct
122  virtual void correct
123  (
124  scalarField& availableMass,
125  scalarField& massToInject,
126  scalarField& diameterToInject
127  );
128 };
129 
130 
131 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
132 
133 } // End namespace surfaceFilmModels
134 } // End namespace regionModels
135 } // End namespace Foam
136 
137 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
138 
139 #endif
140 
141 // ************************************************************************* //
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
scalar particlesPerParcel_
Number of particles per parcel.
const surfaceFilmModel & owner() const
Return const access to the owner 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:88
const dictionary & dict() const
Return const access to the cloud dictionary.
Definition: subModelBase.C:110
const autoPtr< distributionModels::distributionModel > parcelDistribution_
Parcel size PDF model.
Random number generator.
Definition: cachedRandom.H:63
scalarList diameter_
Diameters of particles to inject into the dripping.
scalar deltaStable_
Stable film thickness - drips only formed if thickness.
TypeName("drippingInjection")
Runtime type information.
Base class for film injection models, handling mass transfer from the film.