10 if (dist > std::pow(2, 1.0 / 6.0) * sigma)
return std::array<double, 3UL>{0, 0, 0};
15 (24 * epsilon / (std::pow(dist, 2))) * (std::pow(sigma / dist, 6) - 2 * std::pow(sigma / dist, 12)) * displacement;
Class to represent a particle.
double getSigma() const
Gets the Lennard-Jones potential parameter sigma.
const std::array< double, 3 > & getX() const
Gets the position of the particle.
double getEpsilon() const
Gets the Lennard-Jones potential parameter epsilon.