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

laminar.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::laminar
00027 
00028 Description
00029     LES model for laminar incompressible flow.
00030     It simply returns laminar properties.
00031 
00032 SourceFiles
00033     laminar.C
00034 
00035 \*---------------------------------------------------------------------------*/
00036 
00037 #ifndef lesLaminar_H
00038 #define lesLaminar_H
00039 
00040 #include "LESModel.H"
00041 #include "volFields.H"
00042 
00043 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00044 
00045 namespace Foam
00046 {
00047 namespace incompressible
00048 {
00049 namespace LESModels
00050 {
00051 
00052 /*---------------------------------------------------------------------------*\
00053                            Class laminar Declaration
00054 \*---------------------------------------------------------------------------*/
00055 
00056 class laminar
00057 :
00058     public LESModel
00059 {
00060     // Private member functions
00061 
00062         // Disallow default bitwise copy construct and assignment
00063         laminar(const laminar&);
00064         laminar& operator=(const laminar&);
00065 
00066 
00067 public:
00068 
00069     //- Runtime type information
00070     TypeName("laminar");
00071 
00072 
00073     // Constructors
00074 
00075         //- Construct from components
00076         laminar
00077         (
00078             const volVectorField& U,
00079             const surfaceScalarField& phi,
00080             transportModel& transport
00081         );
00082 
00083 
00084     //- Destructor
00085     virtual ~laminar()
00086     {}
00087 
00088 
00089     // Member Functions
00090 
00091         //- Return SGS kinetic energy
00092         virtual tmp<volScalarField> k() const;
00093 
00094         //- Return sub-grid disipation rate
00095         virtual tmp<volScalarField> epsilon() const;
00096 
00097         //- Return SGS viscosity
00098         virtual tmp<volScalarField> nuSgs() const;
00099 
00100         //- Return the effective viscosity
00101         virtual tmp<volScalarField> nuEff() const;
00102 
00103         //- Return the sub-grid stress tensor B.
00104         virtual tmp<volSymmTensorField> B() const;
00105 
00106         //- Return the deviatoric part of the effective sub-grid
00107         //  turbulence stress tensor including the laminar stress
00108         virtual tmp<volSymmTensorField> devBeff() const;
00109 
00110         //- Return the deviatoric part of the divergence of Beff
00111         //  i.e. the additional term in the filtered NSE.
00112         virtual tmp<fvVectorMatrix> divDevBeff(volVectorField& U) const;
00113 
00114         //- Read LESProperties dictionary
00115         bool read();
00116 };
00117 
00118 
00119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00120 
00121 } // End namespace LESModels
00122 } // End namespace incompressible
00123 } // End namespace Foam
00124 
00125 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00126 
00127 #endif
00128 
00129 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd