BUG: UListIO: byteSize overflowing on really big faceLists
[OpenFOAM-2.0.x.git] / src / thermophysicalModels / chemistryModel / chemistrySolver / ode / ode.H
blob8da878f6fff64881c69bc12bdcae8fac83b7002b
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 2011 OpenFOAM Foundation
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
9     This file is part of OpenFOAM.
11     OpenFOAM is free software: you can redistribute it and/or modify it
12     under the terms of the GNU General Public License as published by
13     the Free Software Foundation, either version 3 of the License, or
14     (at your option) any later version.
16     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
19     for more details.
21     You should have received a copy of the GNU General Public License
22     along with OpenFOAM.  If not, see <http://www.gnu.org/licenses/>.
24 Class
25     Foam::ode
27 Description
28     An ODE solver for chemistry
30 SourceFiles
31     ode.C
33 \*---------------------------------------------------------------------------*/
35 #ifndef ode_H
36 #define ode_H
38 #include "chemistrySolver.H"
39 #include "ODESolver.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 namespace Foam
46 /*---------------------------------------------------------------------------*\
47                             Class ode Declaration
48 \*---------------------------------------------------------------------------*/
50 template<class ODEChemistryType>
51 class ode
53     public chemistrySolver<ODEChemistryType>
55     // Private data
57         dictionary coeffsDict_;
58         const word solverName_;
59         autoPtr<ODESolver> odeSolver_;
61         // Model constants
63             scalar eps_;
66 public:
68     //- Runtime type information
69     TypeName("ODE");
72     // Constructors
74         //- Construct from components
75         ode
76         (
77             const fvMesh& mesh,
78             const word& ODEModeNewlName,
79             const word& thermoType
80         );
83     //- Destructor
84     virtual ~ode();
87     // Member Functions
89         virtual scalar solve
90         (
91             scalarField& c,
92             const scalar T,
93             const scalar p,
94             const scalar t0,
95             const scalar dt
96         ) const;
100 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
102 } // End namespace Foam
104 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
106 #ifdef NoRepository
107 #   include "ode.C"
108 #endif
110 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
112 #endif
114 // ************************************************************************* //