Class StretchBendForce


public class StretchBendForce extends CustomCompoundBondForce
OpenMM Stretch-Bend Force.
  • Constructor Details

    • StretchBendForce

      public StretchBendForce(StretchBendPotentialEnergy stretchBendPotentialEnergy)
      Create an OpenMM Stretch-Bend Force.
      Parameters:
      stretchBendPotentialEnergy - The StretchBendPotentialEnergy instance that contains the stretch-bends.
    • StretchBendForce

      public StretchBendForce(StretchBendPotentialEnergy stretchBendPotentialEnergy, int topology, OpenMMDualTopologyEnergy openMMDualTopologyEnergy)
      Create an OpenMM Stretch-Bend Force for Dual Topology.
      Parameters:
      stretchBendPotentialEnergy - The StretchBendPotentialEnergy instance that contains the stretch-bends.
      topology - The topology index for the OpenMM System.
      openMMDualTopologyEnergy - The OpenMMDualTopologyEnergy instance.
  • Method Details

    • constructForce

      public static Force constructForce(OpenMMEnergy openMMEnergy)
      Convenience method to construct an OpenMM Stretch-Bend Force.
      Parameters:
      openMMEnergy - The OpenMM Energy instance that contains the stretch-bends.
      Returns:
      An OpenMM Stretch-Bend Force, or null if there are no stretch-bends.
    • constructForce

      public static Force constructForce(int topology, OpenMMDualTopologyEnergy openMMDualTopologyEnergy)
      Convenience method to construct a Dual-Topology OpenMM Stretch-Bend Force.
      Parameters:
      topology - The topology index for the OpenMM System.
      openMMDualTopologyEnergy - The OpenMMDualTopologyEnergy instance.
      Returns:
      An OpenMM Stretch-Bend Force, or null if there are no stretch-bends.
    • updateForce

      public void updateForce(OpenMMEnergy openMMEnergy)
      Update this Stretch-Bend Force.
      Parameters:
      openMMEnergy - The OpenMM Energy instance that contains the stretch-bends.
    • updateForce

      public void updateForce(int topology, OpenMMDualTopologyEnergy openMMDualTopologyEnergy)
      Update existing Stretch-Bend Force for the Dual-Topology OpenMM System.
      Parameters:
      topology - The topology index for the OpenMM System.
      openMMDualTopologyEnergy - The OpenMMDualTopologyEnergy instance.