Go to the documentation of this file.
40 #ifndef interpolationLookUpTable_H
41 #define interpolationLookUpTable_H
64 public List<scalarField>
126 const scalar lookUpValue,
128 const label interfield
149 const word& instance,
173 const word& instance,
List< scalar > interpOutput_
Output list containing input and interpolation values of outputs.
const List< scalar > & delta() const
Return const access to the deltas in each dimension.
A class for handling words, derived from string.
A class for handling file names.
bool checkRange(const scalar, const label) const
Check range of lookup value.
const List< scalar > & min() const
Return const access to the list of min dimensions.
bool found(const word &fieldName) const
Return true if the field exists in the table.
word tableName() const
Return const access to the table name.
label index(const List< scalar > &, const bool lastDim=true) const
Find table index by scalarList.
List< label > entryIndices_
Input indices from the lookup table.
List< scalar > min_
Min on each dimension.
const List< dictionary > & entries() const
Return const access tp the dictionary entries.
void dimensionTable()
Dimension table from dictionaries input and output.
Registry of regIOobjects.
const scalarField & operator[](const label) const
Return an element of constant List<scalar, Type>
const List< dictionary > & output() const
Return const access to the output dictionaries.
List< label > outputIndices_
Output indices from the lookup Table.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
List< label > dim_
Table dimensions.
List< scalar > delta_
Deltas on each dimension.
A list of keyword definitions, which are a keyword followed by any number of values (e....
interpolationLookUpTable()
Construct null.
List< dictionary > entries_
Dictionary entries.
List< dictionary > output_
Output dictionaries.
void findHi(const label lo, const scalar retvals)
const List< label > & dim() const
Return const access to the list of dimensions.
List< scalar > max_
Maximum on each dimension.
const List< scalar > & max() const
Return const access to the list of max dimensions.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
scalar interpolate(const label lo, const label hi, const scalar lookUpValue, const label ofield, const label interfield) const
Interpolate function returning a scalar.
const List< scalar > & lookUp(const scalar)
Return the output list given a single input scalar.
HashTable< label > fieldIndices_
Field names and indices.
label findFieldIndex(const word &fieldName) const
Return the index of a field by name.
Various functions to operate on Lists.
A list of lists. Interpolates based on the first dimension. The values must be positive and monotonic...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
void readTable(const word &instance, const objectRegistry &)
Read the table of data from file.
void write(Ostream &, const fileName &, const word &instance, const objectRegistry &) const
Write lookup table to filename.
fileName fileName_
File name.