Package ffx.openmm

Class CustomAngleForce

java.lang.Object
ffx.openmm.Force
ffx.openmm.CustomAngleForce
Direct Known Subclasses:
AngleForce

public class CustomAngleForce extends Force
Custom Angle Force.
  • Constructor Details

    • CustomAngleForce

      public CustomAngleForce(String energy)
  • Method Details

    • addPerAngleParameter

      public void addPerAngleParameter(String name)
      Add a per-angle parameter to the OpenMM System.
      Parameters:
      name - The name of the parameter.
    • addAngle

      public void addAngle(int i1, int i2, int i3, DoubleArray parameters)
      Add an angle force to the OpenMM System.
      Parameters:
      i1 - The index of the first atom.
      i2 - The index of the second atom.
      i3 - The index of the third atom.
      parameters - The parameters for the angle.
    • setAngleParameters

      public void setAngleParameters(int index, int i1, int i2, int i3, DoubleArray parameters)
      Set the parameters for one angle in the OpenMM System.
      Parameters:
      index - The index of the angle.
      i1 - The index of the first atom.
      i2 - The index of the second atom.
      i3 - The index of the third atom.
      parameters - The angle parameters.
    • updateParametersInContext

      public void updateParametersInContext(Context context)
      Update the parameters in the OpenMM Context.
      Parameters:
      context - The OpenMM Context.