Class UreyBradley

All Implemented Interfaces:
BondedEnergy, ROLS, Serializable, Cloneable, Comparable<BondedTerm>, MutableTreeNode, TreeNode

public class UreyBradley extends BondedTerm
The UreyBradley class.
Since:
1.0
Author:
Michael J. Schnieders
See Also:
  • Field Details

    • ureyBradleyType

      public final UreyBradleyType ureyBradleyType
      Force field parameters to compute the Stretch-Bend energy.
    • angle

      protected final Angle angle
      The Angle this UreyBradley term is based on.
  • Constructor Details

    • UreyBradley

      public UreyBradley(Angle a, UreyBradleyType ureyBradleyType)
      Constructor for the UreyBradley class.
      Parameters:
      a - a Angle object.
      ureyBradleyType - The Urey-Bradley type to apply.
  • Method Details

    • ureyBradlyFactory

      public static UreyBradley ureyBradlyFactory(Angle angle, ForceField forceField)
      Attempt to create a new UreyBradley for the specified Angle.
      Parameters:
      angle - the Angle to create the UreyBradley from.
      forceField - the ForceField parameters to apply.
      Returns:
      a new UreyBradley, or null.
    • compareTo

      public int compareTo(BondedTerm ub)
      Specified by:
      compareTo in interface Comparable<BondedTerm>
      Overrides:
      compareTo in class BondedTerm
    • energy

      public double energy(boolean gradient, int threadID, AtomicDoubleArray3D grad, AtomicDoubleArray3D lambdaGrad)
      energy.

      Evaluate the Urey-Bradley energy.

      Parameters:
      gradient - If true, compute the gradient.
      threadID - The thread ID.
      grad - a AtomicDoubleArray3D object.
      lambdaGrad - a AtomicDoubleArray3D object.
      Returns:
      a double.
    • log

      public void log()
      log
    • setRigidScale

      public void setRigidScale(double rigidScale)
      Setter for the field rigidScale.
      Parameters:
      rigidScale - a double.