Grids

Tabulated physics data such as cross sections or energy loss are stored on increasing, sorted 1D or 2D grids.

struct Grid

A grid of increasing, sorted 1D data.

This is used to store tabulated physics data such as cross sections or energy loss.

struct UniformGrid

A uniform grid of increasing, sorted 1D data.

struct TwodGrid

An increasing, sorted 2D grid with node-centered data.

Data is interpolated linearly and indexed as ‘[x][y]’.

Both linear and spline interpolation are supported.

struct Interpolation

Interpolation options for the physics grids.

order is only used for poly_spline interpolation and bc is only used for cubic_spline interpolation.

Public Members

size_type order = {1}

Polynomial order for spline interpolation.

BC bc = {BC::geant}

Boundary conditions for calculating cubic spline second derivatives.