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

SpalartAllmarasIDDES.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) 2008-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::LESmodels::SpalartAllmarasIDDES
00027 
00028 Description
00029     SpalartAllmarasIDDES LES turbulence model for incompressible flows
00030 
00031 SourceFiles
00032     SpalartAllmarasIDDES.C
00033 
00034 \*---------------------------------------------------------------------------*/
00035 
00036 #ifndef SpalartAllmarasIDDES_H
00037 #define SpalartAllmarasIDDES_H
00038 
00039 #include "SpalartAllmaras.H"
00040 
00041 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00042 
00043 namespace Foam
00044 {
00045 namespace incompressible
00046 {
00047 namespace LESModels
00048 {
00049 
00050 /*---------------------------------------------------------------------------*\
00051                         Class SpalartAllmarasIDDES Declaration
00052 \*---------------------------------------------------------------------------*/
00053 
00054 class SpalartAllmarasIDDES
00055 :
00056     public SpalartAllmaras
00057 {
00058     // Private data
00059 
00060         // Model constants
00061 
00062             dimensionedScalar fwStar_;
00063             dimensionedScalar cl_;
00064             dimensionedScalar ct_;
00065 
00066 
00067     // Private member functions
00068 
00069         tmp<volScalarField> alpha() const;
00070         tmp<volScalarField> ft(const volScalarField& S) const;
00071         tmp<volScalarField> fl(const volScalarField& S) const;
00072 
00073         tmp<volScalarField> rd
00074         (
00075             const volScalarField& visc,
00076             const volScalarField& S
00077         ) const;
00078 
00079         //- Delay function
00080         tmp<volScalarField> fd(const volScalarField& S) const;
00081 
00082         // Disallow default bitwise copy construct and assignment
00083         SpalartAllmarasIDDES(const SpalartAllmarasIDDES&);
00084         SpalartAllmarasIDDES& operator=(const SpalartAllmarasIDDES&);
00085 
00086 
00087 protected:
00088 
00089     // Protected member functions
00090 
00091         //- Length scale
00092         virtual tmp<volScalarField> dTilda(const volScalarField& S) const;
00093 
00094 
00095 public:
00096 
00097     //- Runtime type information
00098     TypeName("SpalartAllmarasIDDES");
00099 
00100 
00101     // Constructors
00102 
00103         //- Construct from components
00104         SpalartAllmarasIDDES
00105         (
00106             const volVectorField& U,
00107             const surfaceScalarField& phi,
00108             transportModel& transport
00109         );
00110 
00111 
00112     //- Destructor
00113     virtual ~SpalartAllmarasIDDES()
00114     {}
00115 
00116 
00117     // Member Functions
00118 
00119         //- Read LESProperties dictionary
00120         virtual bool read();
00121 };
00122 
00123 
00124 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00125 
00126 } // End namespace LESModels
00127 } // End namespace incompressible
00128 } // End namespace Foam
00129 
00130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00131 
00132 #endif
00133 
00134 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd