Molecular Dynamics Simulation
1.0
|
Class to calculate the smoothed Lennard-Jones force between particles. Implements the interface PairwiseForceSource. More...
#include <SmoothedLennardJonesForce.h>
Public Member Functions | |
SmoothedLennardJonesForce (double r_c, double r_l) | |
Construct a new SmoothedLennardJonesForce object. More... | |
std::array< double, 3UL > | calculateForce (const Particle &p, const Particle &q) const override |
Calculates the smoothed Lennard-Jones forces between two particles. More... | |
operator std::string () const override | |
Returns "SmoothedLennardJones" as the name of the force. More... | |
Public Member Functions inherited from PairwiseForceSource | |
virtual | ~PairwiseForceSource ()=default |
Virtual destructor for correct cleanup of derived classes. More... | |
Private Attributes | |
double | r_c |
the radius after which the force is 0 More... | |
double | r_l |
the radius whithin the normal Lennard-Jones force is applied. Between r_l and r_c the force is smoothed out More... | |
Class to calculate the smoothed Lennard-Jones force between particles. Implements the interface PairwiseForceSource.
This class behaves similar like the normal Lennard-Jones force, but it is smoothed out between the smoothing radius r_l and the cutoff radius r_c.
Implementation of the force calculation to simulate a smooth Lennard-Jones forces between particles.
Definition at line 13 of file SmoothedLennardJonesForce.h.
|
inline |
Construct a new SmoothedLennardJonesForce object.
r_c | cutoff radius |
r_l | smoothing radius |
Definition at line 21 of file SmoothedLennardJonesForce.h.
|
overridevirtual |
Calculates the smoothed Lennard-Jones forces between two particles.
Calculates the Lennard-Jones force which q exerts on p
Implements PairwiseForceSource.
Definition at line 6 of file SmoothedLennardJonesForce.cpp.
|
explicitoverridevirtual |
Returns "SmoothedLennardJones" as the name of the force.
Implements PairwiseForceSource.
Definition at line 32 of file SmoothedLennardJonesForce.cpp.
|
private |
the radius after which the force is 0
Definition at line 43 of file SmoothedLennardJonesForce.h.
|
private |
the radius whithin the normal Lennard-Jones force is applied. Between r_l and r_c the force is smoothed out
Definition at line 48 of file SmoothedLennardJonesForce.h.