AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
axom::bump::views::UnstructuredTopologyMixedShapeView< ConnT > Class Template Reference

This class provides a view for Conduit/Blueprint mixed shape unstructured grids. More...

#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/develop/src/axom/bump/views/UnstructuredTopologyMixedShapeView.hpp>

Public Types

using ConnectivityType = ConnT
 
using ConnectivityView = axom::ArrayView< ConnectivityType >
 
using ShapeType = VariableShape< ConnectivityType >
 
using IndexingPolicy = BasicIndexing
 

Public Member Functions

AXOM_HOST_DEVICE UnstructuredTopologyMixedShapeView (const ConnectivityView &conn, const ConnectivityView &shapes, const ConnectivityView &sizes, const ConnectivityView &offsets, const ShapeMap &shapemap)
 Constructor. 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 IndexingPolicyindexing () const
 Return the size of the connectivity. More...
 
AXOM_HOST_DEVICE ShapeType zone (axom::IndexType zoneIndex) const
 Return a zone. More...
 

Static Public Member Functions

static constexpr AXOM_HOST_DEVICE int dimension ()
 Return the dimension of the shape. More...
 

Detailed Description

template<typename ConnT>
class axom::bump::views::UnstructuredTopologyMixedShapeView< ConnT >

This class provides a view for Conduit/Blueprint mixed shape unstructured grids.

Template Parameters
IndexTThe index type that will be used for connectivity, etc.
ShapeTThe shape type.
Note
This view does not support topologies that also contain polyhedral elements.

Member Typedef Documentation

◆ ConnectivityType

template<typename ConnT >
using axom::bump::views::UnstructuredTopologyMixedShapeView< ConnT >::ConnectivityType = ConnT

◆ ConnectivityView

◆ ShapeType

◆ IndexingPolicy

Constructor & Destructor Documentation

◆ UnstructuredTopologyMixedShapeView()

template<typename ConnT >
AXOM_HOST_DEVICE axom::bump::views::UnstructuredTopologyMixedShapeView< ConnT >::UnstructuredTopologyMixedShapeView ( const ConnectivityView conn,
const ConnectivityView shapes,
const ConnectivityView sizes,
const ConnectivityView offsets,
const ShapeMap shapemap 
)
inline

Constructor.

Parameters
connThe mesh connectivity.
shapesThe shape in each zone.
sizesThe number of nodes in each zone.
offsetsThe offset to each zone in the connectivity.

References axom::bump::views::ShapeMap::empty(), axom::ArrayView< T, DIM, SPACE >::empty(), axom::ArrayView< T, DIM, SPACE >::size(), and SLIC_ERROR_IF.

Member Function Documentation

◆ dimension()

template<typename ConnT >
static constexpr AXOM_HOST_DEVICE int axom::bump::views::UnstructuredTopologyMixedShapeView< ConnT >::dimension ( )
inlinestaticconstexpr

Return the dimension of the shape.

Returns
-1 for unknown dimension. We'd have to look at the shapes.

◆ numberOfZones()

template<typename ConnT >
AXOM_HOST_DEVICE IndexType axom::bump::views::UnstructuredTopologyMixedShapeView< ConnT >::numberOfZones ( ) const
inline

Return the number of zones.

Returns
The number of zones.

References axom::ArrayView< T, DIM, SPACE >::size().

◆ connectivitySize()

template<typename ConnT >
AXOM_HOST_DEVICE IndexType axom::bump::views::UnstructuredTopologyMixedShapeView< ConnT >::connectivitySize ( ) const
inline

Return the size of the connectivity.

Returns
The size of the connectivity.

References axom::ArrayView< T, DIM, SPACE >::size().

◆ indexing()

template<typename ConnT >
AXOM_HOST_DEVICE const IndexingPolicy& axom::bump::views::UnstructuredTopologyMixedShapeView< ConnT >::indexing ( ) const
inline

Return the size of the connectivity.

Returns
The size of the connectivity.

◆ zone()

template<typename ConnT >
AXOM_HOST_DEVICE ShapeType axom::bump::views::UnstructuredTopologyMixedShapeView< ConnT >::zone ( axom::IndexType  zoneIndex) const
inline

Return a zone.

Parameters
zoneIndexThe index of the zone to return.
Returns
The requested zone.

References axom::ArrayView< T, DIM, SPACE >::data(), axom::bump::views::isValidShapeID(), axom::bump::views::UnstructuredTopologyMixedShapeView< ConnT >::numberOfZones(), and SLIC_ASSERT.


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