1 #ifndef OPENMM_AMOEBA_PI_TORSION_FORCE_H_
2 #define OPENMM_AMOEBA_PI_TORSION_FORCE_H_
35 #include "openmm/Force.h"
36 #include "internal/windowsExportAmoeba.h"
62 return piTorsions.size();
77 int addPiTorsion(
int particle1,
int particle2,
int particle3,
int particle4,
int particle5,
int particle6,
double k);
91 void getPiTorsionParameters(
int index,
int& particle1,
int& particle2,
int& particle3,
int& particle4,
int& particle5,
int& particle6,
double& k)
const;
105 void setPiTorsionParameters(
int index,
int particle1,
int particle2,
int particle3,
int particle4,
int particle5,
int particle6,
double k);
115 void updateParametersInContext(
Context& context);
121 std::vector<PiTorsionInfo> piTorsions;
128 class AmoebaPiTorsionForce::PiTorsionInfo {
130 int particle1, particle2, particle3, particle4, particle5, particle6;
133 particle1 = particle2 = particle3 = particle4 = particle5 = particle6 = -1;
136 PiTorsionInfo(
int particle1,
int particle2,
int particle3,
int particle4,
int particle5,
int particle6,
double k) :
137 particle1(particle1), particle2(particle2), particle3(particle3), particle4(particle4), particle5(particle5), particle6(particle6), k(k) {
A Context stores the complete state of a simulation.
Definition: Context.h:67
Force objects apply forces to the particles in a System, or alter their behavior in other ways...
Definition: Force.h:65
A ForceImpl provides the internal implementation of a Force.
Definition: ForceImpl.h:57
This class implements the Amoeba pi-torsion interaction.
Definition: AmoebaPiTorsionForce.h:49
int getNumPiTorsions() const
Get the number of pi torsion terms in the potential function.
Definition: AmoebaPiTorsionForce.h:61