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