tabulatedWallFunction.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) 2011 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::tabulatedWallFunctions::tabulatedWallFunction
26 
27 Description
28  Base class for models that generate tabulated wall function data.
29 
30 SourceFiles
31  tabulatedWallFunction.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef tabulatedWallFunction_H
36 #define tabulatedWallFunction_H
37 
38 #include "dictionary.H"
39 #include "polyMesh.H"
40 #include "runTimeSelectionTables.H"
41 #include "Switch.H"
43 
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 
46 namespace Foam
47 {
48 namespace tabulatedWallFunctions
49 {
50 
51 /*---------------------------------------------------------------------------*\
52  Class tabulatedWallFunction Declaration
53 \*---------------------------------------------------------------------------*/
54 
56 {
57 protected:
58 
59  // Proteced data
60 
61  //- Main dictionary
62  const dictionary dict_;
63 
64  //- Reference to the mesh database
65  const polyMesh& mesh_;
66 
67  //- Coefficients dictionary
68  const dictionary coeffDict_;
69 
70  //- Name of inverted table
72 
73  //- Inverted table
75 
76 
77 public:
78 
79  //- Run-time type information
80  TypeName("tabulatedWallFunction");
81 
82  //- Declare runtime constructor selection table
84  (
85  autoPtr,
87  dictionary,
88  (
89  const dictionary& dict,
90  const polyMesh& mesh
91  ),
92  (dict, mesh)
93  );
94 
95  //- Constructor
97  (
98  const dictionary& dict,
99  const polyMesh& mesh,
100  const word& name
101  );
102 
103  //- Destructor
104  virtual ~tabulatedWallFunction();
105 
106 
107  //- Selector
109  (
110  const dictionary& dict,
111  const polyMesh& mesh
112  );
113 
114 
115  // Member Functions
116 
117  // Access
118 
119  //- Return the inverted table name
120  inline const word& invertedTableName() const;
121 
122  //- Return the inverted table
124  invertedTable() const;
125 
126 
127  // I-O
128 
129  //- Write
130  virtual void write();
131 };
132 
133 
134 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
135 
136 } // End namespace tabulatedWallFunctions
137 } // End namespace Foam
138 
139 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
140 
141 #include "tabulatedWallFunctionI.H"
142 
143 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
144 
145 #endif
146 
147 // ************************************************************************* //
const polyMesh & mesh_
Reference to the mesh database.
dictionary dict
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
tabulatedWallFunction(const dictionary &dict, const polyMesh &mesh, const word &name)
Constructor.
const dictionary coeffDict_
Coefficients dictionary.
Base class for models that generate tabulated wall function data.
const uniformInterpolationTable< scalar > & invertedTable() const
Return the inverted table.
static autoPtr< tabulatedWallFunction > New(const dictionary &dict, const polyMesh &mesh)
Selector.
dynamicFvMesh & mesh
A class for handling words, derived from string.
Definition: word.H:59
word name(const complex &)
Return a string representation of a complex.
Definition: complex.C:47
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:53
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:74
declareRunTimeSelectionTable(autoPtr, tabulatedWallFunction, dictionary,(const dictionary &dict, const polyMesh &mesh),(dict, mesh))
Declare runtime constructor selection table.
Macros to ease declaration of run-time selection tables.
uniformInterpolationTable< scalar > invertedTable_
Inverted table.
TypeName("tabulatedWallFunction")
Run-time type information.
Namespace for OpenFOAM.
const word & invertedTableName() const
Return the inverted table name.