Celeritas  0.5.0-56+6b053cd
Public Member Functions | List of all members
celeritas::RangeCalculator Class Reference

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.
 

Detailed Description

Find and interpolate range on a uniform log grid.

RangeCalculator calc_range(xs_grid, xs_params.reals);
real_type range = calc_range(particle);
CELER_CONSTEXPR_FUNCTION Range< T > range(T begin, T end)
Return a range over fixed beginning and end values.
Definition: Range.hh:190
CELER_FUNCTION RangeCalculator(XsGridData const &grid, Values const &values)
Construct from cross section data.
Definition: RangeCalculator.hh:69
double real_type
Numerical type for real numbers.
Definition: corecel/Types.hh:35

Below the minimum tabulated energy, the range is scaled:

\[ r = r_\mathrm{min} \sqrt{\frac{E}{E_\mathrm{min}}} \]

Constructor & Destructor Documentation

◆ RangeCalculator()

CELER_FUNCTION celeritas::RangeCalculator::RangeCalculator ( XsGridData const &  grid,
Values const &  values 
)
inline

Construct from cross section data.

Range tables should be uniform in energy, without extra scaling.


The documentation for this class was generated from the following file: