Package ffx.openmm

Class PeriodicTorsionForce

java.lang.Object
ffx.openmm.Force
ffx.openmm.PeriodicTorsionForce
Direct Known Subclasses:
ImproperTorsionForce, RestrainTorsionsForce, TorsionForce

public class PeriodicTorsionForce extends Force
Periodic Torsion Force.
  • Constructor Details

    • PeriodicTorsionForce

      public PeriodicTorsionForce()
  • Method Details

    • addTorsion

      public void addTorsion(int particle1, int particle2, int particle3, int particle4, int periodicity, double phase, double k)
      Add a torsion to the PeriodicTorsionForce.
      Parameters:
      particle1 - Index of the first atom.
      particle2 - Index of the second atom.
      particle3 - Index of the third atom.
      particle4 - Index of the fourth atom.
      periodicity - The periodicity of the torsion.
      phase - The phase of the torsion.
      k - The force constant for the torsion.
    • setTorsionParameters

      public void setTorsionParameters(int index, int particle1, int particle2, int particle3, int particle4, int periodicity, double phase, double k)
      Set the parameters for a torsion.
      Parameters:
      index - The index of the torsion for which to set parameters.
      particle1 - The index of the first atom in the torsion.
      particle2 - The index of the second atom in the torsion.
      particle3 - The index of the third atom in the torsion.
      particle4 - The index of the fourth atom in the torsion.
      periodicity - The periodicity of the torsion.
      phase - The phase of the torsion.
      k - The force constant for the torsion.
    • updateParametersInContext

      public void updateParametersInContext(Context context)
      Update the parameters for a torsion in the OpenMM Context.
      Parameters:
      context - The OpenMM Context.
    • destroy

      public void destroy()