3.2-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Static Public Member Functions | List of all members
Dumux::InterpolationPolicy::LinearTable Struct Reference

interpolate linearly in a piecewise linear function (tabularized function) More...

#include <dumux/common/math.hh>

Description

interpolate linearly in a piecewise linear function (tabularized function)

Static Public Member Functions

template<class Scalar , class RandomAccessContainer >
static constexpr Scalar interpolate (Scalar ip, const std::pair< RandomAccessContainer, RandomAccessContainer > &table)
 interpolate linearly in a piecewise linear function (tabularized function) More...
 

Member Function Documentation

◆ interpolate()

template<class Scalar , class RandomAccessContainer >
static constexpr Scalar Dumux::InterpolationPolicy::LinearTable::interpolate ( Scalar  ip,
const std::pair< RandomAccessContainer, RandomAccessContainer > &  table 
)
inlinestaticconstexpr

interpolate linearly in a piecewise linear function (tabularized function)

Parameters
ipthe interpolation point
tablethe table as a pair of sorted vectors (have to be same size)
Note
if the interpolation point is out of bounds this will return the bounds

The documentation for this struct was generated from the following file: