IPotential
, IPotentialAtomic
, PotentialHard
public class P1HardPeriodic extends Potential1 implements PotentialHard
Potential1.Intramolecular
Modifier and Type | Field | Description |
---|---|---|
protected double |
sigma |
boundary
Constructor | Description |
---|---|
P1HardPeriodic(Space space) |
Returns an instance of P1HardPeriodic with sigma = NaN.
|
P1HardPeriodic(Space space,
double sigma) |
Returns an instance of P1HardPeriodic with the given value of sigma (the
maximum distance between two atoms where they interact)
|
Modifier and Type | Method | Description |
---|---|---|
void |
bump(IAtomList a,
double falseTime) |
Performs no action.
|
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 a) |
Returns zero.
|
double |
energyChange() |
Returns zero.
|
double |
getSgima() |
|
double |
lastCollisionVirial() |
Returns zero.
|
Tensor |
lastCollisionVirialTensor() |
Returns null.
|
void |
setSigma(double newSigma) |
getRange, nBody, setBox
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRange, setBox
public P1HardPeriodic(Space space)
public P1HardPeriodic(Space space, double sigma)
public double energy(IAtomList a)
energy
in interface IPotentialAtomic
energy
in class Potential
public double energyChange()
energyChange
in interface PotentialHard
public double collisionTime(IAtomList a, double falseTime)
PotentialHard
collisionTime
in interface PotentialHard
public void setSigma(double newSigma)
public double getSgima()
public void bump(IAtomList a, double falseTime)
bump
in interface PotentialHard
public double lastCollisionVirial()
lastCollisionVirial
in interface PotentialHard
public Tensor lastCollisionVirialTensor()
lastCollisionVirialTensor
in interface PotentialHard