IPotential, IPotentialAtomic, Potential2Soft, Potential2Spherical, PotentialSoftpublic class P2LJQ extends Potential2 implements Potential2Soft
| Modifier and Type | Field | Description |
|---|---|---|
protected double |
temperature |
| Constructor | Description |
|---|---|
P2LJQ(Space space) |
|
P2LJQ(Space space,
double sigma,
double epsilon,
double momentSquared) |
| 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 pair) |
Returns the interaction energy between the given atoms.
|
double |
getEpsilon() |
|
double |
getQuadrupolarMomentSquare() |
|
double |
getRange() |
Returns the range over which the potential applies.
|
double |
getSigma() |
|
double |
getTemperature() |
|
Vector[] |
gradient(IAtomList pair) |
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 pair,
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 |
setEpsilon(double eps) |
|
void |
setHardCoreDiamterSq(double val) |
|
void |
setQuadrupolarMomentSquare(double moment) |
|
void |
setSigma(double s) |
|
void |
setTemperature(double newTemperature) |
Sets the temperature used for Boltzmann-weighting of the orientational
average energy used in u(double) and integral(double)
|
double |
u(double r2) |
The pair energy u(r^2) with no truncation applied.
|
double |
virial(IAtomList atoms) |
nBodypublic P2LJQ(Space space)
public P2LJQ(Space space, double sigma, double epsilon, double momentSquared)
public void setHardCoreDiamterSq(double val)
public void setBox(Box box)
PotentialsetBox in interface IPotentialsetBox in class Potentialpublic double getRange()
IPotentialgetRange in interface IPotentialgetRange in class Potentialpublic double energy(IAtomList pair)
Potentialenergy in interface IPotentialAtomicenergy in class Potentialpublic double getSigma()
public final void setSigma(double s)
public double getEpsilon()
public void setEpsilon(double eps)
public void setQuadrupolarMomentSquare(double moment)
public double getQuadrupolarMomentSquare()
public Vector[] gradient(IAtomList pair, Tensor pressureTensor)
PotentialSoftgradient in interface PotentialSoftpublic Vector[] gradient(IAtomList pair)
PotentialSoftgradient in interface PotentialSoftpublic double virial(IAtomList atoms)
virial in interface PotentialSoftpublic double hyperVirial(IAtomList pair)
Potential2SofthyperVirial in interface Potential2Softpublic void setTemperature(double newTemperature)
public double getTemperature()
public 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 double integral(double rC)
Potential2Softintegral in interface Potential2Soft