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::laminar
00027 
00028 Description
00029     Turbulence model for laminar incompressible flow.
00030 
00031 SourceFiles
00032     laminar.C
00033 
00034 \*---------------------------------------------------------------------------*/
00035 
00036 #ifndef laminar_H
00037 #define laminar_H
00038 
00039 #include "turbulenceModel.H"
00040 
00041 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00042 
00043 namespace Foam
00044 {
00045 namespace incompressible
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 volVectorField& U,
00068             const surfaceScalarField& phi,
00069             transportModel& transport
00070         );
00071 
00072 
00073     // Selectors
00074 
00075         //- Return a reference to the selected turbulence model
00076         static autoPtr<laminar> New
00077         (
00078             const volVectorField& U,
00079             const surfaceScalarField& phi,
00080             transportModel& lamTransportModel
00081         );
00082 
00083 
00084     //- Destructor
00085     virtual ~laminar()
00086     {}
00087 
00088 
00089     // Member Functions
00090 
00091         //- Return the turbulence viscosity, i.e. 0 for laminar flow
00092         virtual tmp<volScalarField> nut() const;
00093 
00094         //- Return the effective viscosity, i.e. the laminar viscosity
00095         virtual tmp<volScalarField> nuEff() const;
00096 
00097         //- Return the turbulence kinetic energy, i.e. 0 for laminar flow
00098         virtual tmp<volScalarField> k() const;
00099 
00100         //- Return the turbulence kinetic energy dissipation rate,
00101         //  i.e. 0 for laminar flow
00102         virtual tmp<volScalarField> epsilon() const;
00103 
00104         //- Return the Reynolds stress tensor, i.e. 0 for laminar flow
00105         virtual tmp<volSymmTensorField> R() const;
00106 
00107         //- Return the effective stress tensor, i.e. the laminar stress
00108         virtual tmp<volSymmTensorField> devReff() const;
00109 
00110         //- Return the source term for the momentum equation
00111         virtual tmp<fvVectorMatrix> divDevReff(volVectorField& U) const;
00112 
00113         //- Correct the laminar viscosity
00114         virtual void correct();
00115 
00116         //- Read turbulenceProperties dictionary
00117         virtual bool read();
00118 };
00119 
00120 
00121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00122 
00123 } // End namespace incompressible
00124 } // End namespace Foam
00125 
00126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00127 
00128 #endif
00129 
00130 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd