IPotential
, IPotentialAtomic
, Potential2Spherical
, PotentialHard
public class P2Tether extends Potential2HardSpherical
boundary, dr
Constructor | Description |
---|---|
P2Tether(Space space) |
|
P2Tether(Space space,
double tetherLength,
boolean ignoreOverlap) |
Modifier and Type | Method | Description |
---|---|---|
void |
bump(IAtomList pair,
double falseTime) |
Implements collision dynamics for pair attempting to separate beyond tether distance
|
double |
collisionTime(IAtomList pair,
double falseTime) |
Time at which two atoms will reach the end of their tether, assuming free-flight kinematics
|
double |
energyChange() |
returns change in potential energy due to the last collision
|
double |
getRange() |
Returns the tether length.
|
double |
getTetherLength() |
Accessor method for the tether distance
|
Dimension |
getTetherLengthDimension() |
|
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 |
setTetherLength(double t) |
Accessor method for the tether distance
|
double |
u(double r2) |
Returns infinity if separation is greater than tether distance, zero otherwise
|
nBody
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
energy, setBox
public P2Tether(Space space)
public P2Tether(Space space, double tetherLength, boolean ignoreOverlap)
public double getTetherLength()
public void setTetherLength(double t)
public Dimension getTetherLengthDimension()
public final void bump(IAtomList pair, double falseTime)
public final double lastCollisionVirial()
PotentialHard
public final Tensor lastCollisionVirialTensor()
PotentialHard
public double getRange()
getRange
in interface IPotential
getRange
in class Potential
public final 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 energyChange()
PotentialHard