IPotential, IPotentialAtomic, Potential2Soft, Potential2Spherical, PotentialSoftpublic class P2HardAssociationConeFourSites extends Potential2 implements Potential2Soft
| Modifier and Type | Field | Description |
|---|---|---|
static boolean |
FLAG |
| Constructor | Description |
|---|---|
P2HardAssociationConeFourSites(Space space,
double sigma,
double epsilon,
double cutoffFactorLJ,
double wellConstant) |
| Modifier and Type | Method | Description |
|---|---|---|
double |
du(double r2) |
The derivative of the pair energy, times the separation r: r du/dr.
|
double |
energy(IAtomList atoms) |
Returns the pair potential energy.
|
double |
getCutoffFactorLJ() |
Accessor method for Lennard-Jones cutoff distance; divided by sigma
|
static Dimension |
getCutoffFactorLJDimension() |
|
double |
getEpsilon() |
Accessor method for Lennard-Jones energy parameter
|
static Dimension |
getEpsilonDimension() |
|
double |
getRange() |
Returns infinity.
|
double |
getSigma() |
Accessor method for Lennard-Jones size parameter
|
static Dimension |
getSigmaDimension() |
|
double |
getTheta() |
Accessor method for angle describing width of cone.
|
Dimension |
getThetaDimension() |
|
double |
getWellCutoffFactor() |
Accessor method for attractive-well diameter divided by sigma
|
static Dimension |
getWellCutoffFactorDimension() |
|
double |
getWellEpsilon() |
Accessor method for attractive-well depth parameter.
|
static Dimension |
getWellEpsilonDimension() |
|
Vector[] |
gradient(IAtomList atoms) |
Returns the gradient of the potential as it applies to each atom in the
given AtomSet, indicating how the energy would change as the position of
the first atom is varied.
|
Vector[] |
gradient(IAtomList atoms,
Tensor pressureTensor) |
Returns the same gradient as gradient(AtomSet) and also adds in the
contribution of the AtomSet to the pressureTensor.
|
double |
hyperVirial(IAtomList pair) |
Hypervirial of the pair as given by the du(double) and d2u(double) methods
|
double |
integral(double rc) |
Integral used to evaluate correction to truncation of potential.
|
void |
setBox(Box box) |
Informs the potential of the box on which it acts.
|
void |
setCutoffFactorLJ(double rc) |
Accessor method for Lennard-Jones cutoff distance; divided by sigma
|
void |
setEpsilon(double eps) |
Accessor method for depth of well
|
void |
setSigma(double s) |
Accessor method for Lennard-Jones size parameter
|
void |
setTheta(double t) |
Accessor method for angle (in radians) describing width of cone.
|
void |
setWellCutoffFactor(double wcut) |
Accessor method for attractive-well diameter divided by sigma;
|
void |
setWellEpsilon(double weps) |
Accessor method for attractive-well depth parameter.
|
double |
u(double r2) |
The pair energy u(r^2) with no truncation applied.
|
double |
virial(IAtomList atoms) |
nBodypublic P2HardAssociationConeFourSites(Space space, double sigma, double epsilon, double cutoffFactorLJ, double wellConstant)
public double getRange()
getRange in interface IPotentialgetRange in class Potentialpublic double energy(IAtomList atoms)
energy in interface IPotentialAtomicenergy in class Potentialpublic double getSigma()
public void setSigma(double s)
public static final Dimension getSigmaDimension()
public double getCutoffFactorLJ()
public void setCutoffFactorLJ(double rc)
rc - cutoff distance, divided by size parameter (sigma)public static final Dimension getCutoffFactorLJDimension()
public double getWellCutoffFactor()
public void setWellCutoffFactor(double wcut)
public static final Dimension getWellCutoffFactorDimension()
public double getEpsilon()
public void setEpsilon(double eps)
public static final Dimension getEpsilonDimension()
public double getWellEpsilon()
public void setWellEpsilon(double weps)
public static final Dimension getWellEpsilonDimension()
public double getTheta()
public void setTheta(double t)
public Dimension getThetaDimension()
public void setBox(Box box)
PotentialsetBox in interface IPotentialsetBox in class Potentialpublic double hyperVirial(IAtomList pair)
Potential2SofthyperVirial in interface Potential2Softpublic double integral(double rc)
Potential2Softintegral in interface Potential2Softpublic double u(double r2)
Potential2Sphericalu in interface Potential2Sphericalr2 - the square of the distance between the particles.public double du(double r2)
Potential2Softdu in interface Potential2Softpublic Vector[] gradient(IAtomList atoms)
PotentialSoftgradient in interface PotentialSoftpublic Vector[] gradient(IAtomList atoms, Tensor pressureTensor)
PotentialSoftgradient in interface PotentialSoftpublic double virial(IAtomList atoms)
virial in interface PotentialSoft