Drawable
, IPotential
, IPotentialAtomic
, PotentialHard
public 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()
IPotential
nBody
in interface IPotential
public double getRange()
IPotential
getRange
in interface IPotential
public void setBox(Box box)
IPotential
setBox
in interface IPotential
public double energy(IAtomList a)
IPotentialAtomic
energy
in interface IPotentialAtomic
public double energyChange()
PotentialHard
energyChange
in interface PotentialHard
public double collisionTime(IAtomList a, double falseTime)
PotentialHard
collisionTime
in interface PotentialHard
public void bump(IAtomList a, double falseTime)
PotentialHard
bump
in interface PotentialHard
public double lastCollisionVirial()
PotentialHard
lastCollisionVirial
in interface PotentialHard
public Tensor lastCollisionVirialTensor()
PotentialHard
lastCollisionVirialTensor
in interface PotentialHard
public 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)