46 class interpolationWeights;
48 namespace Function1Types
150 virtual Type
value(
const scalar
x)
const;
153 virtual Type
integrate(
const scalar x1,
const scalar x2)
const;
Issue warning and clamp value (default)
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
virtual Type value(const scalar x) const
Return Table value.
bool checkMinBounds(const scalar x, scalar &xDash) const
Check minimum table bounds.
boundsHandling wordToBoundsHandling(const word &bound) const
Return the out-of-bounds handling as an enumeration.
boundsHandling outOfBounds(const boundsHandling &bound)
Set the out-of-bounds handling from enum, return previous setting.
const word & name() const
Return the name of the entry.
const word const dictionary & dict
TableBase(const word &name, const dictionary &dict)
Construct from dictionary - note table is not populated.
virtual void writeEntries(Ostream &os) const
Write keywords only in dictionary format. Used for non-inline.
List< Tuple2< scalar, Type > > table_
Table data.
A list of keyword definitions, which are a keyword followed by any number of values (e...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void operator=(const TableBase< Type > &)
Disallow default bitwise assignment.
autoPtr< interpolationWeights > interpolatorPtr_
Interpolator method.
Abstract base class for interpolating in 1D.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
word boundsHandlingToWord(const boundsHandling &bound) const
Return the out-of-bounds handling as a word.
virtual ~TableBase()
Destructor.
Treat as a repeating list.
Base class for table with bounds handling, interpolation and integration.
bool checkMaxBounds(const scalar x, scalar &xDash) const
Check maximum table bounds.
const word name_
Table name.
A class for handling words, derived from string.
const interpolationWeights & interpolator() const
Return (demand driven) interpolator.
virtual tmp< scalarField > x() const
Return the reference values.
scalarField currentWeights_
virtual Type integrate(const scalar x1, const scalar x2) const
Integrate between two (scalar) values.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void check() const
Check the table for size and consistency.
virtual tmp< Field< Type > > y() const
Return the dependent values.
const word interpolationScheme_
Interpolation type.
virtual void convertTimeBase(const Time &t)
Convert time.
autoPtr< scalarField > tableSamplesPtr_
Extracted values.
const boundsHandling boundsHandling_
Enumeration for handling out-of-bound values.
labelList currentIndices_
Cached indices and weights.
volScalarField & bound(volScalarField &, const dimensionedScalar &lowerBound)
Bound the given scalar field if it has gone unbounded.
virtual void writeData(Ostream &os) const
Write all table data in dictionary format.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A class for managing temporary objects.
Clamp value to the start/end value.
boundsHandling
Enumeration for handling out-of-bound values.