A two-column ( x, y ) text table with linear interpolation. More...
#include <user_table.hpp>
Public Member Functions | |
| Table (const std::string &File) | |
| belfem::real | operator() (const belfem::real x) |
A two-column ( x, y ) text table with linear interpolation.
The file is read on the first call and kept for the life of the process. Arguments outside the sampled range are clamped to the end values, which is what the original per-file loaders did.
Declare one as a function-local static:
real cu_cp( const Material* mat, real T )
{
static usermat::Table tTable( "cp_Cu.txt" ) ;
return tTable( T ) ;
}
|
inlineexplicit |
|
inline |