Go to the documentation of this file.
36 #ifndef interpolation2DTable_H
37 #define interpolation2DTable_H
55 public List<Tuple2<scalar, List<Tuple2<scalar, Type> > > >
100 template<
class BinaryOp>
159 Type
operator()(
const scalar,
const scalar)
const;
boundsHandling wordToBoundsHandling(const word &bound) const
Return the out-of-bounds handling as an enumeration.
A class for handling words, derived from string.
boundsHandling
Enumeration for handling out-of-bound values.
A class for handling file names.
autoPtr< tableReader< Type > > reader_
The actual reader.
volScalarField & bound(volScalarField &, const dimensionedScalar &lowerBound)
Bound the given scalar field if it has gone unbounded.
Type operator()(const scalar, const scalar) const
Return an interpolated value.
interpolation2DTable()
Construct null.
Type interpolateValue(const List< Tuple2< scalar, Type > > &data, const scalar) const
Return interpolated value in List.
fileName fileName_
File name.
boundsHandling outOfBounds(const boundsHandling &bound)
Set the out-of-bounds handling from enum, return previous setting.
2D table interpolation. The data must be in ascending order in both dimensions x and y.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
label Xi(const BinaryOp &bop, const scalar valueX, const bool reverse) const
Return an X index from the matrix.
void checkOrder() const
Check that list is monotonically increasing.
A list of keyword definitions, which are a keyword followed by any number of values (e....
void readTable()
Read the table of data from file.
word boundsHandlingToWord(const boundsHandling &bound) const
Return the out-of-bounds handling as a word.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
List< Tuple2< scalar, List< Tuple2< scalar, Type > > > > table
Cconvenience typedef.
const List< Tuple2< scalar, Type > > & operator[](const label) const
Return an element of constant Tuple2<scalar, Type>
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A 2-tuple for storing two objects of different types.
boundsHandling boundsHandling_
Enumeration for handling out-of-bound values.
Database for solution data, solver performance and other reduced data.
void write(Ostream &os) const
Write.
void reverse(UList< T > &, const label n)