surfaceFilmRegionModel.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-2021 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::surfaceFilmRegionModel
26 
27 Description
28  Base class for surface film models
29 
30 SourceFiles
31  surfaceFilmRegionModel.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef surfaceFilmRegionModel_H
36 #define surfaceFilmRegionModel_H
37 
38 #include "surfaceFilmModel.H"
39 #include "singleLayerRegion.H"
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 namespace regionModels
46 {
47 namespace surfaceFilmModels
48 {
49 
50 /*---------------------------------------------------------------------------*\
51  Class surfaceFilmRegionModel Declaration
52 \*---------------------------------------------------------------------------*/
53 
55 :
56  public surfaceFilmModel,
57  public singleLayerRegion
58 {
59  // Private data
60 
61  //- Acceleration due to gravity [m/s^2]
62  const dimensionedVector& g_;
63 
64 
65 protected:
66 
67 
68  // Protected member functions
69 
70  //- Read control parameters from dictionary
71  virtual bool read();
72 
73 
74 public:
75 
76  //- Runtime type information
77  TypeName("surfaceFilmRegionModel");
78 
79 
80  // Constructors
81 
82  //- Construct from type name, mesh and gravity vector
84  (
85  const word& modelType,
86  const fvMesh& mesh,
87  const dimensionedVector& g,
88  const word& regionType
89  );
90 
91  //- Disallow default bitwise copy construction
93 
94 
95  //- Destructor
96  virtual ~surfaceFilmRegionModel();
97 
98 
99  // Member Functions
100 
101  // Access
102 
103  //- Return the acceleration due to gravity
104  inline const dimensionedVector& g() const;
105 
106  //- External hook to add sources to the film
107  virtual void addSources
108  (
109  const label patchi,
110  const label facei,
111  const scalar massSource,
112  const vector& momentumSource,
113  const scalar pressureSource,
114  const scalar energySource
115  ) = 0;
116 
117 
118  // Fields
119 
120  //- Return the film thickness [m]
121  virtual const volScalarField& delta() const = 0;
122 
123  //- Return the film coverage, 1 = covered, 0 = uncovered / []
124  virtual const volScalarField& coverage() const = 0;
125 
126  //- Return the film velocity [m/s]
127  virtual const volVectorField& U() const = 0;
128 
129  //- Return the film surface velocity [m/s]
130  virtual tmp<volVectorField::Internal> Us() const = 0;
131 
132  //- Return the film wall velocity [m/s]
133  virtual tmp<volVectorField::Internal> Uw() const = 0;
134 
135  //- Return the film density [kg/m^3]
136  virtual const volScalarField& rho() const = 0;
137 
138  //- Return the film surface tension [N/m]
139  virtual tmp<volScalarField> sigma() const = 0;
140 
141 
142  // Transfer fields - to the primary region
143 
144  //- Return mass transfer source - Eulerian phase only
145  virtual tmp<volScalarField> primaryMassTrans() const = 0;
146 
147  //- Return the film mass available for transfer
148  virtual const volScalarField& cloudMassTrans() const = 0;
149 
150  //- Return the parcel diameters originating from film
151  virtual const volScalarField& cloudDiameterTrans() const = 0;
152 
153 
154  // Evolution
155 
156  //- Main driver routing to evolve the region - calls other evolves
157  virtual void evolve();
158 
159 
160  // Member Operators
161 
162  //- Disallow default bitwise assignment
163  void operator=(const surfaceFilmRegionModel&) = delete;
164 };
165 
166 
167 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
168 
169 } // End namespace surfaceFilmModels
170 } // End namespace regionModels
171 } // End namespace Foam
172 
173 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
174 
175 #include "surfaceFilmRegionModelI.H"
176 
177 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
178 
179 #endif
180 
181 // ************************************************************************* //
virtual bool read()
Read control parameters from dictionary.
surfaceFilmRegionModel(const word &modelType, const fvMesh &mesh, const dimensionedVector &g, const word &regionType)
Construct from type name, mesh and gravity vector.
virtual void addSources(const label patchi, const label facei, const scalar massSource, const vector &momentumSource, const scalar pressureSource, const scalar energySource)=0
External hook to add sources to the film.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
Base class for surface film models.
Base class for single layer region models.
TypeName("surfaceFilmRegionModel")
Runtime type information.
virtual const volScalarField & rho() const =0
Return the film density [kg/m^3].
virtual tmp< volScalarField > primaryMassTrans() const =0
Return mass transfer source - Eulerian phase only.
dynamicFvMesh & mesh
A class for handling words, derived from string.
Definition: word.H:59
virtual void evolve()
Main driver routing to evolve the region - calls other evolves.
virtual tmp< volVectorField::Internal > Uw() const =0
Return the film wall velocity [m/s].
virtual const volScalarField & delta() const =0
Return the film thickness [m].
virtual const volVectorField & U() const =0
Return the film velocity [m/s].
const dimensionedVector & g() const
Return the acceleration due to gravity.
label patchi
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
virtual const volScalarField & coverage() const =0
Return the film coverage, 1 = covered, 0 = uncovered / [].
A class for managing temporary objects.
Definition: PtrList.H:53
virtual tmp< volVectorField::Internal > Us() const =0
Return the film surface velocity [m/s].
void operator=(const surfaceFilmRegionModel &)=delete
Disallow default bitwise assignment.
virtual tmp< volScalarField > sigma() const =0
Return the film surface tension [N/m].
Namespace for OpenFOAM.
virtual const volScalarField & cloudDiameterTrans() const =0
Return the parcel diameters originating from film.
virtual const volScalarField & cloudMassTrans() const =0
Return the film mass available for transfer.