IPotential
, IPotentialAtomic
, PotentialHard
public class P2SquareWellBonding extends Potential2 implements PotentialHard, IPotentialAtomic
Modifier and Type | Field | Description |
---|---|---|
protected AtomLeafAgentManager |
agentManager |
|
protected Boundary |
boundary |
|
protected double |
coreDiameter |
|
protected double |
coreDiameterSquared |
|
protected Vector |
dr |
|
protected Vector |
dv |
|
protected double |
epsilon |
|
protected double |
epsilonBarrier |
|
protected double |
epsilonBonding |
|
protected double |
lambda |
|
protected double |
lastCollisionVirial |
|
protected double |
lastCollisionVirialr2 |
|
protected Tensor |
lastCollisionVirialTensor |
|
protected double |
lastEnergyChange |
|
protected double |
minOCOr2 |
|
protected int |
nSurfaceSites |
|
protected double |
wellDiameter |
|
protected double |
wellDiameterSquared |
Constructor | Description |
---|---|
P2SquareWellBonding(Space space,
AtomLeafAgentManager agentManager,
double coreDiameter,
double lambda,
double epsilon,
int nSurfaceSites,
double epsilonBarrier,
double epsilonBonding,
double minOCOr) |
Modifier and Type | Method | Description |
---|---|---|
void |
bump(IAtomList pair,
double falseTime) |
Implements collision dynamics between two square-well atoms.
|
double |
collisionTime(IAtomList pair,
double falseTime) |
Computes next time of collision of two square-well atoms, assuming free-flight kinematics.
|
double |
energy(IAtomList pair) |
Returns the interaction energy between the given atoms.
|
double |
energyChange() |
returns change in potential energy due to the last collision
|
double |
getBarrier() |
|
double |
getCoreDiameter() |
Accessor method for core diameter.
|
Dimension |
getCoreDiameterDimension() |
|
double |
getEpsilon() |
Accessor method for depth of well
|
double |
getEpsilonBonding() |
|
Dimension |
getEpsilonDimension() |
|
double |
getLambda() |
Accessor method for well-diameter multiplier.
|
Dimension |
getLambdaDimension() |
|
int |
getNumSurfaceSites() |
|
double |
getRange() |
Returns the range over which the potential applies.
|
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.
|
void |
setBarrier(double newBarrier) |
|
void |
setBox(Box box) |
Informs the potential of the box on which it acts.
|
void |
setCoreDiameter(double c) |
Accessor method for core diameter.
|
void |
setEpsilon(double eps) |
Accessor method for depth of well
|
void |
setEpsilonBonding(double newEpsilonBonding) |
|
void |
setLambda(double lam) |
Accessor method for well-diameter multiplier.
|
void |
setNumSurfaceSites(int newNumSurfaceSites) |
nBody
protected double coreDiameter
protected double coreDiameterSquared
protected double wellDiameter
protected double wellDiameterSquared
protected double lambda
protected double epsilon
protected double lastCollisionVirial
protected double lastCollisionVirialr2
protected Tensor lastCollisionVirialTensor
protected double lastEnergyChange
protected Vector dv
protected final AtomLeafAgentManager agentManager
protected final Vector dr
protected Boundary boundary
protected int nSurfaceSites
protected double epsilonBarrier
protected double epsilonBonding
protected final double minOCOr2
public P2SquareWellBonding(Space space, AtomLeafAgentManager agentManager, double coreDiameter, double lambda, double epsilon, int nSurfaceSites, double epsilonBarrier, double epsilonBonding, double minOCOr)
public double getRange()
IPotential
getRange
in interface IPotential
getRange
in class Potential
public void bump(IAtomList pair, double falseTime)
bump
in interface PotentialHard
public double lastCollisionVirial()
PotentialHard
lastCollisionVirial
in interface PotentialHard
public Tensor lastCollisionVirialTensor()
PotentialHard
lastCollisionVirialTensor
in interface PotentialHard
public double collisionTime(IAtomList pair, double falseTime)
collisionTime
in interface PotentialHard
public double energy(IAtomList pair)
Potential
energy
in interface IPotentialAtomic
energy
in class Potential
public double energyChange()
PotentialHard
energyChange
in interface PotentialHard
public double getCoreDiameter()
public void setCoreDiameter(double c)
public Dimension getCoreDiameterDimension()
public double getLambda()
public void setLambda(double lam)
public Dimension getLambdaDimension()
public double getEpsilon()
public void setEpsilon(double eps)
public Dimension getEpsilonDimension()
public int getNumSurfaceSites()
public void setNumSurfaceSites(int newNumSurfaceSites)
public double getBarrier()
public void setBarrier(double newBarrier)
public double getEpsilonBonding()
public void setEpsilonBonding(double newEpsilonBonding)
public void setBox(Box box)
Potential
setBox
in interface IPotential
setBox
in class Potential