3.5-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 RandomAccessContainer0 , class RandomAccessContainer1 >
static constexpr Scalar interpolate (Scalar ip, const RandomAccessContainer0 &range, const RandomAccessContainer1 &values)
 interpolate linearly in a piecewise linear function (tabularized function) More...
 
template<class Scalar , class RandomAccessContainer >
static constexpr Scalar interpolate (Scalar ip, const std::pair< RandomAccessContainer, RandomAccessContainer > &table)
 

Member Function Documentation

◆ interpolate() [1/2]

template<class Scalar , class RandomAccessContainer0 , class RandomAccessContainer1 >
static constexpr Scalar Dumux::InterpolationPolicy::LinearTable::interpolate ( Scalar  ip,
const RandomAccessContainer0 &  range,
const RandomAccessContainer1 &  values 
)
inlinestaticconstexpr

interpolate linearly in a piecewise linear function (tabularized function)

Parameters
ipthe interpolation point
rangepositions of values
valuesvalues to interpolate from
Note
if the interpolation point is out of bounds this will return the bounds

◆ interpolate() [2/2]

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

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