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

alphaSgsWallFunctionFvPatchScalarField.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     alphaSgsWallFunctionFvPatchScalarField
00026 
00027 Description
00028     Boundary condition for thermal diffusivity when using wall functions
00029     - replicates OpenFOAM v1.5 (and earlier) behaviour
00030 
00031 SourceFiles
00032     alphaSgsWallFunctionFvPatchScalarField.C
00033 
00034 \*---------------------------------------------------------------------------*/
00035 
00036 #ifndef alphaSgsWallFunctionFvPatchScalarField_H
00037 #define alphaSgsWallFunctionFvPatchScalarField_H
00038 
00039 #include <finiteVolume/fixedValueFvPatchFields.H>
00040 
00041 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00042 
00043 namespace Foam
00044 {
00045 namespace compressible
00046 {
00047 namespace LESModels
00048 {
00049 
00050 /*---------------------------------------------------------------------------*\
00051            Class alphaSgsWallFunctionFvPatchScalarField Declaration
00052 \*---------------------------------------------------------------------------*/
00053 
00054 class alphaSgsWallFunctionFvPatchScalarField
00055 :
00056     public fixedValueFvPatchScalarField
00057 {
00058     // Private data
00059 
00060         //- Turbulent Prandtl number
00061         scalar Prt_;
00062 
00063 
00064     // Private member functions
00065 
00066         //- Check the type of the patch
00067         void checkType();
00068 
00069 
00070 public:
00071 
00072     //- Runtime type information
00073     TypeName("alphaSgsWallFunction");
00074 
00075 
00076     // Constructors
00077 
00078         //- Construct from patch and internal field
00079         alphaSgsWallFunctionFvPatchScalarField
00080         (
00081             const fvPatch&,
00082             const DimensionedField<scalar, volMesh>&
00083         );
00084 
00085         //- Construct from patch, internal field and dictionary
00086         alphaSgsWallFunctionFvPatchScalarField
00087         (
00088             const fvPatch&,
00089             const DimensionedField<scalar, volMesh>&,
00090             const dictionary&
00091         );
00092 
00093         //- Construct by mapping given alphaSgsWallFunctionFvPatchScalarField
00094         //  onto a new patch
00095         alphaSgsWallFunctionFvPatchScalarField
00096         (
00097             const alphaSgsWallFunctionFvPatchScalarField&,
00098             const fvPatch&,
00099             const DimensionedField<scalar, volMesh>&,
00100             const fvPatchFieldMapper&
00101         );
00102 
00103         //- Construct as copy
00104         alphaSgsWallFunctionFvPatchScalarField
00105         (
00106             const alphaSgsWallFunctionFvPatchScalarField&
00107         );
00108 
00109         //- Construct and return a clone
00110         virtual tmp<fvPatchScalarField> clone() const
00111         {
00112             return tmp<fvPatchScalarField>
00113             (
00114                 new alphaSgsWallFunctionFvPatchScalarField(*this)
00115             );
00116         }
00117 
00118         //- Construct as copy setting internal field reference
00119         alphaSgsWallFunctionFvPatchScalarField
00120         (
00121             const alphaSgsWallFunctionFvPatchScalarField&,
00122             const DimensionedField<scalar, volMesh>&
00123         );
00124 
00125         //- Construct and return a clone setting internal field reference
00126         virtual tmp<fvPatchScalarField> clone
00127         (
00128             const DimensionedField<scalar, volMesh>& iF
00129         ) const
00130         {
00131             return tmp<fvPatchScalarField>
00132             (
00133                 new alphaSgsWallFunctionFvPatchScalarField(*this, iF)
00134             );
00135         }
00136 
00137 
00138     // Member functions
00139 
00140         // Evaluation functions
00141 
00142             //- Evaluate the patchField
00143             virtual void evaluate
00144             (
00145                 const Pstream::commsTypes commsType=Pstream::Pstream::blocking
00146             );
00147 };
00148 
00149 
00150 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00151 
00152 } // End namespace LESModels
00153 } // End namespace compressible
00154 } // End namespace Foam
00155 
00156 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00157 
00158 #endif
00159 
00160 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines