43 static constexpr int num = 1;
47 std::optional<Utils::Vector3d>
force(
double q1q2,
56inline std::optional<Utils::Vector3d>
58#ifdef ESPRESSO_ELECTROSTATICS
59 auto const dist2 =
dx.norm2();
60 auto const dist3 = dist2 * std::sqrt(dist2);
72inline std::optional<double>
74#ifdef ESPRESSO_ELECTROSTATICS
Vector implementation and trait types for boost qvm interoperability.
cudaStream_t stream[1]
CUDA streams for parallel computing on CPU and GPU.
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)