Drawable, IPotential, IPotentialAtomic, PotentialHardpublic class P1HardMovingBoundary extends Potential1 implements PotentialHard, Drawable
Potential1.Intramolecularboundary| Constructor | Description |
|---|---|
P1HardMovingBoundary(Space space,
Boundary boundary,
int wallDimension,
double mass,
boolean ignoreOverlap) |
Constructor for a hard moving (and accelerating) boundary.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
advanceAcrossTimeStep(double tStep) |
|
void |
bump(IAtomList atoms,
double falseTime) |
Implements the collision dynamics.
|
double |
collisionTime(IAtomList atoms,
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 |
getForce() |
|
Dimension |
getForceDimension() |
|
double |
getMass() |
|
Dimension |
getMassDimension() |
|
double |
getPressure() |
|
Dimension |
getPressureDimension() |
|
double |
getWallPosition() |
|
Dimension |
getWallPositionDimension() |
|
double |
getWallVelocity() |
|
Dimension |
getWallVelocityDimension() |
|
boolean |
isStationary() |
|
double |
lastCollisionVirial() |
Value of the virial from the most recent collision.
|
Tensor |
lastCollisionVirialTensor() |
not yet implemented.
|
double |
lastWallVirial() |
|
void |
setCollisionRadius(double d) |
Distance from the center of the sphere to the boundary at collision.
|
void |
setForce(double f) |
|
void |
setMass(double mass) |
|
void |
setPressure(double p) |
|
void |
setStationary(boolean b) |
|
void |
setThickness(double t) |
|
void |
setWallPosition(double p) |
|
void |
setWallVelocity(double v) |
getRange, nBody, setBoxclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRange, setBoxpublic void setWallPosition(double p)
public double getWallPosition()
public Dimension getWallPositionDimension()
public double getWallVelocity()
public void setWallVelocity(double v)
public Dimension getWallVelocityDimension()
public void setForce(double f)
public double getForce()
public Dimension getForceDimension()
public void setPressure(double p)
public double getPressure()
public Dimension getPressureDimension()
public void setStationary(boolean b)
public boolean isStationary()
public double getMass()
public void setMass(double mass)
mass - The mass to set.public Dimension getMassDimension()
public double energy(IAtomList a)
Potentialenergy in interface IPotentialAtomicenergy in class Potentialpublic double energyChange()
PotentialHardenergyChange in interface PotentialHardpublic double collisionTime(IAtomList atoms, double falseTime)
PotentialHardcollisionTime in interface PotentialHardpublic void bump(IAtomList atoms, double falseTime)
PotentialHardbump in interface PotentialHardpublic double lastWallVirial()
public double lastCollisionVirial()
PotentialHardlastCollisionVirial in interface PotentialHardpublic Tensor lastCollisionVirialTensor()
lastCollisionVirialTensor in interface PotentialHardpublic void setCollisionRadius(double d)
public double getCollisionRadius()
public Dimension getCollisionRadiusDimension()
public void advanceAcrossTimeStep(double tStep)
public void setThickness(double t)