noChemistryTabulation.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) 2016-2017 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 chemistryTabulationMethod_none_H
32 #define chemistryTabulationMethod_none_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  // Private Member Functions
53 
54  //- Disallow default bitwise copy construct
55  none(const none&);
56 
57 
58 public:
59 
60  //- Runtime type information
61  TypeName("none");
62 
63  // Constructors
64 
65  //- Construct from dictionary
66  none
67  (
68  const dictionary& chemistryProperties,
70  );
71 
72 
73  // Destructor
74  virtual ~none();
75 
76 
77  // Member Functions
78 
79  //- Return the size of the binary tree
80  virtual label size()
81  {
83  return 0;
84  }
85 
86  virtual void writePerformance()
87  {
89  }
90 
91  //- Find the closest stored leaf of phiQ and store the result in
92  // RphiQ or return false.
93  virtual bool retrieve
94  (
95  const Foam::scalarField& phiq,
96  scalarField& Rphiq
97  )
98  {
100  return false;
101  }
102 
103  // Add information to the tabulation.This function can grow an
104  // existing point or add a new leaf to the binary tree Input : phiq
105  // the new composition to store Rphiq the mapping of the new
106  // composition point
107  virtual label add
108  (
109  const scalarField& phiq,
110  const scalarField& Rphiq,
111  const scalar rho,
112  const scalar deltaT
113  )
114  {
116  return false;
117  }
119  virtual bool update()
120  {
122  return false;
123  }
124 };
125 
126 
127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
128 
129 } // End namespace chemistryTabulationMethods
130 } // End namespace Foam
131 
132 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
133 
134 #ifdef NoRepository
135  #include "noChemistryTabulation.C"
136 #endif
137 
138 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
139 
140 #endif
141 
142 // ************************************************************************* //
TypeName("none")
Runtime type information.
Extends chemistryModel by adding the TDAC method.
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:137
An abstract class for chemistry tabulation.
psiChemistryModel & chemistry
Definition: createFields.H:29
#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)