std::optional< double > energy(Utils::Vector3d const &pos1, Utils::Vector3d const &pos2, Utils::Vector3d const &dx, std::function< double(Utils::Vector3d const &, Utils::Vector3d 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.