Transferred copyright to the OpenFOAM Foundation
[OpenFOAM-2.0.x.git] / src / thermophysicalModels / chemistryModel / chemistrySolver / noChemistrySolver / noChemistrySolver.H
blobb46f59927e3bce49eb0fc399a015ba240d24ea1c
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::noChemistrySolver
27 Description
28     Dummy chemistry solver for 'none' option
30 SourceFiles
31     noChemistrySolver.H
32     noChemistrySolver.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef noChemistySolver_H
37 #define noChemistySolver_H
39 #include "chemistrySolver.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 namespace Foam
46 /*---------------------------------------------------------------------------*\
47                      Class noChemistrySolver Declaration
48 \*---------------------------------------------------------------------------*/
50 template<class ODEChemistryType>
51 class noChemistrySolver
53     public chemistrySolver<ODEChemistryType>
56 public:
58     //- Runtime type information
59     TypeName("none");
62     // Constructors
65         //- Construct from components
66         noChemistrySolver
67         (
68             const fvMesh& mesh,
69             const word& ODEModelName,
70             const word& thermoType
71         );
74     //- Destructor
75     virtual ~noChemistrySolver();
78     // Member Functions
80         //- Update the concentrations and return the chemical time
81         virtual scalar solve
82         (
83             scalarField &c,
84             const scalar T,
85             const scalar p,
86             const scalar t0,
87             const scalar dt
88         ) const;
92 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
94 } // End namespace Foam
96 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
98 #ifdef NoRepository
99 #   include "noChemistrySolver.C"
100 #endif
102 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
104 #endif
106 // ************************************************************************* //