00001 /*---------------------------------------------------------------------------*\ 00002 ========= | 00003 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 00004 \\ / O peration | 00005 \\ / A nd | Copyright (C) 2009-2010 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 00013 the Free Software Foundation, either version 3 of the License, or 00014 (at your 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, see <http://www.gnu.org/licenses/>. 00023 00024 Class 00025 Foam::rhoChemistryModel 00026 00027 Description 00028 Chemistry model for density-based thermodynamics 00029 00030 SourceFiles 00031 rhoChemistryModelI.H 00032 rhoChemistryModel.C 00033 newChemistryModel.C 00034 00035 \*---------------------------------------------------------------------------*/ 00036 00037 #ifndef rhoChemistryModel_H 00038 #define rhoChemistryModel_H 00039 00040 #include <chemistryModel/basicChemistryModel.H> 00041 #include <OpenFOAM/autoPtr.H> 00042 #include <OpenFOAM/runTimeSelectionTables.H> 00043 #include <reactionThermophysicalModels/hsReactionThermo.H> 00044 00045 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00046 00047 namespace Foam 00048 { 00049 00050 // Forward declaration of classes 00051 class fvMesh; 00052 00053 /*---------------------------------------------------------------------------*\ 00054 class rhoChemistryModel Declaration 00055 \*---------------------------------------------------------------------------*/ 00056 00057 class rhoChemistryModel 00058 : 00059 public basicChemistryModel 00060 { 00061 // Private Member Functions 00062 00063 //- Construct as copy (not implemented) 00064 rhoChemistryModel(const rhoChemistryModel&); 00065 00066 //- Disallow default bitwise assignment 00067 void operator=(const rhoChemistryModel&); 00068 00069 00070 protected: 00071 00072 // Protected data 00073 00074 //- Thermo package 00075 autoPtr<hsReactionThermo> thermo_; 00076 00077 00078 public: 00079 00080 //- Runtime type information 00081 TypeName("rhoChemistryModel"); 00082 00083 00084 //- Declare run-time constructor selection tables 00085 declareRunTimeSelectionTable 00086 ( 00087 autoPtr, 00088 rhoChemistryModel, 00089 fvMesh, 00090 ( 00091 const fvMesh& mesh, 00092 const word& compTypeName, 00093 const word& thermoTypeName 00094 ), 00095 (mesh, compTypeName, thermoTypeName) 00096 ); 00097 00098 00099 // Constructors 00100 00101 //- Construct from mesh 00102 rhoChemistryModel(const fvMesh& mesh, const word& thermoTypeName); 00103 00104 00105 //- Selector 00106 static autoPtr<rhoChemistryModel> New(const fvMesh& mesh); 00107 00108 00109 //- Destructor 00110 virtual ~rhoChemistryModel(); 00111 00112 00113 // Member Functions 00114 00115 //- Return access to the thermo package 00116 inline hsReactionThermo& thermo(); 00117 00118 //- Return const access to the thermo package 00119 inline const hsReactionThermo& thermo() const; 00120 }; 00121 00122 00123 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00124 00125 } // End namespace Foam 00126 00127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00128 00129 #include "rhoChemistryModelI.H" 00130 00131 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00132 00133 #endif 00134 00135 // ************************ vim: set sw=4 sts=4 et: ************************ //