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

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