Package ffx.openmm

Class HarmonicBondForce

java.lang.Object
ffx.openmm.Force
ffx.openmm.HarmonicBondForce
Direct Known Subclasses:
UreyBradleyForce

public class HarmonicBondForce extends Force
Harmonic Bond Force.
  • Constructor Details

    • HarmonicBondForce

      public HarmonicBondForce()
  • Method Details

    • addBond

      public void addBond(int i1, int i2, double length, double k)
      Add a Harmonic Bond.
      Parameters:
      i1 - Index of the first atom.
      i2 - Index of the second atom.
      length - The equilibrium bond length.
      k - The force constant.
    • setBondParameters

      public void setBondParameters(int i, int i1, int i2, double length, double k)
      Set the bond parameters.
      Parameters:
      i - The bond index.
      i1 - Index of the first atom.
      i2 - Index of the second atom.
      length - The equilibrium bond length.
      k - The force constant.
    • updateParametersInContext

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