Class BondForce


public class BondForce extends CustomBondForce
Bond Force.
  • Constructor Details

    • BondForce

      public BondForce(BondPotentialEnergy bondPotentialEnergy)
      Bond Force constructor.
      Parameters:
      bondPotentialEnergy - BondPotentialEnergy that contains the Bond instances
    • BondForce

      public BondForce(BondPotentialEnergy bondPotentialEnergy, int topology, OpenMMDualTopologyEnergy openMMDualTopologyEnergy)
      Bond Force constructor.
      Parameters:
      bondPotentialEnergy - BondPotentialEnergy that contains the Bond instances
      topology - The topology index for the OpenMM System.
      openMMDualTopologyEnergy - The OpenMMDualTopologyEnergy instance.
  • Method Details

    • constructForce

      public static Force constructForce(OpenMMEnergy openMMEnergy)
      Creat a bond force for the OpenMM System.
      Parameters:
      openMMEnergy - OpenMM Energy that contains the Bond instances.
    • constructForce

      public static Force constructForce(int topology, OpenMMDualTopologyEnergy openMMDualTopologyEnergy)
      Add a bond force to the OpenMM System.
      Parameters:
      topology - The topology index for the OpenMM System.
      openMMDualTopologyEnergy - The OpenMMDualTopologyEnergy instance.
    • updateForce

      public void updateForce(OpenMMEnergy openMMEnergy)
      Update an existing bond force for the OpenMM System.
    • updateForce

      public void updateForce(int topology, OpenMMDualTopologyEnergy openMMDualTopologyEnergy)
      Update an existing bond force for the OpenMM System.
      Parameters:
      topology - The topology index for the OpenMM System.
      openMMDualTopologyEnergy - The OpenMMDualTopologyEnergy instance.