|
AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
View for element-dominant matsets. More...
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/develop/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< IndexType, MAXMATERIALS > |
| using | VFList = StaticArray< FloatType, MAXMATERIALS > |
Public Member Functions | |
| void | add (MaterialID matno, const axom::ArrayView< FloatType > &vfs) |
| AXOM_HOST_DEVICE axom::IndexType | numberOfZones () const |
| AXOM_HOST_DEVICE axom::IndexType | numberOfMaterials (ZoneIndex zi) const |
| AXOM_HOST_DEVICE void | zoneMaterials (ZoneIndex zi, IDList &ids, VFList &vfs) const |
| AXOM_HOST_DEVICE axom::IndexType | zoneMaterials (ZoneIndex zi, axom::ArrayView< IndexType > &ids, axom::ArrayView< FloatType > &vfs) const |
| AXOM_HOST_DEVICE bool | zoneContainsMaterial (ZoneIndex zi, MaterialID mat) const |
| AXOM_HOST_DEVICE bool | zoneContainsMaterial (ZoneIndex zi, MaterialID mat, FloatType &vf) const |
| const_iterator AXOM_HOST_DEVICE | beginZone (ZoneIndex zi) const |
| Return the iterator for the beginning of a zone's material data. More... | |
| const_iterator AXOM_HOST_DEVICE | endZone (ZoneIndex zi) const |
| Return the iterator for the end of a zone's material data. More... | |
Static Public Attributes | |
| constexpr static axom::IndexType | MaxMaterials = MAXMATERIALS |
| constexpr static axom::IndexType | InvalidIndex = -1 |
Friends | |
| class | const_iterator |
View for element-dominant 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
volume_fractions:
a: [a0, a1, 0]
b: [b0, b1, b2]
c: [0, 0, c2]
material_map: # (optional)
a: 0
b: 1
c: 2 | using axom::bump::views::ElementDominantMaterialView< IndexT, FloatT, MAXMATERIALS >::MaterialID = IndexT |
| using axom::bump::views::ElementDominantMaterialView< IndexT, FloatT, MAXMATERIALS >::ZoneIndex = IndexT |
| using axom::bump::views::ElementDominantMaterialView< IndexT, FloatT, MAXMATERIALS >::IndexType = IndexT |
| using axom::bump::views::ElementDominantMaterialView< IndexT, FloatT, MAXMATERIALS >::FloatType = FloatT |
| using axom::bump::views::ElementDominantMaterialView< IndexT, FloatT, MAXMATERIALS >::IDList = StaticArray<IndexType, MAXMATERIALS> |
| using axom::bump::views::ElementDominantMaterialView< IndexT, FloatT, MAXMATERIALS >::VFList = StaticArray<FloatType, MAXMATERIALS> |
|
inline |
|
inline |
References axom::StaticArray< T, N >::size().
|
inline |
References axom::StaticArray< T, N >::size(), and SLIC_ASSERT.
|
inline |
|
inline |
References axom::StaticArray< T, N >::size(), and SLIC_ASSERT.
|
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::ElementDominantMaterialView< IndexT, FloatT, MAXMATERIALS >::const_iterator, axom::bump::views::ElementDominantMaterialView< 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::ElementDominantMaterialView< IndexT, FloatT, MAXMATERIALS >::const_iterator, axom::bump::views::ElementDominantMaterialView< IndexT, FloatT, MAXMATERIALS >::numberOfZones(), axom::StaticArray< T, N >::size(), and SLIC_ASSERT.
|
friend |
|
staticconstexpr |
|
staticconstexpr |