47 static constexpr int num = 1;
62inline std::optional<Utils::Vector3d>
64 auto const dist =
dx.norm();
77 "This is most likely an error in the system setup.";
86inline std::optional<double>
88 auto const dist =
dx.norm();
Vector implementation and trait types for boost qvm interoperability.
cudaStream_t stream[1]
CUDA streams for parallel computing on CPU and GPU.
constexpr auto round_error_prec
Precision below which a double-precision float is assumed to be zero.
This file contains the errorhandling code for severe errors, like a broken bond or illegal parameter ...
#define runtimeErrorMsg()
DEVICE_QUALIFIER constexpr T sqr(T x)
Calculates the SQuaRe of x.
Parameters for harmonic bond Potential.
std::optional< Utils::Vector3d > force(Utils::Vector3d const &dx) const
Compute the harmonic bond force.
std::optional< double > energy(Utils::Vector3d const &dx) const
Compute the harmonic bond energy.
double r
equilibrium bond length
double r_cut
cutoff length
HarmonicBond(double k, double r, double r_cut)