IPotential
, IPotentialAtomic
, Potential2Spherical
, PotentialHard
public class P2HardAssociation extends Potential2HardSpherical
boundary, dr
Constructor | Description |
---|---|
P2HardAssociation(Space space) |
|
P2HardAssociation(Space space,
double wellDiameter,
double epsilon) |
Modifier and Type | Method | Description |
---|---|---|
void |
bump(IAtomList pair,
double falseTime) |
Implements the collision dynamics.
|
double |
collisionTime(IAtomList pair,
double falseTime) |
Computes the next time of collision of the given atomPair assuming free flight.
|
double |
energyChange() |
returns change in potential energy due to the last collision
|
double |
getEpsilon() |
Accessor method for depth of well.
|
Dimension |
getEpsilonDimension() |
|
double |
getRange() |
Returns the well diameter.
|
double |
getWellDiameter() |
Accessor for well diameter.
|
Dimension |
getWellDiameterDimension() |
|
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 |
setEpsilon(double s) |
Accessor method for depth of well.
|
void |
setWellDiameter(double w) |
Accessor for well-diameter.
|
double |
u(double r2) |
Returns -epsilon if less than well diameter, or zero otherwise.
|
nBody
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
energy, setBox
public P2HardAssociation(Space space)
public P2HardAssociation(Space space, double wellDiameter, double epsilon)
public void bump(IAtomList pair, double falseTime)
public double lastCollisionVirial()
PotentialHard
public double energyChange()
PotentialHard
public Tensor lastCollisionVirialTensor()
PotentialHard
public double collisionTime(IAtomList pair, double falseTime)
public double u(double r2)
u
in interface Potential2Spherical
u
in class Potential2HardSpherical
r2
- the square of the distance between the particles.public double getWellDiameter()
public void setWellDiameter(double w)
public Dimension getWellDiameterDimension()
public double getRange()
getRange
in interface IPotential
getRange
in class Potential
public double getEpsilon()
public void setEpsilon(double s)
public Dimension getEpsilonDimension()