1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-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::incompressible::RASModels::
27 nutSpalartAllmarasStandardWallFunctionFvPatchScalarField
30 Wall function boundary condition for walls
33 nutSpalartAllmarasStandardWallFunctionFvPatchScalarField.C
35 \*---------------------------------------------------------------------------*/
37 #ifndef nutSpalartAllmarasStandardWallFunctionFvPatchScalarField_H
38 #define nutSpalartAllmarasStandardWallFunctionFvPatchScalarField_H
40 #include "nutWallFunctionFvPatchScalarField.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 namespace incompressible
51 /*---------------------------------------------------------------------------*\
52 Class nutSpalartAllmarasStandardWallFunctionFvPatchScalarField Declaration
53 \*---------------------------------------------------------------------------*/
55 class nutSpalartAllmarasStandardWallFunctionFvPatchScalarField
57 public nutWallFunctionFvPatchScalarField
61 // Protected member functions
64 virtual tmp<scalarField> calcYPlus(const scalarField& magUp) const;
66 //- Calculate the turbulence viscosity
67 virtual tmp<scalarField> calcNut() const;
72 //- Runtime type information
73 TypeName("nutSpalartAllmarasStandardWallFunction");
78 //- Construct from patch and internal field
79 nutSpalartAllmarasStandardWallFunctionFvPatchScalarField
82 const DimensionedField<scalar, volMesh>&
85 //- Construct from patch, internal field and dictionary
86 nutSpalartAllmarasStandardWallFunctionFvPatchScalarField
89 const DimensionedField<scalar, volMesh>&,
93 //- Construct by mapping given
94 // nutSpalartAllmarasStandardWallFunctionFvPatchScalarField
96 nutSpalartAllmarasStandardWallFunctionFvPatchScalarField
98 const nutSpalartAllmarasStandardWallFunctionFvPatchScalarField&,
100 const DimensionedField<scalar, volMesh>&,
101 const fvPatchFieldMapper&
104 //- Construct as copy
105 nutSpalartAllmarasStandardWallFunctionFvPatchScalarField
107 const nutSpalartAllmarasStandardWallFunctionFvPatchScalarField&
110 //- Construct and return a clone
111 virtual tmp<fvPatchScalarField> clone() const
113 return tmp<fvPatchScalarField>
115 new nutSpalartAllmarasStandardWallFunctionFvPatchScalarField
122 //- Construct as copy setting internal field reference
123 nutSpalartAllmarasStandardWallFunctionFvPatchScalarField
125 const nutSpalartAllmarasStandardWallFunctionFvPatchScalarField&,
126 const DimensionedField<scalar, volMesh>&
129 //- Construct and return a clone setting internal field reference
130 virtual tmp<fvPatchScalarField> clone
132 const DimensionedField<scalar, volMesh>& iF
135 return tmp<fvPatchScalarField>
137 new nutSpalartAllmarasStandardWallFunctionFvPatchScalarField
148 // Evaluation functions
150 //- Calculate and return the yPlus at the boundary
151 virtual tmp<scalarField> yPlus() const;
157 virtual void write(Ostream& os) const;
161 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
163 } // End namespace RASModels
164 } // End namespace incompressible
165 } // End namespace Foam
167 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
171 // ************************************************************************* //