43 static constexpr int num = 1;
47 std::optional<Utils::Vector3d>
force(
double q1q2,
56inline std::optional<Utils::Vector3d>
59 auto const dist2 = dx.
norm2();
60 auto const dist3 = dist2 * std::sqrt(dist2);
61 auto const fac =
prefactor * q1q2 / dist3;
72inline std::optional<double>
75 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.
std::optional< Utils::Vector3d > force(double q1q2, Utils::Vector3d const &dx) const
Compute the bonded Coulomb pair force.
std::optional< double > energy(double q1q2, Utils::Vector3d const &dx) const
Compute the bonded Coulomb pair energy.
double prefactor
Coulomb prefactor.
BondedCoulomb(double prefactor)