1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
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
13 the Free Software Foundation, either version 3 of the License, or
14 (at your 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, see <http://www.gnu.org/licenses/>.
25 Foam::incompressible::RASModels::kqRWallFunctionFvPatchField
28 Boundary condition for turbulence k, Q, and R when using wall functions.
29 Simply acts as a zero gradient condition.
32 kqRWallFunctionFvPatchField.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef kqRWallFunctionFvPatchField_H
37 #define kqRWallFunctionFvPatchField_H
39 #include "zeroGradientFvPatchField.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 namespace incompressible
50 /*---------------------------------------------------------------------------*\
51 Class kqRWallFunctionFvPatchField Declaration
52 \*---------------------------------------------------------------------------*/
55 class kqRWallFunctionFvPatchField
57 public zeroGradientFvPatchField<Type>
60 // Private Member Functions
62 //- Check the type of the patch
68 //- Runtime type information
69 TypeName("kqRWallFunction");
74 //- Construct from patch and internal field
75 kqRWallFunctionFvPatchField
78 const DimensionedField<Type, volMesh>&
81 //- Construct from patch, internal field and dictionary
82 kqRWallFunctionFvPatchField
85 const DimensionedField<Type, volMesh>&,
89 //- Construct by mapping given
90 // kqRWallFunctionFvPatchField
92 kqRWallFunctionFvPatchField
94 const kqRWallFunctionFvPatchField&,
96 const DimensionedField<Type, volMesh>&,
97 const fvPatchFieldMapper&
100 //- Construct as copy
101 kqRWallFunctionFvPatchField
103 const kqRWallFunctionFvPatchField&
106 //- Construct and return a clone
107 virtual tmp<fvPatchField<Type> > clone() const
109 return tmp<fvPatchField<Type> >
111 new kqRWallFunctionFvPatchField(*this)
115 //- Construct as copy setting internal field reference
116 kqRWallFunctionFvPatchField
118 const kqRWallFunctionFvPatchField&,
119 const DimensionedField<Type, volMesh>&
122 //- Construct and return a clone setting internal field reference
123 virtual tmp<fvPatchField<Type> > clone
125 const DimensionedField<Type, volMesh>& iF
128 return tmp<fvPatchField<Type> >
130 new kqRWallFunctionFvPatchField(*this, iF)
137 // Evaluation functions
139 //- Evaluate the patchField
140 virtual void evaluate
142 const Pstream::commsTypes commsType=Pstream::Pstream::blocking
149 virtual void write(Ostream&) const;
153 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
155 } // End namespace RASModels
156 } // End namespace incompressible
157 } // End namespace Foam
159 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
162 # include "kqRWallFunctionFvPatchField.C"
165 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
169 // ************************************************************************* //