#include <CellForce.h>

Public Member Functions | |
| CellForce () | |
| Constructor. | |
| virtual | ~CellForce () |
| Destructor. | |
| virtual CellForce * | Clone () |
| Clone Constructor. | |
| void | OnEvent () |
| Event callback. | |
| virtual void | ComputeForce () |
| Function to compute the force. | |
| _DeclareSerializable (CellForce) | |
Protected Attributes | |
| CellList | mCellList |
| A list of cells. | |
Using a BruteForce scheme, we waste many CPU cycles calculating distances between pairs of particles that are clearly outside the interaction range, especially if the system is large. Optimally, we would only calculate the distances we need (i.e., the distances lying within a spherical shell given by the interaction range for each particle). We approximate this shell by gridding the system into discrete boxes (cells) and only calculate distances between particles in neighboring cells. This method scales with N, where N is the number of particles in the simulation.
| glotzmd::CellForce::CellForce | ( | ) |
Constructor.
| glotzmd::CellForce::~CellForce | ( | ) | [virtual] |
Destructor.
| CellForce * glotzmd::CellForce::Clone | ( | ) | [virtual] |
Clone Constructor.
Reimplemented from glotzmd::ForceRoutine.
Reimplemented in glotzmd::CellForceShifted.
| void glotzmd::CellForce::OnEvent | ( | ) | [virtual] |
| void glotzmd::CellForce::ComputeForce | ( | ) | [virtual] |
Function to compute the force.
Reimplemented from glotzmd::ForceRoutine.
Reimplemented in glotzmd::CellForceShifted.
| glotzmd::CellForce::_DeclareSerializable | ( | CellForce | ) |
CellList glotzmd::CellForce::mCellList [protected] |
A list of cells.
1.5.3