FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

mutSpalartAllmarasStandardWallFunctionFvPatchScalarField.H

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002   =========                 |
00003   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
00004    \\    /   O peration     |
00005     \\  /    A nd           | Copyright (C) 1991-2010 OpenCFD Ltd.
00006      \\/     M anipulation  |
00007 -------------------------------------------------------------------------------
00008 License
00009     This file is part of OpenFOAM.
00010 
00011     OpenFOAM is free software: you can redistribute it and/or modify it
00012     under the terms of the GNU General Public License as published by
00013     the Free Software Foundation, either version 3 of the License, or
00014     (at your option) any later version.
00015 
00016     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
00017     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00018     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00019     for more details.
00020 
00021     You should have received a copy of the GNU General Public License
00022     along with OpenFOAM.  If not, see <http://www.gnu.org/licenses/>.
00023 
00024 Class
00025     Foam::compressible::RASModels::mutSpalartAllmarasStandardWallFunctionFvPatchScalarField
00026 
00027 Description
00028     Wall function boundary condition for walls
00029 
00030 SourceFiles
00031     mutSpalartAllmarasStandardWallFunctionFvPatchScalarField.C
00032 
00033 \*---------------------------------------------------------------------------*/
00034 
00035 #ifndef compressibleMutSpalartAllmarasStandardWallFunctionFvPatchScalarField_H
00036 #define compressibleMutSpalartAllmarasStandardWallFunctionFvPatchScalarField_H
00037 
00038 #include <compressibleRASModels/mutWallFunctionFvPatchScalarField.H>
00039 
00040 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00041 
00042 namespace Foam
00043 {
00044 namespace compressible
00045 {
00046 namespace RASModels
00047 {
00048 
00049 /*---------------------------------------------------------------------------*\
00050   Class mutSpalartAllmarasStandardWallFunctionFvPatchScalarField Declaration
00051 \*---------------------------------------------------------------------------*/
00052 
00053 class mutSpalartAllmarasStandardWallFunctionFvPatchScalarField
00054 :
00055     public mutWallFunctionFvPatchScalarField
00056 {
00057 protected:
00058 
00059     // Protected member functions
00060 
00061         //- Calculate yPLus
00062         virtual tmp<scalarField> calcYPlus(const scalarField& magUp) const;
00063 
00064         //- Calculate the turbulence viscosity
00065         virtual tmp<scalarField> calcMut() const;
00066 
00067 
00068 public:
00069 
00070     //- Runtime type information
00071     TypeName("mutSpalartAllmarasStandardWallFunction");
00072 
00073 
00074     // Constructors
00075 
00076         //- Construct from patch and internal field
00077         mutSpalartAllmarasStandardWallFunctionFvPatchScalarField
00078         (
00079             const fvPatch&,
00080             const DimensionedField<scalar, volMesh>&
00081         );
00082 
00083         //- Construct from patch, internal field and dictionary
00084         mutSpalartAllmarasStandardWallFunctionFvPatchScalarField
00085         (
00086             const fvPatch&,
00087             const DimensionedField<scalar, volMesh>&,
00088             const dictionary&
00089         );
00090 
00091         //- Construct by mapping given
00092         //  mutSpalartAllmarasStandardWallFunctionFvPatchScalarField
00093         //  onto a new patch
00094         mutSpalartAllmarasStandardWallFunctionFvPatchScalarField
00095         (
00096             const mutSpalartAllmarasStandardWallFunctionFvPatchScalarField&,
00097             const fvPatch&,
00098             const DimensionedField<scalar, volMesh>&,
00099             const fvPatchFieldMapper&
00100         );
00101 
00102         //- Construct as copy
00103         mutSpalartAllmarasStandardWallFunctionFvPatchScalarField
00104         (
00105             const mutSpalartAllmarasStandardWallFunctionFvPatchScalarField&
00106         );
00107 
00108         //- Construct and return a clone
00109         virtual tmp<fvPatchScalarField> clone() const
00110         {
00111             return tmp<fvPatchScalarField>
00112             (
00113                 new mutSpalartAllmarasStandardWallFunctionFvPatchScalarField
00114                 (
00115                     *this
00116                 )
00117             );
00118         }
00119 
00120         //- Construct as copy setting internal field reference
00121         mutSpalartAllmarasStandardWallFunctionFvPatchScalarField
00122         (
00123             const mutSpalartAllmarasStandardWallFunctionFvPatchScalarField&,
00124             const DimensionedField<scalar, volMesh>&
00125         );
00126 
00127         //- Construct and return a clone setting internal field reference
00128         virtual tmp<fvPatchScalarField> clone
00129         (
00130             const DimensionedField<scalar, volMesh>& iF
00131         ) const
00132         {
00133             return tmp<fvPatchScalarField>
00134             (
00135                 new mutSpalartAllmarasStandardWallFunctionFvPatchScalarField
00136                 (
00137                     *this,
00138                     iF
00139                 )
00140             );
00141         }
00142 
00143 
00144     // Member functions
00145 
00146         // Evaluation functions
00147 
00148             //- Calculate and return the yPlus at the boundary
00149             virtual tmp<scalarField> yPlus() const;
00150 
00151 
00152         // I-O
00153 
00154             //- Write
00155             virtual void write(Ostream& os) const;
00156 };
00157 
00158 
00159 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00160 
00161 } // End namespace RASModels
00162 } // End namespace compressible
00163 } // End namespace Foam
00164 
00165 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00166 
00167 #endif
00168 
00169 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines