IPotential
, IPotentialAtomic
, PotentialHard
public 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.
|
nBody
protected 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()
IPotential
getRange
in interface IPotential
getRange
in class Potential
public double collisionTime(IAtomList pair, double falseTime)
collisionTime
in interface PotentialHard
public void bump(IAtomList pair, double falseTime)
bump
in interface PotentialHard
public double lastCollisionVirial()
PotentialHard
lastCollisionVirial
in interface PotentialHard
public Tensor lastCollisionVirialTensor()
PotentialHard
lastCollisionVirialTensor
in interface PotentialHard
public double[] getCollisionDiameter()
public double energy(IAtomList pair)
energy
in interface IPotentialAtomic
energy
in class Potential
public void setBox(Box box)
Potential
setBox
in interface IPotential
setBox
in class Potential
public double energyChange()
PotentialHard
energyChange
in interface PotentialHard