IPotential, IPotentialAtomic, Potential2Spherical, PotentialHardpublic class P2HardSphereCavity extends P2HardSphere
| Modifier and Type | Class | Description |
|---|---|---|
static class |
P2HardSphereCavity.CollisionType |
| Modifier and Type | Field | Description |
|---|---|---|
protected int |
idxProduct |
|
protected int |
idxSum |
|
protected P2HardSphereCavity.CollisionType |
lastCollisionType |
|
protected IAtomKinetic |
pairedAtom1 |
|
protected IAtomKinetic |
pairedAtom2 |
|
protected double |
pairWell |
|
protected IRandom |
random |
collisionDiameter, dv, ignoreOverlap, lastCollisionVirial, lastCollisionVirialr2, lastCollisionVirialTensor, sig2boundary, dr| Constructor | Description |
|---|---|
P2HardSphereCavity(Space space) |
|
P2HardSphereCavity(Space space,
IRandom random,
double pairWell) |
| 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) |
Energy of the pair as given by the u(double) method, with application
of any PotentialTruncation that may be defined for the potential.
|
P2HardSphereCavity.CollisionType |
getLastCollisionType() |
|
IAtom |
getPairedAtom1() |
|
IAtom |
getPairedAtom2() |
nBodyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitenergyChange, getCollisionDiameter, getCollisionDiameterDimension, getRange, lastCollisionVirial, lastCollisionVirialTensor, setCollisionDiameter, usetBoxprotected final IRandom random
protected double pairWell
protected IAtomKinetic pairedAtom1
protected IAtomKinetic pairedAtom2
protected int idxSum
protected int idxProduct
protected P2HardSphereCavity.CollisionType lastCollisionType
public P2HardSphereCavity(Space space)
public IAtom getPairedAtom1()
public IAtom getPairedAtom2()
public double collisionTime(IAtomList pair, double falseTime)
P2HardSpherecollisionTime in interface PotentialHardcollisionTime in class P2HardSpherepublic void bump(IAtomList pair, double falseTime)
bump in interface PotentialHardbump in class P2HardSpherepublic double energy(IAtomList pair)
Potential2HardSphericalenergy in interface IPotentialAtomicenergy in class Potential2HardSphericalpublic P2HardSphereCavity.CollisionType getLastCollisionType()