IPotential
, IPotentialAtomic
, Potential2Spherical
, PotentialHard
P2HardSphereCavity
, P2HardSphereMC
, P2RoughSphere
public 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.
|
nBody
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
energy, setBox
protected 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()
IPotential
getRange
in interface IPotential
getRange
in class Potential
public double collisionTime(IAtomList pair, double falseTime)
public void bump(IAtomList pair, double falseTime)
public double lastCollisionVirial()
PotentialHard
public Tensor lastCollisionVirialTensor()
PotentialHard
public double getCollisionDiameter()
public void setCollisionDiameter(double c)
public Dimension getCollisionDiameterDimension()
public double u(double r2)
u
in interface Potential2Spherical
u
in class Potential2HardSpherical
r2
- the square of the distance between the particles.public double energyChange()
PotentialHard