1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2008-2009 OpenCFD Ltd.
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
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 the
13 Free Software Foundation; either version 2 of the License, or (at your
14 option) any later version.
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
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM; if not, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 Foam::compressible::RASModels::kqRWallFunctionFvPatchField
29 Boundary condition for turbulence k, Q, and R when using wall functions.
30 Simply acts as a zero gradient condition.
33 kqRWallFunctionFvPatchField.C
35 \*---------------------------------------------------------------------------*/
37 #ifndef compressiblekqRWallFunctionFvPatchField_H
38 #define compressiblekqRWallFunctionFvPatchField_H
40 #include "zeroGradientFvPatchField.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 namespace compressible
51 /*---------------------------------------------------------------------------*\
52 Class kqRWallFunctionFvPatchField Declaration
53 \*---------------------------------------------------------------------------*/
56 class kqRWallFunctionFvPatchField
58 public zeroGradientFvPatchField<Type>
61 // Private member functions
63 //- Check the type of the patch
69 //- Runtime type information
70 TypeName("compressible::kqRWallFunction");
75 //- Construct from patch and internal field
76 kqRWallFunctionFvPatchField
79 const DimensionedField<Type, volMesh>&
82 //- Construct from patch, internal field and dictionary
83 kqRWallFunctionFvPatchField
86 const DimensionedField<Type, volMesh>&,
90 //- Construct by mapping given
91 // kqRWallFunctionFvPatchField
93 kqRWallFunctionFvPatchField
95 const kqRWallFunctionFvPatchField&,
97 const DimensionedField<Type, volMesh>&,
98 const fvPatchFieldMapper&
101 //- Construct as copy
102 kqRWallFunctionFvPatchField
104 const kqRWallFunctionFvPatchField&
107 //- Construct and return a clone
108 virtual tmp<fvPatchField<Type> > clone() const
110 return tmp<fvPatchField<Type> >
112 new kqRWallFunctionFvPatchField(*this)
116 //- Construct as copy setting internal field reference
117 kqRWallFunctionFvPatchField
119 const kqRWallFunctionFvPatchField&,
120 const DimensionedField<Type, volMesh>&
123 //- Construct and return a clone setting internal field reference
124 virtual tmp<fvPatchField<Type> > clone
126 const DimensionedField<Type, volMesh>& iF
129 return tmp<fvPatchField<Type> >
131 new kqRWallFunctionFvPatchField(*this, iF)
138 // Evaluation functions
140 //- Evaluate the patchField
141 virtual void evaluate
143 const Pstream::commsTypes commsType=Pstream::Pstream::blocking
150 void write(Ostream&) const;
154 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
156 } // End namespace RASModels
157 } // End namespace compressible
158 } // End namespace Foam
160 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
163 # include "kqRWallFunctionFvPatchField.C"
166 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
170 // ************************************************************************* //