Celeritas 0.7.0-9+develop.0ac2b625d
Loading...
Searching...
No Matches
Functions
DerivativeGridCalculator.cc File Reference
#include "DerivativeGridCalculator.hh"
#include "GridTypes.hh"
#include "VectorUtils.hh"

Functions

inp::Grid celeritas::construct_derivative_grid (inp::Grid const &grid)
 Construct the derivative grid using interval slopes.
 

Function Documentation

◆ construct_derivative_grid()

inp::Grid celeritas::construct_derivative_grid ( inp::Grid const &  grid)

Construct the derivative grid using interval slopes.

Interior values are placed at the arithmetic mean of each interval's endpoints. The first and last values use their nearest interval slope.

Todo:
Currently only linearly interpolated grids are supported since they are necessary for calculating group velocity from refractive index.