|
Celeritas 0.7.0-dev.170+develop.df22d2a88
|
Find and interpolate range on a uniform log grid. More...
#include <RangeCalculator.hh>
Public Types | |
Type aliases | |
| using | Energy = units::MevEnergy |
| using | Values = Collection< real_type, Ownership::const_reference, MemSpace::native > |
Public Member Functions | |
| CELER_FUNCTION | RangeCalculator (UniformGridRecord const &grid, Values const &values) |
| Construct from cross section data. | |
| 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}}} \]
UniformGridRecord
|
inline |
Construct from cross section data.
Range tables should be uniform in energy, without extra scaling.