IPotential, IPotentialAtomicP3BondAngle, P3BondAngleDreiding, P3CPSNonAdditiveHe, P3CPSNonAdditiveHeLessSimplified, P3CPSNonAdditiveHeOrig, P3CPSNonAdditiveHeSimplified, P4BondTorsion, P4BondTorsionAlkaneXCCH, P4TorsionDreiding, Potential0, Potential1, Potential2, PotentialNpublic abstract class Potential extends java.lang.Object implements IPotentialAtomic
| Constructor | Description |
|---|---|
Potential(int nBody,
Space space) |
General constructor for a potential instance
|
| Modifier and Type | Method | Description |
|---|---|---|
abstract double |
energy(IAtomList atoms) |
Returns the interaction energy between the given atoms.
|
abstract double |
getRange() |
Returns the range over which the potential applies.
|
int |
nBody() |
The number of atoms on which the potential depends.
|
abstract void |
setBox(Box box) |
Informs the potential of the box on which it acts.
|
protected final Space space
public Potential(int nBody,
Space space)
nBody - number of atoms to which this potential applies at a time;
for example with a pair potential nBody = 2; for a single-body potential,
nBody = 1.public abstract double getRange()
IPotentialgetRange in interface IPotentialpublic abstract double energy(IAtomList atoms)
energy in interface IPotentialAtomicpublic abstract void setBox(Box box)
setBox in interface IPotentialpublic final int nBody()
nBody in interface IPotential