IPotential
, IPotentialAtomic
, Potential2Spherical
, PotentialHard
public class P2PenetrableBond extends Potential2HardSpherical
boundary, dr
Constructor | Description |
---|---|
P2PenetrableBond(Space space) |
|
P2PenetrableBond(Space space,
double bondLength,
double bondDelta,
boolean ignoreOverlap) |
Modifier and Type | Method | Description |
---|---|---|
void |
bump(IAtomList pair,
double falseTime) |
Implements collision dynamics between two square-well atoms.
|
double |
collisionTime(IAtomList pair,
double falseTime) |
Computes the time of collision of the given atom(s) with the hard
potential, assuming no intervening collisions.
|
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 |
getEpsInner() |
|
Dimension |
getEpsInnerDimension() |
|
double |
getEpsOuter() |
|
Dimension |
getEpsOuterDimension() |
|
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
|
void |
setEpsInner(double epsInner) |
|
void |
setEpsOuter(double epsOuter) |
|
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 P2PenetrableBond(Space space)
public P2PenetrableBond(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 void bump(IAtomList pair, double falseTime)
public final double lastCollisionVirial()
PotentialHard
public final Tensor lastCollisionVirialTensor()
PotentialHard
public double collisionTime(IAtomList pair, double falseTime)
PotentialHard
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 getEpsInner()
public void setEpsInner(double epsInner)
public double getEpsOuter()
public void setEpsOuter(double epsOuter)
public Dimension getEpsInnerDimension()
public Dimension getEpsOuterDimension()
public double energyChange()
PotentialHard