33#include <boost/optional.hpp>
44 static constexpr int num = 1;
48 boost::optional<Utils::Vector3d>
force(
double q1q2,
53 friend boost::serialization::access;
54 template <
typename Archive>
55 void serialize(Archive &ar,
long int ) {
64inline boost::optional<Utils::Vector3d>
67 auto const dist2 = dx.
norm2();
68 auto const dist3 = dist2 * std::sqrt(dist2);
69 auto const fac =
prefactor * q1q2 / dist3;
80inline boost::optional<double>
83 auto const dist = dx.
norm();
Vector implementation and trait types for boost qvm interoperability.
This file contains the defaults for ESPResSo.
Parameters for Coulomb bond Potential.
boost::optional< double > energy(double q1q2, Utils::Vector3d const &dx) const
Compute the bonded Coulomb pair energy.
double prefactor
Coulomb prefactor.
BondedCoulomb(double prefactor)
boost::optional< Utils::Vector3d > force(double q1q2, Utils::Vector3d const &dx) const
Compute the bonded Coulomb pair force.