IPotential, IPotentialAtomic, Potential2Spherical, PotentialHardP2HardSphereCavity, P2HardSphereMC, P2RoughSpherepublic class P2HardSphere extends Potential2HardSpherical
| Modifier and Type | Field | Description |
|---|---|---|
protected double |
collisionDiameter |
Separation at which spheres first overlap
|
protected Vector |
dv |
|
protected boolean |
ignoreOverlap |
|
protected double |
lastCollisionVirial |
|
protected double |
lastCollisionVirialr2 |
|
protected Tensor |
lastCollisionVirialTensor |
|
protected double |
sig2 |
Square of collisionDiameter
|
boundary, dr| Constructor | Description |
|---|---|
P2HardSphere(Space space) |
|
P2HardSphere(Space space,
double d,
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 |
energyChange() |
returns change in potential energy due to the last collision
|
double |
getCollisionDiameter() |
Accessor method for collision diameter
|
Dimension |
getCollisionDiameterDimension() |
|
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 |
setCollisionDiameter(double c) |
Accessor method for collision diameter
|
double |
u(double r2) |
Interaction energy of the pair.
|
nBodyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitenergy, setBoxprotected double collisionDiameter
protected double sig2
protected double lastCollisionVirial
protected double lastCollisionVirialr2
protected final boolean ignoreOverlap
protected final Vector dv
protected final Tensor lastCollisionVirialTensor
public P2HardSphere(Space space)
public P2HardSphere(Space space, double d, boolean ignoreOverlap)
public double getRange()
IPotentialgetRange in interface IPotentialgetRange in class Potentialpublic double collisionTime(IAtomList pair, double falseTime)
public void bump(IAtomList pair, double falseTime)
public double lastCollisionVirial()
PotentialHardpublic Tensor lastCollisionVirialTensor()
PotentialHardpublic double getCollisionDiameter()
public void setCollisionDiameter(double c)
public Dimension getCollisionDiameterDimension()
public double u(double r2)
u in interface Potential2Sphericalu in class Potential2HardSphericalr2 - the square of the distance between the particles.public double energyChange()
PotentialHard