1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2008 OpenCFD Ltd.
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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
29 Templated table container data entry. Items are stored in a list of
30 Tuple2's. First column is always stored as scalar entries. Data is read
31 in the form, e.g. for (scalar, vector):
48 \*---------------------------------------------------------------------------*/
53 #include "DataEntry.H"
56 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
61 /*---------------------------------------------------------------------------*\
62 Class Table Declaration
63 \*---------------------------------------------------------------------------*/
68 public DataEntry<Type>
73 List<Tuple2<scalar, Type> > table_;
76 // Private Member Functions
78 //- Disallow default bitwise copy construct
79 Table(const Table<Type>&);
81 //- Disallow default bitwise assignment
82 void operator=(const Table<Type>&);
87 // Runtime type information
93 //- Construct from dictionary
96 const word& entryName,
97 const dictionary& dict
108 //- Return Table value
109 Type value(const scalar x) const;
111 //- Integrate between two (scalar) values
112 Type integrate(const scalar x1, const scalar x2) const;
116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 } // End namespace Foam
120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
130 // ************************************************************************* //