chemPointISATI.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-2022 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 \*---------------------------------------------------------------------------*/
25 
28 {
29  return table_;
30 }
31 
32 
34 {
35  return nGrowth_;
36 }
37 
38 
40 {
41  return completeSpaceSize_;
42 }
43 
44 
46 {
47  return completeSpaceSize_;
48 }
49 
50 
52 {
53  return phi_;
54 }
55 
56 
58 {
59  return Rphi_;
60 }
61 
62 
64 {
65  return scaleFactor_;
66 }
67 
68 
69 inline const Foam::scalar& Foam::chemPointISAT::tolerance() const
70 {
71  return tolerance_;
72 }
73 
74 
75 inline void Foam::chemPointISAT::changeTolerance(scalar newTol)
76 {
77  tolerance_ = newTol;
78 }
79 
80 
82 {
83  return node_;
84 }
85 
86 
88 {
89  return A_;
90 }
91 
92 
94 {
95  return A_;
96 }
97 
98 
100 {
101  return LT_;
102 }
103 
104 
106 {
107  return LT_;
108 }
109 
110 
112 {
113  return nActive_;
114 }
115 
116 
117 inline const Foam::List<Foam::label>&
119 {
120  return completeToSimplifiedIndex_;
121 }
122 
123 
124 inline const Foam::List<Foam::label>&
126 {
127  return simplifiedToCompleteIndex_;
128 }
129 
130 
132 {
133  this->numRetrieve_++;
134 }
135 
136 
138 {
139  this->numRetrieve_ = 0;
140 }
141 
142 
144 {
145  this->nLifeTime_++;
146 }
147 
148 
150 (
151  const label i
152 )
153 {
154  if (i < nActive_)
155  {
156  return simplifiedToCompleteIndex_[i];
157  }
158  else if (i == nActive_)
159  {
160  return completeSpaceSize_ - 3;
161  }
162  else if (i == nActive_ + 1)
163  {
164  return completeSpaceSize_ - 2;
165  }
166  else if (i == nActive_ + 2)
167  {
168  return completeSpaceSize_ - 1;
169  }
170  else
171  {
172  return -1;
173  }
174 }
175 
176 
178 {
179  return timeTag_;
180 }
181 
182 
184 {
185  return lastTimeUsed_;
186 }
187 
188 
190 {
191  return toRemove_;
192 }
193 
194 
196 {
197  return maxNumNewDim_;
198 }
199 
200 
202 {
203  return numRetrieve_;
204 }
205 
206 
208 {
209  return nLifeTime_;
210 }
211 
212 
213 // ************************************************************************* //
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Definition: List.H:91
Node of the binary tree.
Definition: binaryNode.H:49
void resetNumRetrieve()
Resets the number of retrieves at each time step.
void increaseNumRetrieve()
Increases the number of retrieves the chempoint has generated.
const label & timeTag()
const List< label > & completeToSimplifiedIndex() const
binaryNode *& node()
label nActive() const
const scalarField & Rphi() const
const scalarField & phi() const
const scalarField & scaleFactor() const
void increaseNLifeTime()
Increases the "counter" of the chP life.
const scalarSquareMatrix & LT() const
const label & nLifeTime()
const scalarSquareMatrix & A() const
const scalar & tolerance() const
static void changeTolerance(scalar newTol)
label nGrowth() const
const chemistryTabulationMethods::ISAT & table() const
Access to the ISAT table.
label & completeSpaceSize()
const List< label > & simplifiedToCompleteIndex() const
const label & numRetrieve()
Implementation of the ISAT (In-situ adaptive tabulation), for chemistry calculation.
Definition: ISAT.H:63
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