IPotential
, IPotentialAtomic
, Potential2Spherical
, PotentialHard
public class P2RoughSphere extends P2HardSphere
collisionDiameter, dv, ignoreOverlap, lastCollisionVirial, lastCollisionVirialr2, lastCollisionVirialTensor, sig2
boundary, dr
Constructor | Description |
---|---|
P2RoughSphere(Space space) |
|
P2RoughSphere(Space space,
double d,
boolean ignoreOverlap) |
Modifier and Type | Method | Description |
---|---|---|
void |
bump(IAtomList pair,
double falseTime) |
Implements collision dynamics and updates lastCollisionVirial
Assumes atoms have same size and mass
|
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.
|
nBody
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
collisionTime, energyChange, getCollisionDiameter, getCollisionDiameterDimension, getRange, setCollisionDiameter, u
energy, setBox
public P2RoughSphere(Space space)
public P2RoughSphere(Space space, double d, boolean ignoreOverlap)
public void bump(IAtomList pair, double falseTime)
bump
in interface PotentialHard
bump
in class P2HardSphere
public final double lastCollisionVirial()
PotentialHard
lastCollisionVirial
in interface PotentialHard
lastCollisionVirial
in class P2HardSphere
public final Tensor lastCollisionVirialTensor()
PotentialHard
lastCollisionVirialTensor
in interface PotentialHard
lastCollisionVirialTensor
in class P2HardSphere