FreeFOAM The Cross-Platform CFD Toolkit
sequential.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
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.
15 
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.
20 
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/>.
23 
24 Class
25  Foam::sequential
26 
27 Description
28  Foam::sequential
29 
30 SourceFiles
31  sequentialI.H
32  sequential.C
33  sequentialIO.C
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef sequential_H
38 #define sequential_H
39 
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 
47 // Forward declaration of classes
48 template<class CompType, class ThermoType>
49 class sequential;
50 
51 /*---------------------------------------------------------------------------*\
52  Class sequential Declaration
53 \*---------------------------------------------------------------------------*/
54 
55 template<class CompType, class ThermoType>
57 :
58  public chemistrySolver<CompType, ThermoType>
59 {
60  // Private data
61 
62  dictionary coeffsDict_;
63 
64  // Model constants
65 
66  scalar cTauChem_;
67  Switch equil_;
68 
69 
70 public:
71 
72  //- Runtime type information
73  TypeName("sequential");
74 
75 
76  // Constructors
77 
78 
79  //- Construct from components
81  (
83  const word& modelName
84  );
85 
86 
87  //- Destructor
88  virtual ~sequential();
89 
90 
91  // Member Functions
92 
93  //- Update the concentrations and return the chemical time
94  scalar solve
95  (
96  scalarField &c,
97  const scalar T,
98  const scalar p,
99  const scalar t0,
100  const scalar dt
101  ) const;
102 };
103 
104 
105 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
106 
107 } // End namespace Foam
108 
109 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
110 
111 #ifdef NoRepository
112 # include "sequential.C"
113 #endif
114 
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
116 
117 #endif
118 
119 // ************************ vim: set sw=4 sts=4 et: ************************ //