Celeritas
0.5.0-86+4a8eea4
|
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, MaterialId > |
Public Member Functions | |
CELER_FUNCTION | operator bool () const |
Whether the data is assigned. | |
template<Ownership W2, MemSpace M2> | |
MaterialParamsData & | operator= (MaterialParamsData< W2, M2 > const &other) |
Assign from another set of data. | |
Public Attributes | |
Items< IsotopeRecord > | isotopes |
Items< ElementRecord > | elements |
Items< ElIsotopeComponent > | isocomponents |
Items< MatElementComponent > | elcomponents |
Collection< MaterialRecord, W, M, MaterialId > | materials |
IsotopeComponentId::size_type | max_isotope_components {} |
ElementComponentId::size_type | max_element_components {} |
MaterialItems< OpticalMaterialId > | optical_id |
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 an invalid ID, or empty if no optical properties are present for any material.