Celeritas  0.5.0-56+6b053cd
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
celeritas::XsGridData Struct Reference

Parameterization of a discrete scalar field on a given 1D grid. More...

#include <XsGridData.hh>

Public Types

using EnergyUnits = units::Mev
 
using XsUnits = units::Native
 

Public Member Functions

CELER_FUNCTION operator bool () const
 Whether the interface is initialized and valid.
 

Static Public Member Functions

static CELER_CONSTEXPR_FUNCTION size_type no_scaling ()
 "Special" value indicating none of the values are scaled by 1/E
 

Public Attributes

UniformGridData log_energy
 
size_type prime_index {no_scaling()}
 
ItemRange< real_typevalue
 

Detailed Description

Parameterization of a discrete scalar field on a given 1D grid.

For all

i >= prime_index

, the

value[i]

is expected to be pre-scaled by a factor of

energy[i]

.

Interpolation is linear-linear after transforming to log-E space and before scaling the value by E (if the grid point is above prime_index).


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