Celeritas
0.5.0-56+6b053cd
|
Find and interpolate range on a uniform log grid. More...
#include <RangeCalculator.hh>
Public Types | |
Type aliases | |
using | Energy = Quantity< XsGridData::EnergyUnits > |
using | Values = Collection< real_type, Ownership::const_reference, MemSpace::native > |
Public Member Functions | |
CELER_FUNCTION | RangeCalculator (XsGridData const &grid, Values const &values) |
Construct from cross section data. More... | |
CELER_FUNCTION real_type | operator() (Energy energy) const |
Calculate the range. | |
Find and interpolate range on a uniform log grid.
Below the minimum tabulated energy, the range is scaled:
\[ r = r_\mathrm{min} \sqrt{\frac{E}{E_\mathrm{min}}} \]
|
inline |
Construct from cross section data.
Range tables should be uniform in energy, without extra scaling.