std::optional< double > energy(Particle const &p1, Particle const &p2, Utils::Vector3d const &dx, std::function< double(Particle const &, Particle const &, double, Utils::Vector3d const &, double)> const &kernel) const
Compute the short-range bonded Coulomb pair energy.
std::optional< Utils::Vector3d > force(Utils::Vector3d const &dx, std::function< Utils::Vector3d(double, Utils::Vector3d const &, double)> const &kernel) const
Compute the short-range bonded Coulomb pair force.
Struct holding all information for one particle.