Cabana 0.8.0-dev
 
Loading...
Searching...
No Matches
Cabana::LinkedCellStencil< Scalar, NumSpaceDim > Struct Template Reference

Stencil of cells surrounding each cell. More...

#include <Cabana_LinkedCellList.hpp>

Public Member Functions

 LinkedCellStencil ()=default
 Default Constructor.
 
template<class ArrayType>
 LinkedCellStencil (const Scalar neighborhood_radius, const Scalar cell_size_ratio, const ArrayType &grid_min, const ArrayType &grid_max)
 Array Constructor.
 
 LinkedCellStencil (const Scalar neighborhood_radius, const Scalar cell_size_ratio, const Scalar grid_min[num_space_dim], const Scalar grid_max[num_space_dim])
 Constructor.
 
template<std::size_t NSD = num_space_dim>
KOKKOS_INLINE_FUNCTION std::enable_if_t< 3==NSD, void > getCells (const int cell, int &imin, int &imax, int &jmin, int &jmax, int &kmin, int &kmax) const
 Given a cell, get the index bounds of the cell stencil.
 
KOKKOS_INLINE_FUNCTION void getCells (const int cell, Kokkos::Array< int, num_space_dim > &min, Kokkos::Array< int, num_space_dim > &max) const
 Given a cell, get the index bounds of the cell stencil.
 

Public Attributes

Impl::CartesianGrid< Scalar, num_space_dimgrid
 Background grid.
 
int max_cells_dir
 Maximum cells per dimension.
 
int max_cells
 Maximum total cells.
 
int cell_range
 Range of cells to search based on cutoff.
 

Static Public Attributes

static constexpr std::size_t num_space_dim = NumSpaceDim
 Spatial dimension.
 

Detailed Description

template<class Scalar, std::size_t NumSpaceDim = 3>
struct Cabana::LinkedCellStencil< Scalar, NumSpaceDim >

Stencil of cells surrounding each cell.


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