IPotential, IPotentialAtomic, Potential2Soft, Potential2Spherical, PotentialSoft, PotentialTruncatedP2SoftSphericalTruncatedForceShiftedpublic class P2SoftSphericalTruncatedShifted extends P2SoftSphericalTruncated
P2SoftSphericalTruncated.P0Lrc| Modifier and Type | Field | Description |
|---|---|---|
protected double |
shift |
makeLrc, potential, r2Cutoff, rCutoffboundary, dr, gradient| Constructor | Description |
|---|---|
P2SoftSphericalTruncatedShifted(Space _space,
Potential2SoftSpherical potential,
double truncationRadius) |
| Modifier and Type | Method | Description |
|---|---|---|
Potential2SoftSpherical |
getWrappedPotential() |
Returns the wrapped potential.
|
Potential0Lrc |
makeLrcPotential(AtomType[] types) |
Returns null because the shift can't be corrected.
|
void |
setTruncationRadius(double rCut) |
Mutator method for the radial cutoff distance.
|
double |
u(double r2) |
Returns the energy of the wrapped potential if the separation
is less than the cutoff value
|
nBodyenergyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitd2u, du, getMakeLrc, getRange, getTruncationRadius, getTruncationRadiusDimension, setBox, setMakeLrc, uIntenergy, gradient, gradient, hyperVirial, integral, virialpublic P2SoftSphericalTruncatedShifted(Space _space, Potential2SoftSpherical potential, double truncationRadius)
public Potential2SoftSpherical getWrappedPotential()
getWrappedPotential in class P2SoftSphericalTruncatedpublic double u(double r2)
u in interface Potential2Sphericalu in class P2SoftSphericalTruncatedr2 - the squared distance between the atomspublic void setTruncationRadius(double rCut)
setTruncationRadius in class P2SoftSphericalTruncatedpublic Potential0Lrc makeLrcPotential(AtomType[] types)
makeLrcPotential in interface PotentialTruncatedmakeLrcPotential in class P2SoftSphericalTruncated