1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2008 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::incompressible::RASModels::nutStandardWallFunctionFvPatchScalarField
29 Wall function boundary condition for walls
32 nutStandardWallFunctionFvPatchScalarField.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef nutStandardWallFunctionFvPatchScalarField_H
37 #define nutStandardWallFunctionFvPatchScalarField_H
39 #include "fixedValueFvPatchFields.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 namespace incompressible
50 /*---------------------------------------------------------------------------*\
51 Class nutWallFunctionFvPatch Declaration
52 \*---------------------------------------------------------------------------*/
54 class nutStandardWallFunctionFvPatchScalarField
56 public fixedValueFvPatchScalarField
63 //- Runtime type information
64 TypeName("nutStandardWallFunction");
69 //- Construct from patch and internal field
70 nutStandardWallFunctionFvPatchScalarField
73 const DimensionedField<scalar, volMesh>&
76 //- Construct from patch, internal field and dictionary
77 nutStandardWallFunctionFvPatchScalarField
80 const DimensionedField<scalar, volMesh>&,
84 //- Construct by mapping given nutStandardWallFunctionFvPatchScalarField
86 nutStandardWallFunctionFvPatchScalarField
88 const nutStandardWallFunctionFvPatchScalarField&,
90 const DimensionedField<scalar, volMesh>&,
91 const fvPatchFieldMapper&
95 nutStandardWallFunctionFvPatchScalarField
97 const nutStandardWallFunctionFvPatchScalarField&
100 //- Construct and return a clone
101 virtual tmp<fvPatchScalarField> clone() const
103 return tmp<fvPatchScalarField>
105 new nutStandardWallFunctionFvPatchScalarField(*this)
109 //- Construct as copy setting internal field reference
110 nutStandardWallFunctionFvPatchScalarField
112 const nutStandardWallFunctionFvPatchScalarField&,
113 const DimensionedField<scalar, volMesh>&
116 //- Construct and return a clone setting internal field reference
117 virtual tmp<fvPatchScalarField> clone
119 const DimensionedField<scalar, volMesh>& iF
122 return tmp<fvPatchScalarField>
124 new nutStandardWallFunctionFvPatchScalarField(*this, iF)
131 // Evaluation functions
133 //- Evaluate the patchField
134 virtual void evaluate
136 const Pstream::commsTypes commsType=Pstream::blocking
141 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
143 } // End namespace RASModels
144 } // End namespace incompressible
145 } // End namespace Foam
147 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
151 // ************************************************************************* //