Celeritas
0.5.0-86+4a8eea4
|
Find and do bilinear interpolation on a nonuniform 2D grid of reals. More...
#include <TwodGridCalculator.hh>
Public Types | |
Type aliases | |
using | Point = Array< real_type, 2 > |
using | Values = Collection< real_type, Ownership::const_reference, MemSpace::native > |
Public Member Functions | |
CELER_FUNCTION | TwodGridCalculator (TwodGridData const &grid, Values const &storage) |
Construct with grids and node-centered data. | |
CELER_FUNCTION real_type | operator() (Point const &xy) const |
Calculate the value at the given (x, y) coordinates. More... | |
CELER_FUNCTION TwodSubgridCalculator | operator() (real_type x) const |
Get an interpolator for a preselected x value. | |
Find and do bilinear interpolation on a nonuniform 2D grid of reals.
Values should be node-centered, at the intersection of the two grids.
|
inline |
Calculate the value at the given (x, y) coordinates.
The coordinates must be inside \(0 <= x < x_\mathrm{max}\) and \(0 <= y < y_\mathrm{max}\).