noChemistryTabulation.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-2019 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::chemistryTabulationMethods::none
26 
27 Description
28 
29 \*---------------------------------------------------------------------------*/
30 
31 #ifndef noChemistryTabulation_H
32 #define noChemistryTabulation_H
33 
34 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
35 
37 
38 namespace Foam
39 {
40 namespace chemistryTabulationMethods
41 {
42 
43 /*---------------------------------------------------------------------------*\
44  Class none Declaration
45 \*---------------------------------------------------------------------------*/
46 
47 template<class CompType, class ThermoType>
48 class none
49 :
50  public chemistryTabulationMethod<CompType, ThermoType>
51 {
52 public:
53 
54  //- Runtime type information
55  TypeName("none");
56 
57  // Constructors
58 
59  //- Construct from dictionary
60  none
61  (
62  const dictionary& chemistryProperties,
64  );
65 
66  //- Disallow default bitwise copy construction
67  none(const none&) = delete;
68 
69 
70  // Destructor
71  virtual ~none();
72 
73 
74  // Member Functions
75 
76  //- Return the size of the binary tree
77  virtual label size()
78  {
80  return 0;
81  }
82 
83  virtual void writePerformance()
84  {
86  }
87 
88  //- Find the closest stored leaf of phiQ and store the result in
89  // RphiQ or return false.
90  virtual bool retrieve
91  (
92  const Foam::scalarField& phiq,
93  scalarField& Rphiq
94  )
95  {
97  return false;
98  }
99 
100  // Add information to the tabulation.This function can grow an
101  // existing point or add a new leaf to the binary tree Input : phiq
102  // the new composition to store Rphiq the mapping of the new
103  // composition point
104  virtual label add
105  (
106  const scalarField& phiq,
107  const scalarField& Rphiq,
108  const scalar rho,
109  const scalar deltaT
110  )
111  {
113  return false;
114  }
116  virtual bool update()
117  {
119  return false;
120  }
121 };
122 
123 
124 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
125 
126 } // End namespace chemistryTabulationMethods
127 } // End namespace Foam
128 
129 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
130 
131 #ifdef NoRepository
132  #include "noChemistryTabulation.C"
133 #endif
134 
135 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
136 
137 #endif
138 
139 // ************************************************************************* //
TypeName("none")
Runtime type information.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
virtual bool retrieve(const Foam::scalarField &phiq, scalarField &Rphiq)
Find the closest stored leaf of phiQ and store the result in.
virtual label size()
Return the size of the binary tree.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:158
BasicChemistryModel< rhoReactionThermo > & chemistry
none(const dictionary &chemistryProperties, TDACChemistryModel< CompType, ThermoType > &chemistry)
Construct from dictionary.
An abstract class for chemistry tabulation.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Definition: error.H:366
Namespace for OpenFOAM.
virtual label add(const scalarField &phiq, const scalarField &Rphiq, const scalar rho, const scalar deltaT)