OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

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