surfaceFilmModel.C
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-2016 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 "surfaceFilmModel.H"
27 #include "fvMesh.H"
28 
29 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
30 
31 namespace Foam
32 {
33 namespace regionModels
34 {
35 namespace surfaceFilmModels
36 {
37 
38 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
39 
40 defineTypeNameAndDebug(surfaceFilmModel, 0);
41 defineRunTimeSelectionTable(surfaceFilmModel, mesh);
42 
43 // * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
44 
46 {
48  {
49  return true;
50  }
51  else
52  {
53  return false;
54  }
55 }
56 
57 
58 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
59 
60 surfaceFilmModel::surfaceFilmModel
61 (
62  const word& modelType,
63  const fvMesh& mesh,
64  const dimensionedVector& g,
65  const word& regionType
66 )
67 :
68  singleLayerRegion(mesh, regionType, modelType),
69  g_(g)
70 {
71  if (active_)
72  {
73  read();
74  }
75 }
76 
77 
78 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
79 
81 {}
82 
83 
84 // * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
85 
86 Foam::scalar surfaceFilmModel::CourantNumber() const
87 {
88  return ROOTVSMALL;
89 }
90 
91 
93 {
95 
97 }
98 
99 
102 {
104 
106 }
107 
108 
110 {
112 
114 }
115 
116 
117 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 
119 } // End namespace surfaceFilmModels
120 } // End namespace regionModels
121 } // End namespace Foam
122 
123 // ************************************************************************* //
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
virtual tmp< DimensionedField< scalar, volMesh > > Sh() const
Return enthalpy source - Eulerian phase only.
const dimensionedVector & g() const
Return the accleration due to gravity.
virtual scalar CourantNumber() const
Courant number evaluation.
const dimensionedVector & g_
Acceleration due to gravity [m/s2].
dynamicFvMesh & mesh
A class for handling words, derived from string.
Definition: word.H:59
virtual tmp< DimensionedField< scalar, volMesh > > Srho() const
Return total mass source - Eulerian phase only.
virtual bool read()
Read control parameters from dictionary.
Switch active_
Active flag.
Definition: regionModel.H:93
defineRunTimeSelectionTable(filmThermoModel, dictionary)
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
A class for managing temporary objects.
Definition: PtrList.H:54
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Definition: error.H:366
defineTypeNameAndDebug(kinematicSingleLayer, 0)
Namespace for OpenFOAM.
virtual bool read()
Read control parameters from dictionary.