IPotential
, IPotentialAtomic
, Potential2Spherical
, PotentialHard
public class P2HardBond extends Potential2HardSpherical
boundary, dr
Constructor | Description |
---|---|
P2HardBond(Space space) |
|
P2HardBond(Space space,
double bondLength,
double bondDelta,
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 |
getBondDelta() |
Accessor method for the bond extension factor
|
double |
getBondLength() |
Accessor method for the bond length
|
Dimension |
getBondLengthDimension() |
|
double |
getRange() |
Returns infinity.
|
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 |
setBondDelta(double d) |
Sets the bond extension factor (max = length * (1+delta))
|
void |
setBondLength(double l) |
Setter method for the bond length
|
double |
u(double r2) |
Returns 0 if the bond is within the required distance, infinity if not.
|
nBody
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
energy, setBox
public P2HardBond(Space space)
public P2HardBond(Space space, double bondLength, double bondDelta, boolean ignoreOverlap)
public final double getBondLength()
public final double getBondDelta()
public final void setBondLength(double l)
public final void setBondDelta(double d)
public final Dimension getBondLengthDimension()
public final void bump(IAtomList pair, double falseTime)
public final double lastCollisionVirial()
PotentialHard
public final Tensor lastCollisionVirialTensor()
PotentialHard
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 getRange()
getRange
in interface IPotential
getRange
in class Potential
public double energyChange()
PotentialHard