FreeFOAM The Cross-Platform CFD Toolkit
kqRWallFunctionFvPatchField.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) 2008-2010 OpenCFD Ltd.
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::compressible::RASModels::kqRWallFunctionFvPatchField
26 
27 Description
28  Boundary condition for turbulence k, Q, and R when using wall functions.
29  Simply acts as a zero gradient condition.
30 
31 SourceFiles
32  kqRWallFunctionFvPatchField.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef compressiblekqRWallFunctionFvPatchField_H
37 #define compressiblekqRWallFunctionFvPatchField_H
38 
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 namespace compressible
46 {
47 namespace RASModels
48 {
49 
50 /*---------------------------------------------------------------------------*\
51  Class kqRWallFunctionFvPatchField Declaration
52 \*---------------------------------------------------------------------------*/
53 
54 template<class Type>
56 :
57  public zeroGradientFvPatchField<Type>
58 {
59 
60  // Private member functions
61 
62  //- Check the type of the patch
63  void checkType();
64 
65 
66 public:
67 
68  //- Runtime type information
69  TypeName("compressible::kqRWallFunction");
70 
71 
72  // Constructors
73 
74  //- Construct from patch and internal field
76  (
77  const fvPatch&,
79  );
80 
81  //- Construct from patch, internal field and dictionary
83  (
84  const fvPatch&,
86  const dictionary&
87  );
88 
89  //- Construct by mapping given
90  // kqRWallFunctionFvPatchField
91  // onto a new patch
93  (
95  const fvPatch&,
97  const fvPatchFieldMapper&
98  );
99 
100  //- Construct as copy
102  (
104  );
105 
106  //- Construct and return a clone
107  virtual tmp<fvPatchField<Type> > clone() const
108  {
109  return tmp<fvPatchField<Type> >
110  (
111  new kqRWallFunctionFvPatchField(*this)
112  );
113  }
114 
115  //- Construct as copy setting internal field reference
117  (
120  );
121 
122  //- Construct and return a clone setting internal field reference
123  virtual tmp<fvPatchField<Type> > clone
124  (
126  ) const
127  {
128  return tmp<fvPatchField<Type> >
129  (
130  new kqRWallFunctionFvPatchField(*this, iF)
131  );
132  }
133 
134 
135  // Member functions
136 
137  // Evaluation functions
138 
139  //- Evaluate the patchField
140  virtual void evaluate
141  (
142  const Pstream::commsTypes commsType=Pstream::Pstream::blocking
143  );
144 
145 
146  // I-O
147 
148  //- Write
149  void write(Ostream&) const;
150 };
151 
152 
153 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
154 
155 } // End namespace RASModels
156 } // End namespace compressible
157 } // End namespace Foam
158 
159 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
160 
161 #ifdef NoRepository
163 #endif
164 
165 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
166 
167 #endif
168 
169 // ************************ vim: set sw=4 sts=4 et: ************************ //