gov.nasa.javaGenes.forceFields
Class Potential
java.lang.Object
gov.nasa.javaGenes.forceFields.Potential
- Direct Known Subclasses:
- StillingerWeber, Tersoff
- public abstract class Potential
- extends java.lang.Object
this classes used to find energy of a multibody system given a particular
Chromosome for the potential parameters. Originally designed for molecular force fields.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
STILLINGER_WEBER
public static final int STILLINGER_WEBER
- See Also:
- Constant Field Values
TERSOFF
public static final int TERSOFF
- See Also:
- Constant Field Values
Potential
public Potential()
setChromosome
public abstract void setChromosome(Chromosome target)
- Parameters:
target
- use this chromosome to establish the parameters of the potential
getAlleles
public abstract AlleleTemplate getAlleles()
mustModel
public void mustModel(ManyMultiBodiesForOneEnergy bodies)
getCutoff
public double getCutoff(TwoBody m)
getCutoff
public double getCutoff(ThreeBody m)
getEnergy
public double[] getEnergy(Bodies[] bodies)
- Returns:
- the energies associated with bodies
getForce
public double getForce(TwoBody pair)
getEnergy
public void getEnergy(Bodies[] bodies,
double[] energies)
- Parameters:
energies
- the energies associated with bodies
getEnergy
public double getEnergy(MultiBodiesForOneEnergy bodies)
getEnergy
public double getEnergy(MultiBody bodies)
toString
public java.lang.String toString()