noChemistryReduction.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2016-2021 OpenFOAM Foundation
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::chemistryReductionMethods::none
26 
27 Description
28  A chemistryReductionMethod which does nothing to allow reduction to be
29  switched-off.
30 
31 SourceFiles
32  noChemistryReduction.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef noChemistryReduction_H
37 #define noChemistryReduction_H
38 
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 namespace chemistryReductionMethods
46 {
47 
48 /*---------------------------------------------------------------------------*\
49  Class none Declaration
50 \*---------------------------------------------------------------------------*/
51 
52 template<class ThermoType>
53 class none
54 :
55  public chemistryReductionMethod<ThermoType>
56 {
57 
58 public:
59 
60  //- Runtime type information
61  TypeName("none");
62 
63 
64  // Constructors
65 
66  //- Construct from components
67  none
68  (
69  const IOdictionary& dict,
71  );
72 
73 
74  //- Destructor
75  virtual ~none();
76 
77 
78  // Member Functions
79 
80  //- Return mechanism reduction inactive
81  virtual bool active() const
82  {
83  return false;
84  }
85 
86  //- Reduce the mechanism
87  virtual void reduceMechanism
88  (
89  const scalar p,
90  const scalar T,
91  const scalarField& c,
92  List<label>& ctos,
93  DynamicList<label>& stoc,
94  const label li
95  );
96 
97  virtual void update()
98  {}
99 };
100 
101 
102 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
103 
104 } // End namespace chemistryReductionMethods
105 } // End namespace Foam
106 
107 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
108 
109 #ifdef NoRepository
110  #include "noChemistryReduction.C"
111 #endif
112 
113 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
114 
115 #endif
116 
117 // ************************************************************************* //
dictionary dict
virtual bool active() const
Return mechanism reduction inactive.
none(const IOdictionary &dict, chemistryModel< ThermoType > &chemistry)
Construct from components.
const dimensionedScalar c
Speed of light in a vacuum.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Definition: IOdictionary.H:53
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects...
Definition: DynamicList.H:56
A chemistryReductionMethod which does nothing to allow reduction to be switched-off.
basicChemistryModel & chemistry
virtual void reduceMechanism(const scalar p, const scalar T, const scalarField &c, List< label > &ctos, DynamicList< label > &stoc, const label li)
Reduce the mechanism.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Extends base chemistry model by adding a thermo package, and ODE functions. Introduces chemistry equa...
An abstract class for methods of chemical mechanism reduction.
TypeName("none")
Runtime type information.
volScalarField & p
Namespace for OpenFOAM.