IPotential, IPotentialAtomic, PotentialHardpublic class P1MagicWall extends Potential1 implements PotentialHard
Potential1.Intramolecular| Modifier and Type | Field | Description |
|---|---|---|
protected Vector |
dr |
|
protected Vector |
dv |
|
protected double |
lastDeltaU |
|
protected NeighborListManager |
neighborManager |
|
protected PotentialMasterList |
potentialMaster |
boundary| Constructor | Description |
|---|---|
P1MagicWall(Space space,
PotentialMasterList potentialMaster) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
bump(IAtomList a,
double falseTime) |
Implements the collision dynamics.
|
double |
collisionTime(IAtomList a,
double falseTime) |
Computes the time of collision of the given atom(s) with the hard
potential, assuming no intervening collisions.
|
double |
energy(IAtomList a) |
Returns the interaction energy between the given atoms.
|
double |
energyChange() |
returns change in potential energy due to the last collision
|
protected double |
getDeltaU(IAtomKinetic atom,
double falseTime,
boolean isIG2SQW,
boolean countHigh) |
|
double |
lastCollisionVirial() |
not yet implemented
|
Tensor |
lastCollisionVirialTensor() |
not yet implemented.
|
void |
setBox(Box newBox) |
Informs the potential of the box on which it acts.
|
getRange, nBodyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRangeprotected final PotentialMasterList potentialMaster
protected NeighborListManager neighborManager
protected final Vector dr
protected final Vector dv
protected double lastDeltaU
public P1MagicWall(Space space, PotentialMasterList potentialMaster)
public double energy(IAtomList a)
Potentialenergy in interface IPotentialAtomicenergy in class Potentialpublic void setBox(Box newBox)
PotentialsetBox in interface IPotentialsetBox in class Potential1public double collisionTime(IAtomList a, double falseTime)
PotentialHardcollisionTime in interface PotentialHardpublic void bump(IAtomList a, double falseTime)
PotentialHardbump in interface PotentialHardprotected double getDeltaU(IAtomKinetic atom, double falseTime, boolean isIG2SQW, boolean countHigh)
public double energyChange()
PotentialHardenergyChange in interface PotentialHardpublic double lastCollisionVirial()
lastCollisionVirial in interface PotentialHardpublic Tensor lastCollisionVirialTensor()
lastCollisionVirialTensor in interface PotentialHard