IPotential, IPotentialAtomic, PotentialHardpublic class P1Wall extends java.lang.Object implements PotentialHard
| Modifier and Type | Field | Description |
|---|---|---|
protected Boundary |
boundary |
|
protected double |
epsilon |
|
protected IntegratorBox |
integrator |
|
protected double |
lastEnergyChange |
|
protected double |
lastVirial |
|
protected Tensor |
lastVirialTensor |
|
protected double |
pThermalize |
|
protected IRandom |
random |
|
protected AtomActionRandomizeVelocity |
randomizer |
|
protected double |
range |
|
protected double |
sigma |
|
protected Vector |
vOld |
| 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 atoms) |
Returns the interaction energy between the given atoms.
|
double |
energyChange() |
returns change in potential energy due to the last collision
|
double |
getEpsilon() |
|
double |
getRange() |
Returns the range over which the potential applies.
|
double |
getSigma() |
|
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 |
setBox(Box box) |
Informs the potential of the box on which it acts so that it can
properly consider the boundaries.
|
void |
setEpsilon(double newEpsilon) |
|
void |
setRange(double newRange) |
|
void |
setSigma(double newSigma) |
|
void |
setThermalize(IntegratorBox integrator,
double pThermalize,
IRandom random) |
protected Boundary boundary
protected double range
protected double sigma
protected double epsilon
protected double lastVirial
protected double lastEnergyChange
protected final Tensor lastVirialTensor
protected double pThermalize
protected IntegratorBox integrator
protected IRandom random
protected AtomActionRandomizeVelocity randomizer
protected final Vector vOld
public P1Wall(Space space)
public void setSigma(double newSigma)
public double getSigma()
public void setRange(double newRange)
public void setEpsilon(double newEpsilon)
public double getEpsilon()
public double energy(IAtomList atoms)
IPotentialAtomicenergy in interface IPotentialAtomicpublic double getRange()
IPotentialgetRange in interface IPotentialpublic int nBody()
IPotentialnBody in interface IPotentialpublic void setBox(Box box)
IPotentialsetBox in interface IPotentialpublic void bump(IAtomList a, double falseTime)
PotentialHardbump in interface PotentialHardpublic double collisionTime(IAtomList a, double falseTime)
PotentialHardcollisionTime in interface PotentialHardpublic double energyChange()
PotentialHardenergyChange in interface PotentialHardpublic double lastCollisionVirial()
PotentialHardlastCollisionVirial in interface PotentialHardpublic Tensor lastCollisionVirialTensor()
PotentialHardlastCollisionVirialTensor in interface PotentialHardpublic double lastWallVirial()
public void setThermalize(IntegratorBox integrator, double pThermalize, IRandom random)