Drawable, IPotential, IPotentialAtomic, PotentialHardpublic class P1HardBoundary extends java.lang.Object implements PotentialHard, Drawable
| Constructor | Description |
|---|---|
P1HardBoundary(Space space) |
|
P1HardBoundary(Space space,
boolean ignoreOverlap) |
| 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.
|
void |
draw(java.awt.Graphics g,
int[] origin,
double toPixel) |
|
double |
energy(IAtomList a) |
Returns the interaction energy between the given atoms.
|
double |
energyChange() |
returns change in potential energy due to the last collision
|
double |
getCollisionRadius() |
Distance from the center of the sphere to the boundary at collision.
|
Dimension |
getCollisionRadiusDimension() |
Indicates collision radius has dimensions of Length.
|
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.
|
double |
lastWallVirial() |
|
int |
nBody() |
The number of atoms on which the potential depends.
|
void |
setActive(int dim,
boolean first,
boolean isActive) |
|
void |
setBox(Box box) |
Informs the potential of the box on which it acts so that it can
properly consider the boundaries.
|
void |
setCollisionRadius(double d) |
Distance from the center of the sphere to the boundary at collision.
|
void |
setDrawingThickness(int newThickness) |
|
void |
setLongWall(int dim,
boolean first,
boolean longWall) |
protected Boundary boundary
public P1HardBoundary(Space space)
public P1HardBoundary(Space space, boolean ignoreOverlap)
public int nBody()
IPotentialnBody in interface IPotentialpublic double getRange()
IPotentialgetRange in interface IPotentialpublic void setBox(Box box)
IPotentialsetBox in interface IPotentialpublic double energy(IAtomList a)
IPotentialAtomicenergy in interface IPotentialAtomicpublic double energyChange()
PotentialHardenergyChange in interface PotentialHardpublic double collisionTime(IAtomList a, double falseTime)
PotentialHardcollisionTime in interface PotentialHardpublic void bump(IAtomList a, double falseTime)
PotentialHardbump in interface PotentialHardpublic double lastCollisionVirial()
PotentialHardlastCollisionVirial in interface PotentialHardpublic Tensor lastCollisionVirialTensor()
PotentialHardlastCollisionVirialTensor in interface PotentialHardpublic double lastWallVirial()
public void setCollisionRadius(double d)
public double getCollisionRadius()
public Dimension getCollisionRadiusDimension()
public void setActive(int dim,
boolean first,
boolean isActive)
public void setLongWall(int dim,
boolean first,
boolean longWall)
public void setDrawingThickness(int newThickness)