Molecular Dynamics Simulation
1.0
|
Interface for pairwise force source classes. More...
#include <PairwiseForceSource.h>
Public Member Functions | |
virtual | ~PairwiseForceSource ()=default |
Virtual destructor for correct cleanup of derived classes. More... | |
virtual std::array< double, 3UL > | calculateForce (const Particle &p, const Particle &q) const =0 |
Calculates the force a particle q exerts on another particle p. More... | |
virtual | operator std::string () const =0 |
Conversion from a force source object to a string containing its name. More... | |
Interface for pairwise force source classes.
Definition of an interface for force source classes. This is used to ensure inheriting classes implement the method calculateForce(Particle& p, Particle& q) according to our definition.
A PairwiseForceSource specifies the force a particle q exerts on another particle p.
Definition at line 16 of file PairwiseForceSource.h.
|
virtualdefault |
Virtual destructor for correct cleanup of derived classes.
Virtual destructor to ensure correct deletion of inheriting classes.
|
pure virtual |
Calculates the force a particle q exerts on another particle p.
Calculates the force a particle q exerts on another particle p.
Implemented in SmoothedLennardJonesForce, LennardJonesRepulsiveForce, LennardJonesForce, and GravitationalForce.
|
explicitpure virtual |
Conversion from a force source object to a string containing its name.
Implemented in SmoothedLennardJonesForce, LennardJonesRepulsiveForce, LennardJonesForce, and GravitationalForce.