IPotential
, IPotentialAtomic
, Potential2Soft
, Potential2Spherical
, PotentialSoft
public 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) |
nBody
public P2LJQ(Space space)
public P2LJQ(Space space, double sigma, double epsilon, double momentSquared)
public void setHardCoreDiamterSq(double val)
public void setBox(Box box)
Potential
setBox
in interface IPotential
setBox
in class Potential
public double getRange()
IPotential
getRange
in interface IPotential
getRange
in class Potential
public double energy(IAtomList pair)
Potential
energy
in interface IPotentialAtomic
energy
in class Potential
public 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)
PotentialSoft
gradient
in interface PotentialSoft
public Vector[] gradient(IAtomList pair)
PotentialSoft
gradient
in interface PotentialSoft
public double virial(IAtomList atoms)
virial
in interface PotentialSoft
public double hyperVirial(IAtomList pair)
Potential2Soft
hyperVirial
in interface Potential2Soft
public void setTemperature(double newTemperature)
public double getTemperature()
public double u(double r2)
Potential2Spherical
u
in interface Potential2Spherical
r2
- the square of the distance between the particles.public double du(double r2)
Potential2Soft
du
in interface Potential2Soft
public double integral(double rC)
Potential2Soft
integral
in interface Potential2Soft