<h3>Specific improvements</h3>
<ol>
- <li> New: There is now a new class InterpolatedTensorProductData that can
+ <li> New: There is now a new class InterpolatedTensorProductGridData that can
be used to (bi-/tri-)linearly interpolate data given on a tensor product
mesh of $x$ (and $y$ and $z$) values, for example to evaluate experimentally
determined coefficients, or to assess the accuracy of a solution by
* @author Wolfgang Bangerth, 2013
*/
template <int dim>
- class InterpolatedTensorProductData : public Function<dim>
+ class InterpolatedTensorProductGridData : public Function<dim>
{
public:
/**
* converting other data types into a table where you specify this
* argument.
*/
- InterpolatedTensorProductData (const boost::array<std::vector<double>,dim> &coordinate_values,
- const Table<dim,double> &data_values);
+ InterpolatedTensorProductGridData (const boost::array<std::vector<double>,dim> &coordinate_values,
+ const Table<dim,double> &data_values);
/**
* Compute the value of the function set by bilinear interpolation of the
template <int dim>
- InterpolatedTensorProductData<dim>::
- InterpolatedTensorProductData(const boost::array<std::vector<double>,dim> &coordinate_values,
- const Table<dim,double> &data_values)
+ InterpolatedTensorProductGridData<dim>::
+ InterpolatedTensorProductGridData(const boost::array<std::vector<double>,dim> &coordinate_values,
+ const Table<dim,double> &data_values)
:
coordinate_values (coordinate_values),
data_values (data_values)
template <int dim>
double
- InterpolatedTensorProductData<dim>::value(const Point<dim> &p,
- const unsigned int component) const
+ InterpolatedTensorProductGridData<dim>::value(const Point<dim> &p,
+ const unsigned int component) const
{
Assert (component == 0,
ExcMessage ("This is a scalar function object, the component can only be zero."));
template class Monomial<3>;
template class Bessel1<2>;
template class Bessel1<3>;
- template class InterpolatedTensorProductData<1>;
- template class InterpolatedTensorProductData<2>;
- template class InterpolatedTensorProductData<3>;
+ template class InterpolatedTensorProductGridData<1>;
+ template class InterpolatedTensorProductGridData<2>;
+ template class InterpolatedTensorProductGridData<3>;
}
DEAL_II_NAMESPACE_CLOSE
const Table<dim,double> data = fill(coordinates);
- Functions::InterpolatedTensorProductData<dim> f(coordinates, data);
+ Functions::InterpolatedTensorProductGridData<dim> f(coordinates, data);
// now choose a number of randomly chosen points inside the box and
// verify that the functions returned are correct