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

singlePhaseTransportModel.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::singlePhaseTransportModel
00027 
00028 Description
00029     A simple single-phase transport model based on viscosityModel.
00030 
00031     Used by the incompressible single-phase solvers like simpleFoam,
00032     turbFoam etc.
00033 
00034 SourceFiles
00035     singlePhaseTransportModel.C
00036 
00037 \*---------------------------------------------------------------------------*/
00038 
00039 #ifndef singlePhaseTransportModel_H
00040 #define singlePhaseTransportModel_H
00041 
00042 #include "incompressible/transportModel/transportModel.H"
00043 #include "autoPtr.H"
00044 
00045 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00046 
00047 namespace Foam
00048 {
00049 
00050 class viscosityModel;
00051 
00052 /*---------------------------------------------------------------------------*\
00053                 Class singlePhaseTransportModel Declaration
00054 \*---------------------------------------------------------------------------*/
00055 
00056 class singlePhaseTransportModel
00057 :
00058     public transportModel
00059 {
00060     // Private Data
00061 
00062         autoPtr<viscosityModel> viscosityModelPtr_;
00063 
00064 
00065     // Private Member Functions
00066 
00067         //- Disallow copy construct
00068         singlePhaseTransportModel(const singlePhaseTransportModel&);
00069 
00070         //- Disallow default bitwise assignment
00071         void operator=(const singlePhaseTransportModel&);
00072 
00073 
00074 public:
00075 
00076     // Constructors
00077 
00078         //- Construct from components
00079         singlePhaseTransportModel
00080         (
00081             const volVectorField& U,
00082             const surfaceScalarField& phi
00083         );
00084 
00085 
00086     // Destructor
00087 
00088         virtual ~singlePhaseTransportModel();
00089 
00090 
00091     // Member Functions
00092 
00093         //- Return the laminar viscosity
00094         tmp<volScalarField> nu() const;
00095 
00096         //- Correct the laminar viscosity
00097         void correct();
00098 
00099         //- Read transportProperties dictionary
00100         virtual bool read();
00101 };
00102 
00103 
00104 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00105 
00106 } // End namespace Foam
00107 
00108 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00109 
00110 #endif
00111 
00112 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd