IPotential
, IPotentialAtomic
, Potential2Spherical
, PotentialHard
public class P2SquareWellRadical extends P2SquareWell
Modifier and Type | Field | Description |
---|---|---|
protected AtomLeafAgentManager |
agentManager |
|
protected double |
combinationProbability |
|
protected IRandom |
random |
|
protected double |
solventThermoFrac |
coreDiameter, coreDiameterSquared, dv, epsilon, ignoreOverlap, lambda, lastCollisionVirial, lastCollisionVirialr2, lastCollisionVirialTensor, lastEnergyChange, wellDiameter, wellDiameterSquared
boundary, dr
Constructor | Description |
---|---|
P2SquareWellRadical(Space space,
AtomLeafAgentManager aam,
double coreDiameter,
double lambda,
double epsilon,
IRandom random) |
Modifier and Type | Method | Description |
---|---|---|
protected boolean |
areBonded(IAtom a,
IAtom b) |
This function tells you if two atoms are bonded
|
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.
|
double |
collisionTime(IAtomList atoms,
double falseTime) |
Computes next time of collision of the two atoms, assuming free-flight
kinematics.
|
protected void |
disproportionate(IAtom a,
IAtom b) |
this function will makes a and b unreactive by setting both to be bonded
to themselves (a-a, b-b).
|
double |
getCombinationProbability() |
Returns the probability that two radicals will bond instead of becoming
unreactive.
|
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 boolean |
isEmpty(IAtom a) |
|
protected boolean |
isRadical(IAtom a) |
This function return true if the given atom is a radical (meaning that
it has only one unreacted site).
|
protected int |
lowest(IAtom a) |
This will tell you what the lowest open space is in atom a
|
void |
setCombinationProbability(double newCombinationProbability) |
Sets the probability that two radicals will bond instead of becoming
unreactive.
|
void |
setSolventThermoFrac(double newSolventThermoFrac) |
Sets the fraction of well energy that is gained by an atom pair when
they hop in their well.
|
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, setBox
protected final AtomLeafAgentManager agentManager
protected final IRandom random
protected double combinationProbability
protected double solventThermoFrac
public P2SquareWellRadical(Space space, AtomLeafAgentManager aam, double coreDiameter, double lambda, double epsilon, IRandom random)
public void setCombinationProbability(double newCombinationProbability)
public double getCombinationProbability()
protected boolean isRadical(IAtom a)
protected boolean isEmpty(IAtom a)
protected int lowest(IAtom a)
protected boolean areBonded(IAtom a, IAtom b)
protected void disproportionate(IAtom a, IAtom b)
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)