IPotential, IPotentialAtomic, PotentialHardpublic class P2HardSpherePoly extends Potential2 implements PotentialHard
| Modifier and Type | Field | Description |
|---|---|---|
protected Boundary |
boundary |
|
protected Vector |
dr |
|
protected Vector |
dv |
|
protected boolean |
ignoreOverlap |
|
protected double |
lastCollisionVirial |
|
protected double |
lastCollisionVirialr2 |
|
protected Tensor |
lastCollisionVirialTensor |
|
protected double[] |
sigmas |
| Constructor | Description |
|---|---|
P2HardSpherePoly(Space space,
double[] sigmas,
boolean ignoreOverlap) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
bump(IAtomList pair,
double falseTime) |
Implements collision dynamics and updates lastCollisionVirial
|
double |
collisionTime(IAtomList pair,
double falseTime) |
Time to collision of pair, assuming free-flight kinematics
|
double |
energy(IAtomList pair) |
Interaction energy of the pair.
|
double |
energyChange() |
returns change in potential energy due to the last collision
|
double[] |
getCollisionDiameter() |
Accessor method for collision diameter
|
double |
getRange() |
Returns the range over which the potential applies.
|
double |
lastCollisionVirial() |
Value of the virial from the most recent collision.
|
Tensor |
lastCollisionVirialTensor() |
Value of the virial from the most recent collision, decomposed into it
tensoral elements.
|
void |
setBox(Box box) |
Informs the potential of the box on which it acts.
|
nBodyprotected double lastCollisionVirial
protected double lastCollisionVirialr2
protected final boolean ignoreOverlap
protected final Vector dr
protected final Vector dv
protected final double[] sigmas
protected final Tensor lastCollisionVirialTensor
protected Boundary boundary
public P2HardSpherePoly(Space space, double[] sigmas, boolean ignoreOverlap)
public double getRange()
IPotentialgetRange in interface IPotentialgetRange in class Potentialpublic double collisionTime(IAtomList pair, double falseTime)
collisionTime in interface PotentialHardpublic void bump(IAtomList pair, double falseTime)
bump in interface PotentialHardpublic double lastCollisionVirial()
PotentialHardlastCollisionVirial in interface PotentialHardpublic Tensor lastCollisionVirialTensor()
PotentialHardlastCollisionVirialTensor in interface PotentialHardpublic double[] getCollisionDiameter()
public double energy(IAtomList pair)
energy in interface IPotentialAtomicenergy in class Potentialpublic void setBox(Box box)
PotentialsetBox in interface IPotentialsetBox in class Potentialpublic double energyChange()
PotentialHardenergyChange in interface PotentialHard