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::compressible::laminar
00027 
00028 Description
00029     Turbulence model for laminar compressible flow.
00030 
00031 SourceFiles
00032     laminar.C
00033 
00034 \*---------------------------------------------------------------------------*/
00035 
00036 #ifndef compressibleLaminar_H
00037 #define compressibleLaminar_H
00038 
00039 #include "turbulenceModel.H"
00040 
00041 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00042 
00043 namespace Foam
00044 {
00045 namespace compressible
00046 {
00047 
00048 /*---------------------------------------------------------------------------*\
00049                            Class laminar Declaration
00050 \*---------------------------------------------------------------------------*/
00051 
00052 class laminar
00053 :
00054     public turbulenceModel
00055 {
00056 
00057 public:
00058 
00059     //- Runtime type information
00060     TypeName("laminar");
00061 
00062     // Constructors
00063 
00064         //- Construct from components
00065         laminar
00066         (
00067             const volScalarField& rho,
00068             const volVectorField& U,
00069             const surfaceScalarField& phi,
00070             const basicThermo& thermophysicalModel
00071         );
00072 
00073 
00074     // Selectors
00075 
00076         //- Return a reference to the selected turbulence model
00077         static autoPtr<laminar> New
00078         (
00079             const volScalarField& rho,
00080             const volVectorField& U,
00081             const surfaceScalarField& phi,
00082             const basicThermo& thermophysicalModel
00083         );
00084 
00085 
00086     //- Destructor
00087     virtual ~laminar()
00088     {}
00089 
00090 
00091     // Member Functions
00092 
00093         //- Return the turbulence viscosity, i.e. 0 for laminar flow
00094         virtual tmp<volScalarField> mut() const;
00095 
00096         //- Return the effective viscosity, i.e. the laminar viscosity
00097         virtual tmp<volScalarField> muEff() const
00098         {
00099             return tmp<volScalarField>(new volScalarField("muEff", mu()));
00100         }
00101 
00102         //- Return the effective turbulent thermal diffusivity,
00103         //  i.e. the laminar thermal diffusivity
00104         virtual tmp<volScalarField> alphaEff() const
00105         {
00106             return tmp<volScalarField>(new volScalarField("alphaEff", alpha()));
00107         }
00108 
00109         //- Return the turbulence kinetic energy, i.e. 0 for laminar flow
00110         virtual tmp<volScalarField> k() const;
00111 
00112         //- Return the turbulence kinetic energy dissipation rate,
00113         //  i.e. 0 for laminar flow
00114         virtual tmp<volScalarField> epsilon() const;
00115 
00116         //- Return the Reynolds stress tensor, i.e. 0 for laminar flow
00117         virtual tmp<volSymmTensorField> R() const;
00118 
00119         //- Return the effective stress tensor, i.e. the laminar stress
00120         virtual tmp<volSymmTensorField> devRhoReff() const;
00121 
00122         //- Return the source term for the momentum equation
00123         virtual tmp<fvVectorMatrix> divDevRhoReff(volVectorField& U) const;
00124 
00125         //- Correct the laminar viscosity
00126         virtual void correct();
00127 
00128         //- Read turbulenceProperties dictionary
00129         virtual bool read();
00130 };
00131 
00132 
00133 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00134 
00135 } // End namespace incompressible
00136 } // End namespace Foam
00137 
00138 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00139 
00140 #endif
00141 
00142 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd