ejectionModel.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) 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::ejectionModel
26 
27 Description
28  Abstract base class for film to cloud ejection transfer models
29 
30 SourceFiles
31  ejectionModel.C
32  ejectionModelNew.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef ejectionModel_H
37 #define ejectionModel_H
38 
39 #include "isothermalFilm.H"
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 
46 /*---------------------------------------------------------------------------*\
47  Class ejectionModel Declaration
48 \*---------------------------------------------------------------------------*/
49 
50 class ejectionModel
51 {
52 
53 protected:
54 
55  // Protected Member Data
56 
57  //- Reference to the film
59 
60  //- Cached ejection rate (transfer to cloud)
62 
63  //- Cached diameter of ejected droplets
65 
66 
67 public:
68 
69  //- Runtime type information
70  TypeName("ejectionModel");
71 
72 
73  // Declare run-time constructor selection table
74 
76  (
77  autoPtr,
79  dictionary,
80  (
81  const dictionary& dict,
82  const solvers::isothermalFilm& film
83  ),
84  (dict, film)
85  );
86 
87 
88  // Constructors
89 
90  //- Construct from dictionary and film model
92  (
93  const dictionary& dict,
94  const solvers::isothermalFilm& film
95  );
96 
97  //- Disallow default bitwise copy construction
98  ejectionModel(const ejectionModel&) = delete;
99 
100 
101  // Selector
103  (
104  const dictionary& dict,
105  const solvers::isothermalFilm& film
106  );
107 
108 
109  //- Destructor
110  virtual ~ejectionModel();
111 
112 
113  // Member Functions
114 
115  //- Return ejection rate (transfer to cloud)
116  const volScalarField::Internal& rate() const
117  {
118  return rate_;
119  }
120 
121  //- Return diameter of ejected droplets
122  const volScalarField::Internal& diameter() const
123  {
124  return diameter_;
125  }
126 
127  //- Correct
128  virtual void correct() = 0;
129 
130 
131  // Mesh changes
132 
133  //- Update topology using the given map
134  virtual void topoChange(const polyTopoChangeMap&);
135 
136  //- Update from another mesh using the given map
137  virtual void mapMesh(const polyMeshMap&);
138 
139  //- Redistribute or update using the given distribution map
140  virtual void distribute(const polyDistributionMap&);
141 
142  //- Update for mesh motion
143  virtual bool movePoints();
144 
145 
146  // Member Operators
147 
148  //- Disallow default bitwise assignment
149  void operator=(const ejectionModel&) = delete;
150 };
151 
152 
153 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
154 
155 } // End namespace Foam
156 
157 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
158 
159 #endif
160 
161 // ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
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
virtual bool movePoints()
Update for mesh motion.
Definition: ejectionModel.C:99
virtual ~ejectionModel()
Destructor.
Definition: ejectionModel.C:69
const volScalarField::Internal & rate() const
Return ejection rate (transfer to cloud)
const solvers::isothermalFilm & film_
Reference to the film.
Definition: ejectionModel.H:57
static autoPtr< ejectionModel > New(const dictionary &dict, const solvers::isothermalFilm &film)
virtual void topoChange(const polyTopoChangeMap &)
Update topology using the given map.
Definition: ejectionModel.C:75
virtual void distribute(const polyDistributionMap &)
Redistribute or update using the given distribution map.
Definition: ejectionModel.C:91
ejectionModel(const dictionary &dict, const solvers::isothermalFilm &film)
Construct from dictionary and film model.
Definition: ejectionModel.C:40
volScalarField::Internal diameter_
Cached diameter of ejected droplets.
Definition: ejectionModel.H:63
virtual void correct()=0
Correct.
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
Definition: ejectionModel.C:83
TypeName("ejectionModel")
Runtime type information.
void operator=(const ejectionModel &)=delete
Disallow default bitwise assignment.
volScalarField::Internal rate_
Cached ejection rate (transfer to cloud)
Definition: ejectionModel.H:60
declareRunTimeSelectionTable(autoPtr, ejectionModel, dictionary,(const dictionary &dict, const solvers::isothermalFilm &film),(dict, film))
const volScalarField::Internal & diameter() const
Return diameter of ejected droplets.
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
Class containing mesh-to-mesh mapping information.
Definition: polyMeshMap.H:51
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
Solver module for flow of compressible isothermal liquid films.
Namespace for OpenFOAM.
dictionary dict