Skip to content

Grid Spline

Sam Reeve edited this page Sep 12, 2024 · 2 revisions

Overview

Cabana::Grid provides the B-Spline related interfaces for interpolation with uniform grids. The supported orders are:

  • 0 — Nearest Grid Point Interpolation
  • 1 — Linear
  • 2 — Quadratic
  • 3 — Cubic

Implementation

Cabana_Grid_Splines.hpp

Examples

Usage

    using value_type = double;
    constexpr int order = 2;

    Cabana::Grid::SplineData<value_type, order, Cabana::Grid::Node> sd_n;
    Cabana::Grid::evaluateSpline(local_mesh, x, sd_n);

This is part of the Programming Guide series

Clone this wiki locally