Class StretchBend

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

public class StretchBend extends BondedTerm implements Comparable<BondedTerm>
The StretchBend class represents a Stretch-Bend formed between three linearly bonded atoms.
Since:
1.0
Author:
Michael J. Schnieders
See Also:
  • Field Details

    • angleEq

      public double angleEq
      Equilibrium angle.
    • bond0Eq

      public double bond0Eq
      First equilibrium bond distance.
    • bond1Eq

      public double bond1Eq
      Second equilibrium bond distance.
    • angle

      protected final Angle angle
      Angle this Stretch-Bend is based on.
    • force0

      public double force0
      Force constant.
    • force1

      public double force1
      Force constant.
  • Constructor Details

    • StretchBend

      public StretchBend(Angle a)
      Constructor for the Stretch-Bend class.
      Parameters:
      a - The Angle that this stretch-bend is based on.
  • Method Details

    • compareTo

      public int compareTo(BondedTerm sb)
      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 Stretch-Bend energy.

      Specified by:
      energy in interface BondedEnergy
      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.
    • setStretchBendType

      public void setStretchBendType(StretchBendType stretchBendType)
      Setter for the field stretchBendType.
      Parameters:
      stretchBendType - a StretchBendType object.
    • toString

      public String toString()

      Overridden toString method returns the MSNode's name

      Overridden toString Method returns the Term's id.

      Overridden toString Method returns the Term's id.

      Overrides:
      toString in class BondedTerm