Drawable
, IPotential
, IPotentialAtomic
, PotentialHard
public class P1HardMovingBoundary extends Potential1 implements PotentialHard, Drawable
Potential1.Intramolecular
boundary
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, setBox
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRange, setBox
public 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)
Potential
energy
in interface IPotentialAtomic
energy
in class Potential
public double energyChange()
PotentialHard
energyChange
in interface PotentialHard
public double collisionTime(IAtomList atoms, double falseTime)
PotentialHard
collisionTime
in interface PotentialHard
public void bump(IAtomList atoms, double falseTime)
PotentialHard
bump
in interface PotentialHard
public double lastWallVirial()
public double lastCollisionVirial()
PotentialHard
lastCollisionVirial
in interface PotentialHard
public Tensor lastCollisionVirialTensor()
lastCollisionVirialTensor
in interface PotentialHard
public void setCollisionRadius(double d)
public double getCollisionRadius()
public Dimension getCollisionRadiusDimension()
public void advanceAcrossTimeStep(double tStep)
public void setThickness(double t)