IPPL API Reference
Independent Parallel Particle Layer C++ API
Loading...
Searching...
No Matches
ippl::Mesh< T, Dim > Class Template Referenceabstract
+ Inheritance diagram for ippl::Mesh< T, Dim >:

Public Types

enum  { Dimension = Dim }
 
typedef T value_type
 
typedef Vector< T, Dim > vector_type
 
typedef Vector< vector_type, Dim > matrix_type
 

Public Member Functions

KOKKOS_INLINE_FUNCTION vector_type getOrigin () const
 
KOKKOS_INLINE_FUNCTION void setOrigin (const vector_type &origin)
 
KOKKOS_INLINE_FUNCTION const vector_typegetGridsize () const
 
virtual KOKKOS_INLINE_FUNCTION T getCellVolume () const =0
 
virtual KOKKOS_INLINE_FUNCTION T getMeshVolume () const =0
 
KOKKOS_INLINE_FUNCTION T getGridsize (size_t dim) const
 
virtual KOKKOS_INLINE_FUNCTION vector_type getVertexPosition (const NDIndex< Dim > &ndi) const =0
 
virtual KOKKOS_INLINE_FUNCTION const vector_typegetMeshSpacing () const =0
 
virtual KOKKOS_INLINE_FUNCTION vector_type getDeltaVertex (const NDIndex< Dim > &ndi) const =0
 

Protected Attributes

vector_type origin_m
 
vector_type gridSizes_m
 

Member Function Documentation

◆ getCellVolume()

template<typename T , unsigned Dim>
virtual KOKKOS_INLINE_FUNCTION T ippl::Mesh< T, Dim >::getCellVolume ( ) const
pure virtual

Query the cell volume of the grid

Returns
The volume of a single mesh cell

Implemented in ippl::UniformCartesian< T, Dim >, and ippl::UniformCartesian< Tlhs, Dim >.

◆ getMeshVolume()

template<typename T , unsigned Dim>
virtual KOKKOS_INLINE_FUNCTION T ippl::Mesh< T, Dim >::getMeshVolume ( ) const
pure virtual

Query the volume of the represented domain

Returns
Total volume of the mesh

Implemented in ippl::UniformCartesian< T, Dim >, and ippl::UniformCartesian< Tlhs, Dim >.


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