IPotential, IPotentialAtomic, Potential2Spherical, PotentialHardP2DoubleWell, P2HardAssociation, P2HardBond, P2HardSphere, P2PenetrableBond, P2PenetrableSphere, P2PenetrableSquareWell, P2SquareWell, P2SquareWellBondingCO, P2SquareWellOneSide, P2SquareWellRobust, P2SquareWellSurface, P2Tetherpublic abstract class Potential2HardSpherical extends Potential2 implements PotentialHard, Potential2Spherical
| Modifier and Type | Field | Description |
|---|---|---|
protected Boundary |
boundary |
|
protected Vector |
dr |
| Constructor | Description |
|---|---|
Potential2HardSpherical(Space space) |
| Modifier and Type | Method | Description |
|---|---|---|
double |
energy(IAtomList pair) |
Energy of the pair as given by the u(double) method, with application
of any PotentialTruncation that may be defined for the potential.
|
void |
setBox(Box box) |
Informs the potential of the box on which it acts.
|
abstract double |
u(double r2) |
The pair energy u(r^2) with no truncation applied.
|
getRange, nBodyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbump, collisionTime, energyChange, lastCollisionVirial, lastCollisionVirialTensorpublic Potential2HardSpherical(Space space)
public abstract double u(double r2)
u in interface Potential2Sphericalr2 - the square of the distance between the particles.public double energy(IAtomList pair)
energy in interface IPotentialAtomicenergy in class Potentialpublic void setBox(Box box)
PotentialsetBox in interface IPotentialsetBox in class Potential