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-2017 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 
44 
45 // * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
46 
48 {
50  {
51  return true;
52  }
53  else
54  {
55  return false;
56  }
57 }
58 
59 
60 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
61 
62 surfaceFilmModel::surfaceFilmModel
63 (
64  const word& modelType,
65  const fvMesh& mesh,
66  const dimensionedVector& g,
67  const word& regionType
68 )
69 :
70  singleLayerRegion(mesh, regionType, modelType),
71  g_(g)
72 {
73  if (active_)
74  {
75  read();
76  }
77 }
78 
79 
80 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
81 
83 {}
84 
85 
86 // * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
87 
88 Foam::scalar surfaceFilmModel::CourantNumber() const
89 {
90  return ROOTVSMALL;
91 }
92 
93 
95 {
97 
98  return tmp<volScalarField::Internal>(nullptr);
99 }
100 
101 
104 {
106 
107  return tmp<volScalarField::Internal>(nullptr);
108 }
109 
110 
112 {
114 
115  return tmp<volScalarField::Internal>(nullptr);
116 }
117 
118 
119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
120 
121 } // End namespace surfaceFilmModels
122 } // End namespace regionModels
123 } // End namespace Foam
124 
125 // ************************************************************************* //
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
const dimensionedVector & g() const
Return the accleration due to gravity.
const dimensionedVector & g_
Acceleration due to gravity [m/s2].
dynamicFvMesh & mesh
virtual tmp< volScalarField::Internal > Sh() const
Return enthalpy source - Eulerian phase only.
A class for handling words, derived from string.
Definition: word.H:59
const dimensionSet dimTemperature(0, 0, 0, 1, 0, 0, 0)
Definition: dimensionSets.H:52
virtual bool read()
Read control parameters from dictionary.
Switch active_
Active flag.
Definition: regionModel.H:90
virtual scalar CourantNumber() const
Courant number evaluation.
defineRunTimeSelectionTable(filmThermoModel, dictionary)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
virtual tmp< volScalarField::Internal > Srho() const
Return total mass source - Eulerian phase only.
A class for managing temporary objects.
Definition: PtrList.H:53
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Definition: error.H:366
defineTypeNameAndDebug(kinematicSingleLayer, 0)
Namespace for OpenFOAM.
static const dimensionedScalar Tref
Reference temperature for enthalpy.
virtual bool read()
Read control parameters from dictionary.