All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
kinematicSingleLayerI.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-2020 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 \*---------------------------------------------------------------------------*/
25 
26 #include "filmThermoModel.H"
27 #include "surfaceInterpolate.H"
28 #include "fvcSurfaceIntegrate.H"
29 
30 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
31 
32 namespace Foam
33 {
34 namespace regionModels
35 {
36 namespace surfaceFilmModels
37 {
38 
39 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
40 
42 {
43  return deltaSmall_;
44 }
45 
46 
48 {
49  return mu_;
50 }
51 
52 
54 {
55  return sigma_;
56 }
57 
58 
60 {
61  return delta_;
62 }
63 
64 
66 {
67  return alpha_;
68 }
69 
70 
72 {
73  return rho_;
74 }
75 
76 
78 {
79  return U_;
80 }
81 
82 
84 {
85  return Us_;
86 }
87 
88 
90 {
91  return Uw_;
92 }
93 
94 
96 {
97  return phi_;
98 }
99 
100 
102 {
103  return phiU_;
104 }
105 
106 
107 inline const volScalarField::Internal&
109 {
110  return continuityErr_;
111 }
112 
113 
115 {
116  return coverage_;
117 }
118 
119 
121 {
122  return USpPrimary_;
123 }
124 
125 
127 {
128  return pSpPrimary_;
129 }
130 
131 
133 {
134  return rhoSpPrimary_;
135 }
136 
137 
139 {
140  return USp_;
141 }
142 
143 
145 {
146  return pSp_;
147 }
148 
149 
151 {
152  return rhoSp_;
153 }
154 
155 
157 {
158  return USp_;
159 }
160 
161 
163 {
164  return pSp_;
165 }
166 
167 
169 {
170  return rhoSp_;
171 }
172 
173 
175 {
176  return UPrimary_;
177 }
178 
179 
181 {
182  return pPrimary_;
183 }
184 
185 
187 {
188  return rhoPrimary_;
189 }
190 
191 
193 {
194  return muPrimary_;
195 }
196 
197 
199 {
200  return filmThermo_();
201 }
202 
203 
205 {
206  return injection_;
207 }
208 
209 
211 {
212  return transfer_;
213 }
214 
215 
216 inline const filmMomentumTransportModel&
218 {
219  return turbulence_();
220 }
221 
222 
224 {
225  return rho_()*delta_()*magSf();
226 }
227 
228 
230 {
231  return rhoSp_*magSf()*time().deltaT();
232 }
233 
234 
235 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
236 
237 } // End namespace surfaceFilmModels
238 } // End namespace regionModels
239 } // End namespace Foam
240 
241 // ************************************************************************* //
const filmMomentumTransportModel & turbulence() const
Turbulence.
autoPtr< filmThermoModel > filmThermo_
Film thermo model.
List container for film injection models.
tmp< volScalarField::Internal > mass() const
Return the current film mass.
Surface integrate surfaceField creating a volField. Surface sum a surfaceField creating a volField...
const volVectorField::Internal & Uw() const
Return the film wall velocity [m/s].
const volVectorField & U() const
Return the film velocity [m/s].
volScalarField::Internal continuityErr_
Current continuity error caused by delta_ bounding.
volVectorField::Internal USp_
Momentum [kg/m/s^2].
volVectorField::Internal Us_
Velocity - surface [m/s].
volScalarField coverage_
Film coverage indicator, 1 = covered, 0 = uncovered [].
volVectorField USpPrimary_
Primary region tangential momentum source [kg m/s].
const Time & time() const
Return the reference to the time database.
Definition: regionModelI.H:37
const volScalarField & rhoPrimary() const
Density [kg/m^3].
volScalarField::Internal & rhoSp()
Mass [kg/m^2/s].
const volScalarField & muPrimary() const
Viscosity [Pa.s].
const filmThermoModel & filmThermo() const
Film thermo.
const volVectorField & UPrimary() const
Velocity [m/s].
const volScalarField & mu() const
Return const access to the dynamic viscosity [Pa.s].
const surfaceScalarField & phiU() const
Return the film velocity flux [m^3/s].
const dimensionedScalar & deltaSmall() const
Return small delta.
const volScalarField & coverage() const
Return the film coverage, 1 = covered, 0 = uncovered [].
const surfaceScalarField & phi() const
Return the film flux [kg m/s].
const volScalarField::Internal & continuityErr() const
Return the current continuity error.
volScalarField pSpPrimary_
Primary region normal momentum source (pressure) [kg m/s].
volVectorField::Internal & USp()
Momentum [kg/m/s^2].
const volScalarField & pPrimary() const
Pressure [Pa].
List container for film transfer models.
const volScalarField & delta() const
Return const access to the film thickness [m].
transferModelList transfer_
Transfer with the continuous phase.
const volScalarField::Internal & magSf() const
Return the face area magnitudes [m^2].
const volVectorField::Internal & Us() const
Return the film surface velocity [m/s].
const volScalarField & sigma() const
Return const access to the surface tension [kg/s^2].
volScalarField alpha_
Film volume fraction in the cell layer [].
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
volScalarField rhoSpPrimary_
Primary region mass source [kg].
surfaceScalarField phiU_
Film velocity flux [m^3/s].
const volScalarField & rho() const
Return the film density [kg/m^3].
volVectorField::Internal Uw_
Velocity - wall [m/s].
A class for managing temporary objects.
Definition: PtrList.H:53
autoPtr< filmMomentumTransportModel > turbulence_
Turbulence model.
dimensionedScalar deltaT() const
Return time step.
Definition: TimeStateI.H:53
const volScalarField & alpha() const
Return const access to the film volume fraction [].
Namespace for OpenFOAM.
tmp< volScalarField::Internal > deltaMass() const
Return the change in film mass due to sources/sinks.