OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

chemistrySolver.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-2007 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     chemistrySolver
00027 
00028 Description
00029 
00030 SourceFiles
00031     chemistrySolver.C
00032 
00033 \*---------------------------------------------------------------------------*/
00034 
00035 #ifndef chemistrySolver_H
00036 #define chemistrySolver_H
00037 
00038 #include "chemistryModel.H"
00039 #include "IOdictionary.H"
00040 #include "scalarField.H"
00041 #include "autoPtr.H"
00042 #include "runTimeSelectionTables.H"
00043 
00044 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00045 
00046 namespace Foam
00047 {
00048 
00049 /*---------------------------------------------------------------------------*\
00050                            Class chemistrySolver Declaration
00051 \*---------------------------------------------------------------------------*/
00052 
00053 class chemistrySolver
00054 {
00055 
00056 protected:
00057 
00058         const dictionary& dict_;
00059         chemistryModel& chemistry_;
00060 
00061 
00062 public:
00063 
00064         //- Runtime type information
00065         TypeName("chemistrySolver");
00066 
00067 
00068         // Declare runtime constructor selection table
00069         declareRunTimeSelectionTable
00070         (
00071             autoPtr,
00072             chemistrySolver,
00073             dictionary,
00074             (
00075                 const dictionary& dict,
00076                 chemistryModel& chemistry
00077             ),
00078             (dict, chemistry)
00079         );
00080 
00081 
00082     // Constructors
00083 
00084         //- Construct from components
00085         chemistrySolver
00086         (
00087             const dictionary& dict,
00088             chemistryModel& chemistry
00089         );
00090 
00091 
00092     // Selectors
00093 
00094         static autoPtr<chemistrySolver> New
00095         (
00096             const dictionary& dict,
00097             chemistryModel& chemistry        
00098         );
00099 
00100 
00101     // Destructor
00102 
00103         virtual ~chemistrySolver();
00104 
00105 
00106     // Member Functions
00107 
00108         //- Update the concentrations and return the chemical time
00109         virtual scalar solve
00110         (
00111             scalarField &c,
00112             const scalar T,
00113             const scalar p,
00114             const scalar t0,
00115             const scalar dt
00116         ) const = 0;
00117 };
00118 
00119 
00120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00121 
00122 } // End namespace Foam
00123 
00124 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00125 
00126 #endif
00127 
00128 // ************************************************************************* //
Copyright © 2000-2007 OpenCFD Ltd