Molecular Dynamics Simulation
1.0
|
Class to calculate the Lennard-Jones force between particles. Implements the interface PairwiseForceSource. More...
#include <LennardJonesForce.h>
Public Member Functions | |
std::array< double, 3UL > | calculateForce (const Particle &p, const Particle &q) const override |
Calculates the Lennard-Jones forces between two particles. More... | |
operator std::string () const override | |
Returns "Lennard-Jones" as name of the force. More... | |
Public Member Functions inherited from PairwiseForceSource | |
virtual | ~PairwiseForceSource ()=default |
Virtual destructor for correct cleanup of derived classes. More... | |
Class to calculate the Lennard-Jones force between particles. Implements the interface PairwiseForceSource.
Implementation of the force calculation to simulate Lennard-Jones forces between particles.
Definition at line 10 of file LennardJonesForce.h.
|
overridevirtual |
Calculates the Lennard-Jones forces between two particles.
Calculates the Lennard-Jones force which q exerts on p
Implements PairwiseForceSource.
Definition at line 5 of file LennardJonesForce.cpp.
|
explicitoverridevirtual |
Returns "Lennard-Jones" as name of the force.
Implements PairwiseForceSource.
Definition at line 19 of file LennardJonesForce.cpp.