Go to the documentation of this file.
38 #ifndef Function1Types_TableBase_H
39 #define Function1Types_TableBase_H
51 class interpolationWeights;
53 namespace Function1Types
134 virtual Type
value(
const scalar
x)
const;
137 virtual Type
integrate(
const scalar x1,
const scalar x2)
const;
const word interpolationScheme_
Interpolation type.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
autoPtr< interpolationWeights > interpolatorPtr_
Interpolator method.
bool checkMaxBounds(const scalar x, scalar &xDash) const
Check maximum table bounds.
A class for handling words, derived from Foam::string.
const interpolationWeights & interpolator() const
Return (demand driven) interpolator.
A class for managing temporary objects.
const word const dictionary & dict
List< Tuple2< scalar, Type > > table_
Table data.
virtual Type integrate(const scalar x1, const scalar x2) const
Integrate between two (scalar) values.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
repeatableBounding
Enumeration for handling out-of-bound values that are repeatable.
virtual Type value(const scalar x) const
Return Table value.
Registry of regIOobjects.
const word const dictionary const objectRegistry * obrPtr
autoPtr< scalarField > tableSamplesPtr_
Extracted values.
virtual tmp< scalarField > x() const
Return the reference values.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Abstract base class for interpolating in 1D.
OBJstream os(runTime.globalPath()/outputName)
void initialise()
Check the table for size and consistency.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
scalarField currentWeights_
void operator=(const TableBase< Type > &)=delete
No copy assignment.
virtual void writeData(Ostream &os) const
Write all table data in dictionary format.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
TableBase(const word &name, const dictionary &dict, const objectRegistry *obrPtr=nullptr)
Construct from dictionary - note table is not populated.
virtual void writeEntries(Ostream &os) const
Write keywords only in dictionary format.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
virtual ~TableBase()=default
Destructor.
Base class for table with bounds handling, interpolation and integration.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual tmp< Field< Type > > y() const
Return the dependent values.
bool checkMinBounds(const scalar x, scalar &xDash) const
Check minimum table bounds.
labelList currentIndices_
Cached indices and weights.
virtual void userTimeToTime(const Time &t)
Convert time.
const bounds::repeatableBounding bounding_
Handling for out-of-bound values.