1 #ifndef OPENMM_AMOEBA_BOND_FORCE_H_
2 #define OPENMM_AMOEBA_BOND_FORCE_H_
35 #include "openmm/Force.h"
36 #include "openmm/Vec3.h"
37 #include "internal/windowsExportAmoeba.h"
74 void setAmoebaGlobalBondCubic(
double cubicK );
81 double getAmoebaGlobalBondCubic(
void )
const;
88 void setAmoebaGlobalBondQuartic(
double quarticK );
95 double getAmoebaGlobalBondQuartic(
void )
const;
107 int addBond(
int particle1,
int particle2,
double length,
double quadraticK );
119 void getBondParameters(
int index,
int& particle1,
int& particle2,
double& length,
double& quadraticK )
const;
130 void setBondParameters(
int index,
int particle1,
int particle2,
double length,
double quadraticK );
140 void updateParametersInContext(
Context& context);
147 std::vector<BondInfo> bonds;
154 class AmoebaBondForce::BondInfo {
156 int particle1, particle2;
157 double length, quadraticK;
159 particle1 = particle2 = -1;
160 length = quadraticK = 0.0;
162 BondInfo(
int particle1,
int particle2,
double length,
double quadraticK ) :
163 particle1(particle1), particle2(particle2), length(length), quadraticK(quadraticK) {
double _globalQuarticK
Definition: AmoebaBondForce.h:143
A Context stores the complete state of a simulation.
Definition: Context.h:67
This class implements an interaction between pairs of particles that varies with the distance between...
Definition: AmoebaBondForce.h:54
Force objects apply forces to the particles in a System, or alter their behavior in other ways...
Definition: Force.h:65
int getNumBonds() const
Get the number of bond stretch terms in the potential function.
Definition: AmoebaBondForce.h:65
A ForceImpl provides the internal implementation of a Force.
Definition: ForceImpl.h:57