Functions | |
void | init (REAL ymin[], REAL ymax[], REAL radius, Pool< Molecule > *newpool) |
int | index (int ind[]) |
void | index (int n, int ind[]) |
void | put (Molecule *node) |
void | put (Molecule *node, int icounter) |
Container< Molecule > * | get (int ind[]) |
int * | dimensions () |
bool | checkPool (int icell, char *msg) |
Variables | |
REAL | xmin [DIM] |
REAL | xmax [DIM] |
REAL | cellsize |
int | ncells [DIM+1] |
int | mcells = 0 |
int | mcells1 = 0 |
Container< Molecule > * | nodes |
Pool< Molecule > * | pool |
Splits space into cubic cells to consider local interactions between ajacent cells only
bool GridContainer::checkPool | ( | int | icell, | |
char * | msg | |||
) |
void GridContainer::index | ( | int | n, | |
int | ind[] | |||
) |
int GridContainer::index | ( | int | ind[] | ) |
void GridContainer::put | ( | Molecule * | node, | |
int | icounter | |||
) |
DDD
DDD
Definition at line 128 of file grid.cc.
References cellsize, Molecule::Coordinates(), DIM, index(), ncells, nodes, REAL, Molecule::Type(), VOIDSPECIE, and xmin.
Referenced by Domain::Domain(), Boundary::Inject(), and Domain::run().
void GridContainer::put | ( | Molecule * | node | ) |
Definition at line 81 of file grid.cc.
References cellsize, Molecule::Coordinates(), DIM, index(), ncells, nodes, REAL, Species::species, Run::time, Molecule::Type(), Molecule::Velocity(), VOIDSPECIE, and xmin.
Definition at line 20 of file grid.cc.
Referenced by Domain::Domain(), init(), put(), and Domain::run().
int GridContainer::mcells = 0 |
int GridContainer::mcells1 = 0 |
Definition at line 21 of file grid.cc.
Referenced by dimensions(), index(), init(), Domain::interaction(), and put().
Definition at line 24 of file grid.cc.
Referenced by Container< Element >::append0(), init(), Container< Element >::insert0(), and Container< Element >::remove0().
REAL GridContainer::xmax[DIM] |
REAL GridContainer::xmin[DIM] |