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 -------------------------------------------------------------------------------
10 License
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 
26 Class
27  Foam::chemistryTabulationMethods::none
28 
29 Description
30 
31 \*---------------------------------------------------------------------------*/
32 
33 #ifndef chemistryTabulationMethod_none_H
34 #define chemistryTabulationMethod_none_H
35 
36 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
37 
39 
40 namespace Foam
41 {
42 namespace chemistryTabulationMethods
43 {
44 
45 /*---------------------------------------------------------------------------*\
46  Class none Declaration
47 \*---------------------------------------------------------------------------*/
48 
49 template<class CompType, class ThermoType>
50 class none
51 :
52  public chemistryTabulationMethod<CompType, ThermoType>
53 {
54  // Private Member Functions
55 
56  //- No copy construct
57  none(const none&) = delete;
58 
59 
60 public:
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  }
87 
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  }
120 
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 // ************************************************************************* //
chemistryTabulationMethod.H
Foam::chemistryTabulationMethods::none::~none
virtual ~none()
Definition: noChemistryTabulation.C:52
Foam::chemistryTabulationMethods::none::writePerformance
virtual void writePerformance()
Definition: noChemistryTabulation.H:87
Foam::chemistryTabulationMethods::none::update
virtual bool update()
Definition: noChemistryTabulation.H:120
chemistry
BasicChemistryModel< psiReactionThermo > & chemistry
Definition: createFieldRefs.H:1
rho
rho
Definition: readInitialConditions.H:88
NotImplemented
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Definition: error.H:445
Foam::Field< scalar >
Foam::chemistryTabulationMethods::none::retrieve
virtual bool retrieve(const Foam::scalarField &phiq, scalarField &Rphiq)
Find the closest stored leaf of phiQ and store the result in.
Definition: noChemistryTabulation.H:95
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:121
Foam::chemistryTabulationMethods::none
Definition: noChemistryTabulation.H:49
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::chemistryTabulationMethods::none::add
virtual label add(const scalarField &phiq, const scalarField &Rphiq, const scalar rho, const scalar deltaT)
Definition: noChemistryTabulation.H:109
Foam::chemistryTabulationMethods::none::TypeName
TypeName("none")
Runtime type information.
noChemistryTabulation.C
Foam::TDACChemistryModel< CompType, ThermoType >
Foam::chemistryTabulationMethods::none::size
virtual label size()
Return the size of the binary tree.
Definition: noChemistryTabulation.H:81
Foam::chemistryTabulationMethod
An abstract class for chemistry tabulation.
Definition: chemistryTabulationMethod.H:59