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-2013 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  (
96  "tmp<DimensionedField<scalar, volMesh> > surfaceFilmModel::Srho() const"
97  )
98 
100 }
101 
102 
105 {
107  (
108  "tmp<DimensionedField<scalar, volMesh> > surfaceFilmModel::Srho"
109  "(const label) const"
110  )
111 
113 }
114 
115 
117 {
119  (
120  "tmp<DimensionedField<scalar, volMesh> > surfaceFilmModel::Sh() const"
121  )
122 
124 }
125 
126 
127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
128 
129 } // End namespace surfaceFilmModels
130 } // End namespace regionModels
131 } // End namespace Foam
132 
133 // ************************************************************************* //
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
virtual tmp< DimensionedField< scalar, volMesh > > Srho() const
Return total mass source - Eulerian phase only.
defineTypeNameAndDebug(kinematicSingleLayer, 0)
Switch active_
Active flag.
Definition: regionModel.H:93
const dimensionedVector & g() const
Return the accleration due to gravity.
A class for handling words, derived from string.
Definition: word.H:59
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
dynamicFvMesh & mesh
virtual bool read()
Read control parameters from dictionary.
Namespace for OpenFOAM.
virtual scalar CourantNumber() const
Courant number evaluation.
virtual bool read()
Read control parameters from dictionary.
defineRunTimeSelectionTable(filmThermoModel, dictionary)
#define notImplemented(functionName)
Issue a FatalErrorIn for a function not currently implemented.
Definition: error.H:356
virtual tmp< DimensionedField< scalar, volMesh > > Sh() const
Return enthalpy source - Eulerian phase only.
A class for managing temporary objects.
Definition: PtrList.H:118
const dimensionedVector & g_
Acceleration due to gravity [m/s2].