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 | www.openfoam.com
6 \\/ M anipulation |
7-------------------------------------------------------------------------------
8 Copyright (C) 2016-2017 OpenFOAM Foundation
9-------------------------------------------------------------------------------
10License
11 This file is part of OpenFOAM.
12
13 OpenFOAM is free software: you can redistribute it and/or modify it
14 under the terms of the GNU General Public License as published by
15 the Free Software Foundation, either version 3 of the License, or
16 (at your option) any later version.
17
18 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25
26Class
27 Foam::chemistryTabulationMethods::none
28
29Description
30
31\*---------------------------------------------------------------------------*/
32
33#ifndef chemistryTabulationMethod_none_H
34#define chemistryTabulationMethod_none_H
35
36// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
37
39
40namespace Foam
41{
42namespace chemistryTabulationMethods
43{
44
45/*---------------------------------------------------------------------------*\
46 Class none Declaration
47\*---------------------------------------------------------------------------*/
48
49template<class CompType, class ThermoType>
50class none
51:
52 public chemistryTabulationMethod<CompType, ThermoType>
53{
54 // Private Member Functions
55
56 //- No copy construct
57 none(const none&) = delete;
58
59
60public:
61
62 //- Runtime type information
63 TypeName("none");
64
65 // Constructors
66
67 //- Construct from dictionary
68 none
69 (
70 const dictionary& chemistryProperties,
72 );
73
74
75 // Destructor
76 virtual ~none();
77
78
79 // Member Functions
80
81 //- Return the size of the binary tree
82 virtual label size()
83 {
85 return 0;
86 }
88 virtual void writePerformance()
89 {
91 }
92
93 //- Find the closest stored leaf of phiQ and store the result in
94 // RphiQ or return false.
95 virtual bool retrieve
96 (
97 const Foam::scalarField& phiq,
98 scalarField& Rphiq
99 )
100 {
102 return false;
103 }
104
105 // Add information to the tabulation.This function can grow an
106 // existing point or add a new leaf to the binary tree Input : phiq
107 // the new composition to store Rphiq the mapping of the new
108 // composition point
109 virtual label add
110 (
111 const scalarField& phiq,
112 const scalarField& Rphiq,
113 const scalar rho,
114 const scalar deltaT
115 )
116 {
118 return false;
119 }
121 virtual bool update()
122 {
124 return false;
125 }
126};
127
128
129// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
130
131} // End namespace chemistryTabulationMethods
132} // End namespace Foam
133
134// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
135
136#ifdef NoRepository
137 #include "noChemistryTabulation.C"
138#endif
139
140// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
141
142#endif
143
144// ************************************************************************* //
Extends StandardChemistryModel by adding the TDAC method.
An abstract class for chemistry tabulation.
virtual label add(const scalarField &phiq, const scalarField &Rphiq, const scalar rho, const scalar deltaT)
virtual label size()
Return the size of the binary tree.
TypeName("none")
Runtime type information.
virtual bool retrieve(const Foam::scalarField &phiq, scalarField &Rphiq)
Find the closest stored leaf of phiQ and store the result in.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
BasicChemistryModel< psiReactionThermo > & chemistry
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Definition: error.H:517
Namespace for OpenFOAM.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73