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

muSgsWallFunctionFvPatchScalarField.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::LESModels::muSgsWallFunctionFvPatchScalarField
00026 
00027 Description
00028     Spalart Allmaas wall function boundary condition for compressible flows
00029 
00030 SourceFiles
00031     muSgsWallFunctionFvPatchScalarField.C
00032 
00033 \*---------------------------------------------------------------------------*/
00034 
00035 #ifndef muSgsWallFunctionFvPatchScalarField_H
00036 #define muSgsWallFunctionFvPatchScalarField_H
00037 
00038 #include <finiteVolume/fixedValueFvPatchFields.H>
00039 
00040 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00041 
00042 namespace Foam
00043 {
00044 namespace compressible
00045 {
00046 namespace LESModels
00047 {
00048 
00049 /*---------------------------------------------------------------------------*\
00050      Class muSgsWallFunctionFvPatchScalarField Declaration
00051 \*---------------------------------------------------------------------------*/
00052 
00053 class muSgsWallFunctionFvPatchScalarField
00054 :
00055     public fixedValueFvPatchScalarField
00056 {
00057     // Private data
00058 
00059         //- Name of velocity field
00060         word UName_;
00061 
00062         //- Name of density field
00063         word rhoName_;
00064 
00065         //- Name of laminar viscosity field
00066         word muName_;
00067 
00068         //- Von Karman constant
00069         scalar kappa_;
00070 
00071         //- E coefficient
00072         scalar E_;
00073 
00074 
00075 public:
00076 
00077     //- Runtime type information
00078     TypeName("muSgsWallFunction");
00079 
00080 
00081     // Constructors
00082 
00083         //- Construct from patch and internal field
00084         muSgsWallFunctionFvPatchScalarField
00085         (
00086             const fvPatch&,
00087             const DimensionedField<scalar, volMesh>&
00088         );
00089 
00090         //- Construct from patch, internal field and dictionary
00091         muSgsWallFunctionFvPatchScalarField
00092         (
00093             const fvPatch&,
00094             const DimensionedField<scalar, volMesh>&,
00095             const dictionary&
00096         );
00097 
00098         //- Construct by mapping given
00099         //  muSgsWallFunctionFvPatchScalarField
00100         //  onto a new patch
00101         muSgsWallFunctionFvPatchScalarField
00102         (
00103             const muSgsWallFunctionFvPatchScalarField&,
00104             const fvPatch&,
00105             const DimensionedField<scalar, volMesh>&,
00106             const fvPatchFieldMapper&
00107         );
00108 
00109         //- Construct as copy
00110         muSgsWallFunctionFvPatchScalarField
00111         (
00112             const muSgsWallFunctionFvPatchScalarField&
00113         );
00114 
00115         //- Construct and return a clone
00116         virtual tmp<fvPatchScalarField> clone() const
00117         {
00118             return tmp<fvPatchScalarField>
00119             (
00120                 new muSgsWallFunctionFvPatchScalarField(*this)
00121             );
00122         }
00123 
00124         //- Construct as copy setting internal field reference
00125         muSgsWallFunctionFvPatchScalarField
00126         (
00127             const muSgsWallFunctionFvPatchScalarField&,
00128             const DimensionedField<scalar, volMesh>&
00129         );
00130 
00131         //- Construct and return a clone setting internal field reference
00132         virtual tmp<fvPatchScalarField> clone
00133         (
00134             const DimensionedField<scalar, volMesh>& iF
00135         ) const
00136         {
00137             return tmp<fvPatchScalarField>
00138             (
00139                 new muSgsWallFunctionFvPatchScalarField
00140                 (
00141                     *this,
00142                     iF
00143                 )
00144             );
00145         }
00146 
00147 
00148     // Member functions
00149 
00150         // Evaluation functions
00151 
00152             //- Evaluate the patchField
00153             virtual void evaluate
00154             (
00155                 const Pstream::commsTypes commsType=Pstream::blocking
00156             );
00157 
00158         // I-O
00159 
00160             //- Write
00161             void write(Ostream&) const;
00162 };
00163 
00164 
00165 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00166 
00167 } // End namespace LESModels
00168 } // End namespace compressible
00169 } // End namespace Foam
00170 
00171 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00172 
00173 #endif
00174 
00175 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines