glotzmd::CellForce Class Reference
[Molecular Dynamics]

A cell-based method for calculating forces. More...

#include <CellForce.h>

Inheritance diagram for glotzmd::CellForce:

glotzmd::ForceRoutine glotzmd::BaseObject glotzutil::Listable glotzutil::Serializable glotzmd::CellForceShifted

List of all members.

Public Member Functions

 CellForce ()
 Constructor.
virtual ~CellForce ()
 Destructor.
virtual CellForceClone ()
 Clone Constructor.
void OnEvent ()
 Event callback.
virtual void ComputeForce ()
 Function to compute the force.
 _DeclareSerializable (CellForce)

Protected Attributes

CellList mCellList
 A list of cells.


Detailed Description

A cell-based method for calculating forces.

Author:
Aaron Keys
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.

Constructor & Destructor Documentation

glotzmd::CellForce::CellForce (  ) 

Constructor.

glotzmd::CellForce::~CellForce (  )  [virtual]

Destructor.


Member Function Documentation

CellForce * glotzmd::CellForce::Clone (  )  [virtual]

Clone Constructor.

Reimplemented from glotzmd::ForceRoutine.

Reimplemented in glotzmd::CellForceShifted.

void glotzmd::CellForce::OnEvent (  )  [virtual]

Event callback.

Reimplemented from glotzmd::BaseObject.

void glotzmd::CellForce::ComputeForce (  )  [virtual]

Function to compute the force.

Reimplemented from glotzmd::ForceRoutine.

Reimplemented in glotzmd::CellForceShifted.

glotzmd::CellForce::_DeclareSerializable ( CellForce   ) 


Member Data Documentation

CellList glotzmd::CellForce::mCellList [protected]

A list of cells.


The documentation for this class was generated from the following files:
Generated on Tue Feb 24 20:54:17 2009 by  doxygen 1.5.3