1 #ifndef OPENMM_RBTORSIONFORCE_H_
2 #define OPENMM_RBTORSIONFORCE_H_
39 #include "internal/windowsExport.h"
60 return rbTorsions.size();
77 int addTorsion(
int particle1,
int particle2,
int particle3,
int particle4,
double c0,
double c1,
double c2,
double c3,
double c4,
double c5);
93 void getTorsionParameters(
int index,
int& particle1,
int& particle2,
int& particle3,
int& particle4,
double& c0,
double& c1,
double& c2,
double& c3,
double& c4,
double& c5)
const;
109 void setTorsionParameters(
int index,
int particle1,
int particle2,
int particle3,
int particle4,
double c0,
double c1,
double c2,
double c3,
double c4,
double c5);
119 void updateParametersInContext(
Context& context);
130 ForceImpl* createImpl()
const;
133 std::vector<RBTorsionInfo> rbTorsions;
140 class RBTorsionForce::RBTorsionInfo {
142 int particle1, particle2, particle3, particle4;
145 particle1 = particle2 = particle3 = particle4 = -1;
146 c[0] = c[1] = c[2] = c[3] = c[4] = c[5] = 0.0;
148 RBTorsionInfo(
int particle1,
int particle2,
int particle3,
int particle4,
double c0,
double c1,
double c2,
double c3,
double c4,
double c5) :
149 particle1(particle1), particle2(particle2), particle3(particle3), particle4(particle4) {
A Context stores the complete state of a simulation.
Definition: Context.h:67
bool usesPeriodicBoundaryConditions() const
Returns whether or not this force makes use of periodic boundary conditions.
Definition: RBTorsionForce.h:126
This class implements an interaction between groups of four particles that varies with the torsion an...
Definition: RBTorsionForce.h:50
Force objects apply forces to the particles in a System, or alter their behavior in other ways...
Definition: Force.h:65
int getNumTorsions() const
Get the number of Ryckaert-Bellemans torsion terms in the potential function.
Definition: RBTorsionForce.h:59
Definition: AndersenThermostat.h:40