OFELI's Logo

An Object Oriented Finite Element Library

To read and manipulate tabulated functions. More...

#include <Tabulation.h>

Public Member Functions

 Tabulation ()
 Default constructor.
 
 Tabulation (string file)
 Constructor using file name.
 
 ~Tabulation ()
 Destructor.
 
void setFile (string file)
 Set file name. More...
 
real_t getValue (string funct, real_t x)
 Return the calculated value of the function. More...
 
real_t getDerivative (string funct, real_t x)
 Return the derivative of the function at a given point. More...
 
real_t getValue (string funct, real_t x, real_t y)
 Return the calculated value of the function. More...
 
real_t getValue (string funct, real_t x, real_t y, real_t z)
 Return the calculated value of the function. More...
 
real_t getValue (string funct, real_t x, real_t y, real_t z, real_t t)
 Return the calculated value of the function. More...
 
size_t getNbFuncts () const
 Get the Number of read functions. More...
 
size_t getNbVar (size_t n) const
 Get number of variables of a given function. More...
 
string getFunctName (size_t n) const
 Get the name of a read function. More...
 
size_t getSize (size_t n, size_t i) const
 Get number of points defining tabulation. More...
 
real_t getMinVar (size_t n, size_t i) const
 Get minimal value of a variable. More...
 
real_t getMaxVar (size_t n, size_t i) const
 Get maximal value of a variable. More...
 

Detailed Description

To read and manipulate tabulated functions.

This class enables reading a tabulated function of one to three variables and calculating the value of the function using piecewise multilinear interpolation.
The file defining the function is an XML file where any function is introduced via the tag "Function". The abcissae are uniformly distributed.

Author
Rachid Touzani





Copyright © 1998-2022 Rachid Touzani