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 | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2011 OpenFOAM Foundation
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 Class
27  Foam::tabulatedWallFunctions::tabulatedWallFunction
28 
29 Description
30  Base class for models that generate tabulated wall function data.
31 
32 SourceFiles
33  tabulatedWallFunction.C
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef tabulatedWallFunction_H
38 #define tabulatedWallFunction_H
39 
40 #include "dictionary.H"
41 #include "polyMesh.H"
42 #include "runTimeSelectionTables.H"
43 #include "Switch.H"
45 
46 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 
48 namespace Foam
49 {
50 namespace tabulatedWallFunctions
51 {
52 
53 /*---------------------------------------------------------------------------*\
54  Class tabulatedWallFunction Declaration
55 \*---------------------------------------------------------------------------*/
56 
58 {
59 protected:
60 
61  // Protected data
62 
63  //- Main dictionary
64  const dictionary dict_;
65 
66  //- Reference to the mesh database
67  const polyMesh& mesh_;
68 
69  //- Coefficients dictionary
70  const dictionary coeffDict_;
71 
72  //- Name of inverted table
74 
75  //- Inverted table
77 
78 
79 public:
80 
81  //- Run-time type information
82  TypeName("tabulatedWallFunction");
83 
84  //- Declare runtime constructor selection table
86  (
87  autoPtr,
89  dictionary,
90  (
91  const dictionary& dict,
92  const polyMesh& mesh
93  ),
94  (dict, mesh)
95  );
96 
97  //- Constructor
99  (
100  const dictionary& dict,
101  const polyMesh& mesh,
102  const word& name
103  );
104 
105  //- Destructor
106  virtual ~tabulatedWallFunction();
107 
108 
109  //- Selector
111  (
112  const dictionary& dict,
113  const polyMesh& mesh
114  );
115 
116 
117  // Member Functions
118 
119  // Access
120 
121  //- Return the inverted table name
122  inline const word& invertedTableName() const;
123 
124  //- Return the inverted table
126  invertedTable() const;
127 
128 
129  // I-O
130 
131  //- Write
132  virtual void write();
133 };
134 
135 
136 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
137 
138 } // End namespace tabulatedWallFunctions
139 } // End namespace Foam
140 
141 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
142 
143 #include "tabulatedWallFunctionI.H"
144 
145 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
146 
147 #endif
148 
149 // ************************************************************************* //
Foam::tabulatedWallFunctions::tabulatedWallFunction::mesh_
const polyMesh & mesh_
Reference to the mesh database.
Definition: tabulatedWallFunction.H:66
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
Foam::uniformInterpolationTable< scalar >
Foam::tabulatedWallFunctions::tabulatedWallFunction::dict_
const dictionary dict_
Main dictionary.
Definition: tabulatedWallFunction.H:63
uniformInterpolationTable.H
Foam::tabulatedWallFunctions::tabulatedWallFunction::invertedTableName
const word & invertedTableName() const
Return the inverted table name.
Definition: tabulatedWallFunctionI.H:33
polyMesh.H
Foam::polyMesh
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:77
Foam::tabulatedWallFunctions::tabulatedWallFunction::invertedTableName_
word invertedTableName_
Name of inverted table.
Definition: tabulatedWallFunction.H:72
Foam::tabulatedWallFunctions::tabulatedWallFunction::invertedTable
const uniformInterpolationTable< scalar > & invertedTable() const
Return the inverted table.
Definition: tabulatedWallFunctionI.H:40
Foam::tabulatedWallFunctions::tabulatedWallFunction::New
static autoPtr< tabulatedWallFunction > New(const dictionary &dict, const polyMesh &mesh)
Selector.
Foam::tabulatedWallFunctions::tabulatedWallFunction::coeffDict_
const dictionary coeffDict_
Coefficients dictionary.
Definition: tabulatedWallFunction.H:69
Switch.H
Foam::tabulatedWallFunctions::tabulatedWallFunction::tabulatedWallFunction
tabulatedWallFunction(const dictionary &dict, const polyMesh &mesh, const word &name)
Constructor.
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:6
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::tabulatedWallFunctions::tabulatedWallFunction::TypeName
TypeName("tabulatedWallFunction")
Run-time type information.
Foam::autoPtr
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: HashPtrTable.H:53
runTimeSelectionTables.H
Macros to ease declaration of run-time selection tables.
Foam::tabulatedWallFunctions::tabulatedWallFunction::~tabulatedWallFunction
virtual ~tabulatedWallFunction()
Destructor.
dictionary.H
Foam::name
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
Definition: exprTraits.C:59
tabulatedWallFunctionI.H
Foam::tabulatedWallFunctions::tabulatedWallFunction::declareRunTimeSelectionTable
declareRunTimeSelectionTable(autoPtr, tabulatedWallFunction, dictionary,(const dictionary &dict, const polyMesh &mesh),(dict, mesh))
Declare runtime constructor selection table.
Foam::tabulatedWallFunctions::tabulatedWallFunction::invertedTable_
uniformInterpolationTable< scalar > invertedTable_
Inverted table.
Definition: tabulatedWallFunction.H:75
Foam::tabulatedWallFunctions::tabulatedWallFunction::write
virtual void write()
Write.
Foam::tabulatedWallFunctions::tabulatedWallFunction
Base class for models that generate tabulated wall function data.
Definition: tabulatedWallFunction.H:56