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