IPotential
, IPotentialAtomic
, Potential2Spherical
, PotentialHard
public 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, sig2
boundary, 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() |
nBody
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
energyChange, getCollisionDiameter, getCollisionDiameterDimension, getRange, lastCollisionVirial, lastCollisionVirialTensor, setCollisionDiameter, u
setBox
protected 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)
P2HardSphere
collisionTime
in interface PotentialHard
collisionTime
in class P2HardSphere
public void bump(IAtomList pair, double falseTime)
bump
in interface PotentialHard
bump
in class P2HardSphere
public double energy(IAtomList pair)
Potential2HardSpherical
energy
in interface IPotentialAtomic
energy
in class Potential2HardSpherical
public P2HardSphereCavity.CollisionType getLastCollisionType()