1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright held by original author
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
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 the
13 Free Software Foundation; either version 2 of the License, or (at your
14 option) any later version.
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
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM; if not, write to the Free Software Foundation,
23 Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 Point of the binary tree.
28 \*---------------------------------------------------------------------------*/
33 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
36 #include "dictionary.H"
38 #include "scalarField.H"
45 /*---------------------------------------------------------------------------*\
46 Class chemPoint Declaration
47 \*---------------------------------------------------------------------------*/
53 //- Reference to the node in the binary tree
60 //- Number of times the element has been used
63 //- Vector storing the composition, temperature and pressure
66 //- Reaction mapping for v0
69 //- Ellipsoid of accuracy
72 //- Ellipsoid of accuracy for the solution
73 scalarField solutionsEOA_;
75 //- tolerance for the Ellipsoid of accuracy
78 //- Use logarithm of temperature
81 //- Time step, stored but not actually used
84 //- Ellipsoid of accuracy for the time step
92 //- Construct from components
95 const scalarField& v0,
97 const scalarField& tolerances,
98 const scalarField& tolerancesSolutions,
104 //- Construct from components and reference to a binary node
107 const scalarField& v0,
108 const scalarField& r,
109 const scalarField& tolerances,
110 const scalarField& tolerancesSolutions,
111 const scalar& absErr,
113 const scalar& deltaT,
117 //- Construct from another chemPoint and reference to a binary node
124 //- Construct from another chemPoint
133 inline label& nUsed()
138 inline const label& nUsed() const
143 inline scalarField& v0()
148 inline const scalarField& v0() const
153 inline scalarField& r()
158 inline const scalarField& r() const
163 inline scalarField& EOA()
168 inline const scalarField& EOA() const
173 inline scalarField& solutionsEOA()
175 return solutionsEOA_;
178 inline const scalarField& solutionsEOA() const
180 return solutionsEOA_;
183 inline const scalar& absErr() const
188 inline Switch& logT()
193 inline const Switch& logT() const
198 inline binaryNode* node()
203 inline scalar& deltaT()
208 inline const scalar& deltaT() const
213 inline scalar& timeEOA()
218 inline const scalar& timeEOA() const
226 // const scalarField& point,
227 // const scalarField& scaleFactor,
231 // Is the point in the ellipsoid of accuracy?
234 const scalarField& point,
235 const scalarField& Wi,
237 const scalar& deltaT,
238 const scalarField& scaleFactor
241 // Grow the ellipsoid of accuracy?
244 const scalarField& v0,
245 const scalarField& Wi,
247 const scalarField& v,
251 // Check if the new solution is in the ellipsoid of accuracy?
254 const scalarField& v0,
255 const scalarField& v,
256 const scalarField& Wi,
260 const scalar& deltaT,
261 const scalarField& tolerance
264 //- Set free the point from its node, used for replacing
265 // in the binary tree
268 // clear all the stored data
273 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
275 } // End namespace Foam
277 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
281 // ************************************************************************* //