IPotential, IPotential0Lrc, IPotentialAtomic, Potential2Soft, Potential2Spherical, PotentialSoftpublic 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, setBoxclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCriterion, getRangegetTruncatedPotential, nPairs, setBox, setTargetAtom, setTargetMoleculepublic P0Lrc(Space space, Potential2Soft truncatedPotential, Potential2Soft potential, AtomType[] types)
public double energy(IAtomList atoms)
Potentialenergy in interface IPotentialAtomicenergy in class Potentialpublic double virial(IAtomList atoms)
virial in interface PotentialSoftpublic double hyperVirial(IAtomList pair)
Potential2SofthyperVirial in interface Potential2Softpublic Vector[] gradient(IAtomList atoms)
PotentialSoftgradient in interface PotentialSoftpublic Vector[] gradient(IAtomList atoms, Tensor pressureTensor)
PotentialSoftgradient in interface PotentialSoftpublic 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)
Potential2Sphericalu in interface Potential2Sphericalr2 - the square of the distance between the particles.public double integral(double rC)
Potential2Softintegral in interface Potential2Softpublic double du(double r2)
Potential2Softdu in interface Potential2Soft