IPotential
, IPotential0Lrc
, IPotentialAtomic
, Potential2Soft
, Potential2Spherical
, PotentialSoft
public static class P2SoftSphericalTruncated.P0Lrc extends Potential0Lrc implements Potential2Soft
box, divisor, interType, lrcAtomsPerMolecule, truncatedPotential, types
Constructor | Description |
---|---|
P0Lrc(Space space,
Potential2Soft truncatedPotential,
Potential2Soft potential,
AtomType[] types) |
Modifier and Type | Method | Description |
---|---|---|
double |
d2uCorrection(double pairDensity) |
Uses result from integration-by-parts to evaluate integral of
r2 d2u/dr2 using integral of u.
|
double |
du(double r2) |
The derivative of the pair energy, times the separation r: r du/dr.
|
double |
duCorrection(double pairDensity) |
Uses result from integration-by-parts to evaluate integral of
r du/dr using integral of u.
|
double |
energy(IAtomList atoms) |
Returns the interaction energy between the given atoms.
|
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.
|
double |
u(double r2) |
The pair energy u(r^2) with no truncation applied.
|
double |
uCorrection(double pairDensity) |
Long-range correction to the energy.
|
double |
virial(IAtomList atoms) |
getRange, nBody, setBox
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCriterion, getRange
getTruncatedPotential, nPairs, setBox, setTargetAtom, setTargetMolecule
public P0Lrc(Space space, Potential2Soft truncatedPotential, Potential2Soft potential, AtomType[] types)
public double energy(IAtomList atoms)
Potential
energy
in interface IPotentialAtomic
energy
in class Potential
public double virial(IAtomList atoms)
virial
in interface PotentialSoft
public double hyperVirial(IAtomList pair)
Potential2Soft
hyperVirial
in interface Potential2Soft
public Vector[] gradient(IAtomList atoms)
PotentialSoft
gradient
in interface PotentialSoft
public Vector[] gradient(IAtomList atoms, Tensor pressureTensor)
PotentialSoft
gradient
in interface PotentialSoft
public double d2uCorrection(double pairDensity)
pairDensity
- average pairs-per-volume affected by the potential.public double uCorrection(double pairDensity)
pairDensity
- average pairs-per-volume affected by the potential.public double duCorrection(double pairDensity)
pairDensity
- average pairs-per-volume affected by the potential.public double u(double r2)
Potential2Spherical
u
in interface Potential2Spherical
r2
- the square of the distance between the particles.public double integral(double rC)
Potential2Soft
integral
in interface Potential2Soft
public double du(double r2)
Potential2Soft
du
in interface Potential2Soft