nocs

NOCS (Not Only Colliding Spheres) exact 2D gas dynamics framework

View on GitHub

Class grid (engine/grid.h)

Overview

Class grid implements a subdivision of the simulation zone into smaller regions. This allows to reduce the volume of many analysis and computations, since each element of the simulation needs now to be compared only with other elements in the same region or in a neighboring region.

Public nested classes

class mark

this class is friend with grid and, when included into an object of the simulation (like molecule), it’s used to keep track of the position of that object inside the grid using two size_t variables.

Getters

Interface

Constructor

Destructor

Getters

Methods

Private methods