IPotential
, IPotentialAtomic
, Potential2Soft
, Potential2Spherical
, PotentialSoft
, PotentialTruncated
P2SoftSphericalTruncatedForceShifted
public class P2SoftSphericalTruncatedShifted extends P2SoftSphericalTruncated
P2SoftSphericalTruncated.P0Lrc
Modifier and Type | Field | Description |
---|---|---|
protected double |
shift |
makeLrc, potential, r2Cutoff, rCutoff
boundary, 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
|
nBody
energy
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
d2u, du, getMakeLrc, getRange, getTruncationRadius, getTruncationRadiusDimension, setBox, setMakeLrc, uInt
energy, gradient, gradient, hyperVirial, integral, virial
public P2SoftSphericalTruncatedShifted(Space _space, Potential2SoftSpherical potential, double truncationRadius)
public Potential2SoftSpherical getWrappedPotential()
getWrappedPotential
in class P2SoftSphericalTruncated
public double u(double r2)
u
in interface Potential2Spherical
u
in class P2SoftSphericalTruncated
r2
- the squared distance between the atomspublic void setTruncationRadius(double rCut)
setTruncationRadius
in class P2SoftSphericalTruncated
public Potential0Lrc makeLrcPotential(AtomType[] types)
makeLrcPotential
in interface PotentialTruncated
makeLrcPotential
in class P2SoftSphericalTruncated