IPotential, IPotentialAtomic, Potential2Spherical, PotentialHardpublic class P2PenetrableSphere extends Potential2HardSpherical
| Modifier and Type | Field | Description |
|---|---|---|
protected double |
coreDiameter |
|
protected double |
coreDiameterSquared |
|
protected Vector |
dv |
|
protected double |
epsilon |
|
protected double |
lastCollisionVirial |
|
protected double |
lastCollisionVirialr2 |
|
protected Tensor |
lastCollisionVirialTensor |
|
protected double |
lastEnergyChange |
boundary, dr| Constructor | Description |
|---|---|
P2PenetrableSphere(Space space) |
Constructor with default values of unity for core diameter and core energy.
|
P2PenetrableSphere(Space space,
double coreDiameter,
double epsilon) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
bump(IAtomList pair,
double falseTime) |
Implements collision dynamics between two penetrable-sphere atoms.
|
double |
collisionTime(IAtomList pair,
double falseTime) |
Computes next time of collision of two square-well atoms, assuming free-flight kinematics.
|
double |
energyChange() |
returns change in potential energy due to the last collision
|
double |
getCoreDiameter() |
Accessor method for core diameter.
|
Dimension |
getCoreDiameterDimension() |
|
double |
getEpsilon() |
Mutator method for height of core.
|
Dimension |
getEpsilonDimension() |
|
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 |
setCoreDiameter(double c) |
Mutator method for core diameter.
|
void |
setEpsilon(double eps) |
Accessor method for height of core.
|
double |
u(double r2) |
Returns epsilon if overlapping, or zero if not.
|
nBodyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitenergy, setBoxprotected double coreDiameter
protected double coreDiameterSquared
protected double epsilon
protected double lastCollisionVirial
protected double lastCollisionVirialr2
protected Tensor lastCollisionVirialTensor
protected double lastEnergyChange
protected Vector dv
public P2PenetrableSphere(Space space)
public P2PenetrableSphere(Space space, double coreDiameter, double epsilon)
public double getRange()
IPotentialgetRange in interface IPotentialgetRange in class Potentialpublic void bump(IAtomList pair, double falseTime)
public double lastCollisionVirial()
PotentialHardpublic Tensor lastCollisionVirialTensor()
PotentialHardpublic double collisionTime(IAtomList pair, double falseTime)
public double u(double r2)
u in interface Potential2Sphericalu in class Potential2HardSphericalr2 - the square of the distance between the particles.public double energyChange()
PotentialHardpublic double getCoreDiameter()
public void setCoreDiameter(double c)
public Dimension getCoreDiameterDimension()
public double getEpsilon()
public void setEpsilon(double eps)
public Dimension getEpsilonDimension()