Celeritas 0.6.0-129+develop.846910afa
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
celeritas::MaterialParamsData< W, M > Struct Template Reference

Access material properties on the device. More...

#include <MaterialData.hh>

Public Types

template<class T >
using Items = Collection< T, W, M >
 
template<class T >
using MaterialItems = Collection< T, W, M, PhysMatId >
 

Public Member Functions

CELER_FUNCTION operator bool () const
 Whether the data is assigned.
 
template<Ownership W2, MemSpace M2>
MaterialParamsDataoperator= (MaterialParamsData< W2, M2 > const &other)
 Assign from another set of data.
 

Public Attributes

Items< IsotopeRecordisotopes
 
Items< ElementRecordelements
 
Items< ElIsotopeComponentisocomponents
 
Items< MatElementComponentelcomponents
 
Collection< MaterialRecord, W, M, PhysMatIdmaterials
 
IsotopeComponentId::size_type max_isotope_components {}
 
ElementComponentId::size_type max_element_components {}
 
MaterialItems< OptMatIdoptical_id
 

Detailed Description

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

Access material properties on the device.

This view is created from MaterialParams.

If a material has optical properties defined, optical_id will give the index into the optical properties data. Otherwise, it will be a null ID, or empty if no optical properties are present for any material.

See also
MaterialParams (owns the pointed-to data)
ElementView (uses the pointed-to element data in a kernel)
IsotopeView (uses the pointed-to isotope data in a kernel)
MaterialView (uses the pointed-to material data in a kernel)

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