filmTurbulenceModel.H
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) 2013-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 Class
25  Foam::regionModels::surfaceFilmModels::filmTurbulenceModel
26 
27 Description
28  Base class for film turbulence models
29 
30 SourceFiles
31  filmTurbulenceModel.C
32  filmTurbulenceModelNew.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef filmTurbulenceModel_H
37 #define filmTurbulenceModel_H
38 
39 #include "filmSubModelBase.H"
40 #include "runTimeSelectionTables.H"
41 #include "fvMatricesFwd.H"
42 #include "volFieldsFwd.H"
43 
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 
46 namespace Foam
47 {
48 namespace regionModels
49 {
50 namespace surfaceFilmModels
51 {
52 
53 /*---------------------------------------------------------------------------*\
54  Class filmTurbulenceModel Declaration
55 \*---------------------------------------------------------------------------*/
56 
58 :
59  public filmSubModelBase
60 {
61 private:
62 
63  // Private Member Functions
64 
65  //- Disallow default bitwise copy construct
67 
68  //- Disallow default bitwise assignment
69  void operator=(const filmTurbulenceModel&);
70 
71 
72 public:
73 
74  //- Runtime type information
75  TypeName("filmTurbulenceModel");
76 
77 
78  // Declare runtime constructor selection table
79 
81  (
82  autoPtr,
84  dictionary,
85  (
87  const dictionary& dict
88  ),
89  (film, dict)
90  );
91 
92  // Constructors
93 
94  //- Construct null
96 
97  //- Construct from type name, dictionary and surface film model
99  (
100  const word& modelType,
101  surfaceFilmModel& film,
102  const dictionary& dict
103  );
104 
105 
106  // Selectors
107 
108  //- Return a reference to the selected injection model
110  (
111  surfaceFilmModel& film,
112  const dictionary& dict
113  );
114 
115 
116  //- Destructor
117  virtual ~filmTurbulenceModel();
118 
119 
120  // Member Functions
121 
122  // Evolution
123 
124  //- Return the film surface velocity
125  virtual tmp<volVectorField> Us() const = 0;
126 
127  //- Return the film turbulence viscosity
128  virtual tmp<volScalarField> mut() const = 0;
129 
130  //- Correct/update the model
131  virtual void correct() = 0;
132 
133  //- Return the source for the film momentum equation
134  virtual tmp<fvVectorMatrix> Su(volVectorField& U) const = 0;
135 };
136 
137 
138 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
139 
140 } // End namespace surfaceFilmModels
141 } // End namespace regionModels
142 } // End namespace Foam
143 
144 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
145 
146 #endif
147 
148 // ************************************************************************* //
virtual tmp< fvVectorMatrix > Su(volVectorField &U) const =0
Return the source for the film momentum equation.
const surfaceFilmModel & film() const
Return const access to the film surface film model.
U
Definition: pEqn.H:83
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
virtual tmp< volVectorField > Us() const =0
Return the film surface velocity.
const dictionary & dict() const
Return const access to the cloud dictionary.
Definition: subModelBase.C:110
declareRunTimeSelectionTable(autoPtr, filmTurbulenceModel, dictionary,(surfaceFilmModel &film, const dictionary &dict),(film, dict))
virtual void correct()=0
Correct/update the model.
A class for handling words, derived from string.
Definition: word.H:59
TypeName("filmTurbulenceModel")
Runtime type information.
const word & modelType() const
Return const access to the sub-model type.
Definition: subModelBase.C:122
virtual tmp< volScalarField > mut() const =0
Return the film turbulence viscosity.
Forward declarations of fvMatrix specializations.
static autoPtr< filmTurbulenceModel > New(surfaceFilmModel &film, const dictionary &dict)
Return a reference to the selected injection model.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:52
Macros to ease declaration of run-time selection tables.
A class for managing temporary objects.
Definition: PtrList.H:53
Namespace for OpenFOAM.