|
AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
Material view for unibuffer matsets. More...
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/main/src/axom/bump/views/MaterialView.hpp>

Classes | |
| class | const_iterator |
| An iterator class for iterating over read-only data in a zone. The iterator can access material ids and volume fractions for one material at a time in the associated zone. More... | |
Public Types | |
| using | MaterialID = IndexT |
| using | ZoneIndex = IndexT |
| using | IndexType = IndexT |
| using | FloatType = FloatT |
| using | IDList = StaticArray< MaterialID, MAXMATERIALS > |
| using | VFList = StaticArray< FloatType, MAXMATERIALS > |
Static Public Attributes | |
| constexpr static axom::IndexType | MaxMaterials = MAXMATERIALS |
Friends | |
| class | const_iterator |
Material view for unibuffer matsets.
| IndexT | The integer type used for material data. |
| FloatT | The floating point type used for material data (volume fractions). |
| MAXMATERIALS | The maximum number of materials to support. |
matsets:
matset:
topology: topology
material_map:
a: 1
b: 2
c: 0
material_ids: [0, 1, 2, 2, 2, 0, 1, 0]
volume_fractions: [0, a0, b2, b1, b0, 0, a1, 0]
sizes: [2, 2, 1]
offsets: [0, 2, 4]
indices: [1, 4, 6, 3, 2] | using axom::bump::views::UnibufferMaterialView< IndexT, FloatT, MAXMATERIALS >::MaterialID = IndexT |
| using axom::bump::views::UnibufferMaterialView< IndexT, FloatT, MAXMATERIALS >::ZoneIndex = IndexT |
| using axom::bump::views::UnibufferMaterialView< IndexT, FloatT, MAXMATERIALS >::IndexType = IndexT |
| using axom::bump::views::UnibufferMaterialView< IndexT, FloatT, MAXMATERIALS >::FloatType = FloatT |
| using axom::bump::views::UnibufferMaterialView< IndexT, FloatT, MAXMATERIALS >::IDList = StaticArray<MaterialID, MAXMATERIALS> |
| using axom::bump::views::UnibufferMaterialView< IndexT, FloatT, MAXMATERIALS >::VFList = StaticArray<FloatType, MAXMATERIALS> |
|
inline |
References axom::ArrayView< T, DIM, SPACE >::size(), and SLIC_ERROR_IF.
|
inline |
References axom::ArrayView< T, DIM, SPACE >::size().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Return the iterator for the beginning of a zone's material data.
| zi | The zone index being queried. |
References axom::bump::views::UnibufferMaterialView< IndexT, FloatT, MAXMATERIALS >::const_iterator, axom::bump::views::UnibufferMaterialView< IndexT, FloatT, MAXMATERIALS >::numberOfZones(), and SLIC_ASSERT.
|
inline |
Return the iterator for the end of a zone's material data.
| zi | The zone index being queried. |
References axom::bump::views::UnibufferMaterialView< IndexT, FloatT, MAXMATERIALS >::const_iterator, axom::bump::views::UnibufferMaterialView< IndexT, FloatT, MAXMATERIALS >::numberOfZones(), and SLIC_ASSERT.
|
friend |
|
staticconstexpr |