IPotential
, IPotentialAtomic
, Potential2Spherical
, PotentialHard
public class P2HardSphereMC extends P2HardSphere
Modifier and Type | Field | Description |
---|---|---|
protected double |
bondFac |
|
protected AtomLeafAgentManager<? extends IAtomList> |
bondManager |
|
protected int |
chainLength |
|
protected ISpecies |
speciesMonomer |
collisionDiameter, dv, ignoreOverlap, lastCollisionVirial, lastCollisionVirialr2, lastCollisionVirialTensor, sig2
boundary, dr
Constructor | Description |
---|---|
P2HardSphereMC(Space space,
AtomLeafAgentManager<? extends IAtomList> bondManager,
ISpecies speciesMonomer) |
Modifier and Type | Method | Description |
---|---|---|
double |
collisionTime(IAtomList pair,
double falseTime) |
Computes next time of collision of two square-well atoms, assuming free-flight kinematics.
|
double |
energy(IAtomList pair) |
Energy of the pair as given by the u(double) method, with application
of any PotentialTruncation that may be defined for the potential.
|
double |
getBondFac() |
|
void |
setBondFac(double newBondFac) |
|
void |
setChainLength(int newChainLength) |
nBody
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
bump, energyChange, getCollisionDiameter, getCollisionDiameterDimension, getRange, lastCollisionVirial, lastCollisionVirialTensor, setCollisionDiameter, u
setBox
protected int chainLength
protected final AtomLeafAgentManager<? extends IAtomList> bondManager
protected double bondFac
protected final ISpecies speciesMonomer
public P2HardSphereMC(Space space, AtomLeafAgentManager<? extends IAtomList> bondManager, ISpecies speciesMonomer)
public void setChainLength(int newChainLength)
public double energy(IAtomList pair)
Potential2HardSpherical
energy
in interface IPotentialAtomic
energy
in class Potential2HardSpherical
public double collisionTime(IAtomList pair, double falseTime)
collisionTime
in interface PotentialHard
collisionTime
in class P2HardSphere
public void setBondFac(double newBondFac)
public double getBondFac()