|
AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
This class provides a view for Conduit/Blueprint structured grid types. More...
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/main/src/axom/bump/views/StructuredTopologyView.hpp>
Public Types | |
| using | IndexingPolicy = IndexPolicy |
| using | IndexType = typename IndexingPolicy::IndexType |
| using | LogicalIndex = typename IndexingPolicy::LogicalIndex |
| using | ConnectivityType = IndexType |
| using | Shape1D = LineShape< axom::StackArray< ConnectivityType, 2 > > |
| using | Shape2D = QuadShape< axom::StackArray< ConnectivityType, 4 > > |
| using | Shape3D = HexShape< axom::StackArray< ConnectivityType, 8 > > |
| using | ShapeType = typename std::conditional< IndexingPolicy::dimension()==3, Shape3D, typename std::conditional< IndexingPolicy::dimension()==2, Shape2D, Shape1D >::type >::type |
Public Member Functions | |
| AXOM_HOST_DEVICE | StructuredTopologyView () |
| Constructor. More... | |
| AXOM_HOST_DEVICE | StructuredTopologyView (const IndexingPolicy &indexing) |
| Constructor. More... | |
| AXOM_HOST_DEVICE IndexType | size () const |
| Return the number of zones. More... | |
| AXOM_HOST_DEVICE IndexType | numberOfZones () const |
| Return the number of zones. More... | |
| AXOM_HOST_DEVICE IndexType | connectivitySize () const |
| Return the size of the connectivity. More... | |
| AXOM_HOST_DEVICE const LogicalIndex & | logicalDimensions () const |
| Return the mesh logical dimensions. More... | |
| AXOM_HOST_DEVICE IndexingPolicy & | indexing () |
| Return indexing object. More... | |
| AXOM_HOST_DEVICE const IndexingPolicy & | indexing () const |
| Return indexing object. More... | |
| template<int _ndims = IndexingPolicy::dimension()> | |
| AXOM_HOST_DEVICE std::enable_if< _ndims==3, Shape3D >::type | zone (axom::IndexType zoneIndex) const |
| Return a zone. More... | |
| template<int _ndims = IndexingPolicy::dimension()> | |
| AXOM_HOST_DEVICE std::enable_if< _ndims==2, Shape2D >::type | zone (axom::IndexType zoneIndex) const |
| Return a zone. More... | |
| template<int _ndims = IndexingPolicy::dimension()> | |
| AXOM_HOST_DEVICE std::enable_if< _ndims==1, Shape1D >::type | zone (axom::IndexType zoneIndex) const |
| Return a zone. More... | |
Static Public Member Functions | |
| constexpr static AXOM_HOST_DEVICE int | dimension () |
| Return the number of dimensions. More... | |
This class provides a view for Conduit/Blueprint structured grid types.
| IndexPolicy | The policy for making/using indices. |
| using axom::bump::views::StructuredTopologyView< IndexPolicy >::IndexingPolicy = IndexPolicy |
| using axom::bump::views::StructuredTopologyView< IndexPolicy >::IndexType = typename IndexingPolicy::IndexType |
| using axom::bump::views::StructuredTopologyView< IndexPolicy >::LogicalIndex = typename IndexingPolicy::LogicalIndex |
| using axom::bump::views::StructuredTopologyView< IndexPolicy >::ConnectivityType = IndexType |
| using axom::bump::views::StructuredTopologyView< IndexPolicy >::Shape1D = LineShape<axom::StackArray<ConnectivityType, 2> > |
| using axom::bump::views::StructuredTopologyView< IndexPolicy >::Shape2D = QuadShape<axom::StackArray<ConnectivityType, 4> > |
| using axom::bump::views::StructuredTopologyView< IndexPolicy >::Shape3D = HexShape<axom::StackArray<ConnectivityType, 8> > |
| using axom::bump::views::StructuredTopologyView< IndexPolicy >::ShapeType = typename std::conditional< IndexingPolicy::dimension() == 3, Shape3D, typename std::conditional<IndexingPolicy::dimension() == 2, Shape2D, Shape1D>::type>::type |
|
inline |
Constructor.
|
inline |
Constructor.
| indexing | The indexing policy for the topology (num zones in each dimension). |
|
inlinestaticconstexpr |
Return the number of dimensions.
|
inline |
Return the number of zones.
|
inline |
Return the number of zones.
References axom::bump::views::StructuredTopologyView< IndexPolicy >::size().
|
inline |
Return the size of the connectivity.
References axom::bump::views::StructuredTopologyView< IndexPolicy >::dimension(), and axom::bump::views::StructuredTopologyView< IndexPolicy >::numberOfZones().
|
inline |
Return the mesh logical dimensions.
|
inline |
Return indexing object.
|
inline |
Return indexing object.
|
inline |
Return a zone.
| zoneIndex | The index of the zone to return. |
References axom::bump::views::Shape< ShapeTraits, ConnStorage >::getIdsStorage(), axom::bump::views::StructuredTopologyView< IndexPolicy >::numberOfZones(), and SLIC_ASSERT.
|
inline |
Return a zone.
| zoneIndex | The index of the zone to return. |
References axom::bump::views::Shape< ShapeTraits, ConnStorage >::getIdsStorage(), axom::bump::views::StructuredTopologyView< IndexPolicy >::numberOfZones(), and SLIC_ASSERT.
|
inline |
Return a zone.
| index | The index of the zone to return. |
References axom::bump::views::Shape< ShapeTraits, ConnStorage >::getIdsStorage(), axom::bump::views::StructuredTopologyView< IndexPolicy >::numberOfZones(), and SLIC_ASSERT.