walberla::mesa_pd::data::HashGrids::HashGrid::Cell Struct Reference

Detailed Description

Data structure for representing a cell in the hash grid (used by the 'Hierarchical Hash Grids' coarse collision detection algorithm).

Public Attributes

ParticleIdxVectorparticles_
 The cell's particle container that stores (handles to) all the particles that are assigned to this cell. More...
 
offset_tneighborOffset_
 Pointer to an array that is storing offsets that can be used to directly access all the neighboring cells in the hash grid. More...
 
size_t occupiedCellsId_
 The cell's index in the occupiedCells_ vector. More...
 

Member Data Documentation

◆ neighborOffset_

offset_t* walberla::mesa_pd::data::HashGrids::HashGrid::Cell::neighborOffset_

Pointer to an array that is storing offsets that can be used to directly access all the neighboring cells in the hash grid.

◆ occupiedCellsId_

size_t walberla::mesa_pd::data::HashGrids::HashGrid::Cell::occupiedCellsId_

The cell's index in the occupiedCells_ vector.

◆ particles_

ParticleIdxVector* walberla::mesa_pd::data::HashGrids::HashGrid::Cell::particles_

The cell's particle container that stores (handles to) all the particles that are assigned to this cell.

Note that only a pointer to such a particle container is stored: in order to save memory, this container object is only allocated as long as there are particles assigned to this cell.


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