IPotential
, IPotentialAtomic
, Potential2Spherical
, PotentialHard
P2DoubleWell
, P2HardAssociation
, P2HardBond
, P2HardSphere
, P2PenetrableBond
, P2PenetrableSphere
, P2PenetrableSquareWell
, P2SquareWell
, P2SquareWellBondingCO
, P2SquareWellOneSide
, P2SquareWellRobust
, P2SquareWellSurface
, P2Tether
public 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, nBody
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
bump, collisionTime, energyChange, lastCollisionVirial, lastCollisionVirialTensor
public Potential2HardSpherical(Space space)
public abstract double u(double r2)
u
in interface Potential2Spherical
r2
- the square of the distance between the particles.public double energy(IAtomList pair)
energy
in interface IPotentialAtomic
energy
in class Potential
public void setBox(Box box)
Potential
setBox
in interface IPotential
setBox
in class Potential