1 #ifndef OPENMM_HARMONICBONDFORCE_H_
2 #define OPENMM_HARMONICBONDFORCE_H_
39 #include "internal/windowsExport.h"
71 int addBond(
int particle1,
int particle2,
double length,
double k);
81 void getBondParameters(
int index,
int& particle1,
int& particle2,
double& length,
double& k)
const;
91 void setBondParameters(
int index,
int particle1,
int particle2,
double length,
double k);
101 void updateParametersInContext(
Context& context);
106 std::vector<BondInfo> bonds;
113 class HarmonicBondForce::BondInfo {
115 int particle1, particle2;
118 particle1 = particle2 = -1;
121 BondInfo(
int particle1,
int particle2,
double length,
double k) :
122 particle1(particle1), particle2(particle2), length(length), k(k) {