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

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