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

psiChemistryModel.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) 2009-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::psiChemistryModel
00027 
00028 Description
00029     Chemistry model for compressibility-based thermodynamics
00030 
00031 SourceFiles
00032     psiChemistryModelI.H
00033     psiChemistryModel.C
00034     newChemistryModel.C
00035 
00036 \*---------------------------------------------------------------------------*/
00037 
00038 #ifndef psiChemistryModel_H
00039 #define psiChemistryModel_H
00040 
00041 #include "basicChemistryModel.H"
00042 #include "autoPtr.H"
00043 #include "runTimeSelectionTables.H"
00044 #include "hCombustionThermo.H"
00045 
00046 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00047 
00048 namespace Foam
00049 {
00050 
00051 // Forward declaration of classes
00052 class fvMesh;
00053 
00054 /*---------------------------------------------------------------------------*\
00055                      class psiChemistryModel Declaration
00056 \*---------------------------------------------------------------------------*/
00057 
00058 class psiChemistryModel
00059 :
00060     public basicChemistryModel
00061 {
00062     // Private Member Functions
00063 
00064         //- Construct as copy (not implemented)
00065         psiChemistryModel(const psiChemistryModel&);
00066 
00067         //- Disallow default bitwise assignment
00068         void operator=(const psiChemistryModel&);
00069 
00070 
00071 protected:
00072 
00073     // Protected data
00074 
00075         //- Thermo package
00076         autoPtr<hCombustionThermo> thermo_;
00077 
00078 
00079 public:
00080 
00081     //- Runtime type information
00082     TypeName("psiChemistryModel");
00083 
00084 
00085     //- Declare run-time constructor selection tables
00086     declareRunTimeSelectionTable
00087     (
00088         autoPtr,
00089         psiChemistryModel,
00090         fvMesh,
00091         (
00092             const fvMesh& mesh,
00093             const word& compTypeName,
00094             const word& thermoTypeName
00095         ),
00096         (mesh, compTypeName, thermoTypeName)
00097     );
00098 
00099 
00100     // Constructors
00101 
00102         //- Construct from mesh
00103         psiChemistryModel(const fvMesh& mesh, const word& thermoTypeName);
00104 
00105 
00106     //- Selector
00107     static autoPtr<psiChemistryModel> New(const fvMesh& mesh);
00108 
00109 
00110     //- Destructor
00111     virtual ~psiChemistryModel();
00112 
00113 
00114     // Member Functions
00115 
00116         //- Return access to the thermo package
00117         inline hCombustionThermo& thermo();
00118 
00119         //- Return const access to the thermo package
00120         inline const hCombustionThermo& thermo() const;
00121 };
00122 
00123 
00124 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00125 
00126 } // End namespace Foam
00127 
00128 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00129 
00130 #include "psiChemistryModelI.H"
00131 
00132 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00133 
00134 #endif
00135 
00136 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd