Celeritas  0.5.0-56+6b053cd
Public Types | Public Member Functions | Public Attributes | List of all members
celeritas::MaterialStateData< W, M > Struct Template Reference

Store dynamic states of multiple physical particles. More...

#include <MaterialData.hh>

Public Types

template<class T >
using Items = StateCollection< T, W, M >
 

Public Member Functions

CELER_FUNCTION operator bool () const
 Whether the interface is assigned.
 
CELER_FUNCTION size_type size () const
 State size.
 
template<Ownership W2, MemSpace M2>
MaterialStateDataoperator= (MaterialStateData< W2, M2 > &other)
 Assign from another set of data.
 

Public Attributes

Items< MaterialTrackStatestate
 
Items< real_typeelement_scratch
 

Detailed Description

template<Ownership W, MemSpace M>
struct celeritas::MaterialStateData< W, M >

Store dynamic states of multiple physical particles.

The "element scratch space" is a 2D array of reals, indexed with [trackslot_id][el_component_id], where the fast-moving dimension has the greatest number of element components of any material in the problem. This can be used for the physics to calculate microscopic cross sections.

See also
MaterialStateStore (owns the pointed-to data)
MaterialTrackView (uses the pointed-to data in a kernel)

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