42#ifndef Foam_interpolationLookUpTable_H
43#define Foam_interpolationLookUpTable_H
66 public List<scalarField>
88 List<dictionary> entries_;
91 List<dictionary> output_;
94 List<label> entryIndices_;
97 List<label> outputIndices_;
103 List<scalar> interpOutput_;
112 void dimensionTable();
115 label index(
const List<scalar>&,
const bool lastDim=
true)
const;
118 label index(
const scalar)
const;
121 bool checkRange(
const scalar,
const label)
const;
128 const scalar lookUpValue,
130 const label interfield
137 void findHi(
const label lo,
const scalar retvals);
151 const word& instance,
168 const List<scalar>&
lookUp(
const scalar);
175 const word& instance,
186 inline const List<dictionary>&
output()
const;
189 inline const List<dictionary>&
entries()
const;
192 inline const List<scalar>&
min()
const;
195 inline const List<label>&
dim()
const;
198 inline const List<scalar>&
delta()
const;
201 inline const List<scalar>&
max()
const;
Various functions to operate on Lists.
A HashTable similar to std::unordered_map.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A class for handling file names.
Mesh data needed to do the Finite Volume discretisation.
const List< scalar > & delta() const
Return const access to the deltas in each dimension.
word tableName() const
Return const access to the table name.
const List< dictionary > & output() const
Return const access to the output dictionaries.
bool contains(const word &fieldName) const
Return true if the field exists in the table.
const List< label > & dim() const
Return const access to the list of dimensions.
const scalarField & operator[](const label) const
Return an element of constant List<scalar, Type>.
const List< scalar > & lookUp(const scalar)
Return the output list given a single input scalar.
const List< scalar > & min() const
Return const access to the list of min dimensions.
const List< dictionary > & entries() const
Return const access tp the dictionary entries.
interpolationLookUpTable()
Construct null.
label findFieldIndex(const word &fieldName) const
Return the index of a field by name.
const List< scalar > & max() const
Return const access to the list of max dimensions.
bool found(const word &fieldName) const
Same as contains().
Registry of regIOobjects.
A class for handling words, derived from Foam::string.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.