IPotential
, IPotentialAtomic
, Potential2Spherical
, PotentialHard
public class P2SquareWellBonded extends P2SquareWell
Modifier and Type | Class | Description |
---|---|---|
protected static class |
P2SquareWellBonded.RingResult |
Modifier and Type | Field | Description |
---|---|---|
protected AtomLeafAgentManager |
agentManager |
|
protected Box |
box |
|
protected P2SquareWellBonded.RingResult |
ringResult |
|
protected double |
solventThermoFrac |
coreDiameter, coreDiameterSquared, dv, epsilon, ignoreOverlap, lambda, lastCollisionVirial, lastCollisionVirialr2, lastCollisionVirialTensor, lastEnergyChange, wellDiameter, wellDiameterSquared
boundary, dr
Constructor | Description |
---|---|
P2SquareWellBonded(Space space,
AtomLeafAgentManager aam,
double coreDiameter,
double lambda,
double epsilon) |
Modifier and Type | Method | Description |
---|---|---|
protected boolean |
areBonded(IAtom a,
IAtom b) |
This function tells you if two atoms are bonded
This could probably be public, although a public version would
need to first re-retrieve agents
|
protected void |
bond(IAtom a,
IAtom b) |
this function will bond atoms a & b together
|
void |
bump(IAtomList pair,
double falseTime) |
Implements collision dynamics between two square-well atoms.
|
protected void |
checkRing(IAtom a,
IAtom b,
int maxBondCount) |
this function will bond atoms a & b together
|
double |
collisionTime(IAtomList atoms,
double falseTime) |
Computes next time of collision of the two atoms, assuming free-flight
kinematics.
|
protected boolean |
full(IAtom a) |
This function will tell the user, if passed an atom weither or not that atom can bond
|
double |
getSolventThermoFrac() |
Returns the fraction of well energy that is gained or lost by an atom
pair when they hop in or leave their well.
|
protected int |
lowest(IAtom a) |
This will tell you what the lowest open space is in atom a
|
void |
setBox(Box newBox) |
Informs the potential of the box on which it acts.
|
void |
setSolventThermoFrac(double newSolventThermoFrac) |
Sets the fraction of well energy that is gained by an atom pair when
they hop in their well.
|
protected void |
unbond(IAtom a,
IAtom b) |
this function unbonds two atoms
|
nBody
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
energyChange, getCoreDiameter, getCoreDiameterDimension, getEpsilon, getEpsilonDimension, getLambda, getLambdaDimension, getRange, lastCollisionVirial, lastCollisionVirialTensor, setCoreDiameter, setEpsilon, setLambda, u
energy
protected final AtomLeafAgentManager agentManager
protected Box box
protected double solventThermoFrac
protected final P2SquareWellBonded.RingResult ringResult
public P2SquareWellBonded(Space space, AtomLeafAgentManager aam, double coreDiameter, double lambda, double epsilon)
public void setBox(Box newBox)
Potential
setBox
in interface IPotential
setBox
in class Potential2HardSpherical
protected boolean full(IAtom a)
protected int lowest(IAtom a)
protected boolean areBonded(IAtom a, IAtom b)
protected void checkRing(IAtom a, IAtom b, int maxBondCount)
public double collisionTime(IAtomList atoms, double falseTime)
collisionTime
in interface PotentialHard
collisionTime
in class P2SquareWell
public void bump(IAtomList pair, double falseTime)
P2SquareWell
bump
in interface PotentialHard
bump
in class P2SquareWell
public double getSolventThermoFrac()
public void setSolventThermoFrac(double newSolventThermoFrac)