IPotential
, IPotentialAtomic
, PotentialHard
public 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, nBody
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRange
protected 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)
Potential
energy
in interface IPotentialAtomic
energy
in class Potential
public void setBox(Box newBox)
Potential
setBox
in interface IPotential
setBox
in class Potential1
public double collisionTime(IAtomList a, double falseTime)
PotentialHard
collisionTime
in interface PotentialHard
public void bump(IAtomList a, double falseTime)
PotentialHard
bump
in interface PotentialHard
protected double getDeltaU(IAtomKinetic atom, double falseTime, boolean isIG2SQW, boolean countHigh)
public double energyChange()
PotentialHard
energyChange
in interface PotentialHard
public double lastCollisionVirial()
lastCollisionVirial
in interface PotentialHard
public Tensor lastCollisionVirialTensor()
lastCollisionVirialTensor
in interface PotentialHard