JavaGenes, NASA Ames. Written largely by Al Globus

gov.nasa.javaGenes.forceFields
Class ThreeBody

java.lang.Object
  extended bygov.nasa.javaGenes.forceFields.MultiBody
      extended bygov.nasa.javaGenes.forceFields.ThreeBody
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class ThreeBody
extends MultiBody

See Also:
Serialized Form

Field Summary
protected  double _angle
           
protected  double _jiDistance
           
protected  double _jkDistance
           
protected  boolean requiresSWextraParameters
           
 
Fields inherited from class gov.nasa.javaGenes.forceFields.MultiBody
_name, howMany
 
Constructor Summary
ThreeBody(Atom atomi, Atom atomj, Atom atomk)
          middle atom is center of the three body
ThreeBody(Atom atomi, Atom center, Atom atomk, UnitCell unitCell)
          middle atom is center of the three body
ThreeBody(java.lang.String atomi, java.lang.String atomj, java.lang.String atomk)
           
ThreeBody(java.lang.String atomi, java.lang.String atomj, java.lang.String atomk, double jiDistance, double jkDistance, double angleAroundj)
          middle atom is center of the three body.
 
Method Summary
 double getAngle()
           
 double getRJI()
           
 double getRJK()
           
 boolean isReasonable()
           
protected  boolean isSWspecial(java.lang.String s)
           
 boolean nearlyEqual(ThreeBody other)
           
 boolean requiresStillingWeberFFFform()
           
 void scaleLengthsBy(double scaleFactor)
           
 void setAngle(double v)
           
 void setRJI(double v)
           
 void setRJK(double v)
           
 java.lang.String tabSeparatedString()
           
 java.lang.String toString()
           
 boolean withinCutoff(double cutoff)
           
 boolean withinCutoff(Potential potential)
           
 
Methods inherited from class gov.nasa.javaGenes.forceFields.MultiBody
copy, divideHowManyBy, getHowMany, getName, incrementHowMany, removeInternalElementsOutsideOfCutoff, setHowMany, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_jiDistance

protected double _jiDistance

_jkDistance

protected double _jkDistance

_angle

protected double _angle

requiresSWextraParameters

protected boolean requiresSWextraParameters
Constructor Detail

ThreeBody

public ThreeBody(java.lang.String atomi,
                 java.lang.String atomj,
                 java.lang.String atomk,
                 double jiDistance,
                 double jkDistance,
                 double angleAroundj)
middle atom is center of the three body. Order of others is forced to be alphabetic (for comparisons).


ThreeBody

public ThreeBody(java.lang.String atomi,
                 java.lang.String atomj,
                 java.lang.String atomk)

ThreeBody

public ThreeBody(Atom atomi,
                 Atom atomj,
                 Atom atomk)
middle atom is center of the three body


ThreeBody

public ThreeBody(Atom atomi,
                 Atom center,
                 Atom atomk,
                 UnitCell unitCell)
middle atom is center of the three body

Method Detail

requiresStillingWeberFFFform

public boolean requiresStillingWeberFFFform()

isSWspecial

protected boolean isSWspecial(java.lang.String s)

getRJI

public double getRJI()

getRJK

public double getRJK()

getAngle

public double getAngle()

setRJI

public void setRJI(double v)

setRJK

public void setRJK(double v)

setAngle

public void setAngle(double v)

scaleLengthsBy

public void scaleLengthsBy(double scaleFactor)
Specified by:
scaleLengthsBy in class MultiBody

withinCutoff

public boolean withinCutoff(Potential potential)
Specified by:
withinCutoff in class MultiBody

withinCutoff

public boolean withinCutoff(double cutoff)

isReasonable

public boolean isReasonable()

toString

public java.lang.String toString()

tabSeparatedString

public java.lang.String tabSeparatedString()
Specified by:
tabSeparatedString in class MultiBody

nearlyEqual

public boolean nearlyEqual(ThreeBody other)

JavaGenes, NASA Ames. Written largely by Al Globus