IPotential, IPotentialAtomic, Potential2Soft, Potential2Spherical, PotentialSoft, PotentialTruncatedP2SoftSphericalTruncatedShiftedpublic class P2SoftSphericalTruncated extends Potential2SoftSpherical implements PotentialTruncated
| Modifier and Type | Class | Description |
|---|---|---|
static class |
P2SoftSphericalTruncated.P0Lrc |
Inner class that implements the long-range correction for this truncation scheme.
|
| Modifier and Type | Field | Description |
|---|---|---|
protected boolean |
makeLrc |
|
protected Potential2SoftSpherical |
potential |
|
protected double |
r2Cutoff |
|
protected double |
rCutoff |
boundary, dr, gradient| Constructor | Description |
|---|---|
P2SoftSphericalTruncated(Space _space,
Potential2SoftSpherical potential,
double truncationRadius) |
| Modifier and Type | Method | Description |
|---|---|---|
double |
d2u(double r2) |
Returns the 2nd derivative (r^2 d^2u/dr^2) of the wrapped potential if the separation
is less than the cutoff value
|
double |
du(double r2) |
Returns the derivative (r du/dr) of the wrapped potential if the separation
is less than the cutoff value
|
boolean |
getMakeLrc() |
|
double |
getRange() |
Returns the truncation radius.
|
double |
getTruncationRadius() |
Accessor method for the radial cutoff distance.
|
Dimension |
getTruncationRadiusDimension() |
Returns the dimension (length) of the radial cutoff distance.
|
Potential2SoftSpherical |
getWrappedPotential() |
Returns the wrapped potential.
|
Potential0Lrc |
makeLrcPotential(AtomType[] types) |
Returns the zero-body potential that evaluates the contribution to the
energy and its derivatives from pairs that are separated by a distance
exceeding the truncation radius.
|
void |
setBox(Box box) |
Informs the potential of the box on which it acts.
|
void |
setMakeLrc(boolean newMakeLrc) |
|
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
|
double |
uInt(double rC) |
Returns the value of uInt for the wrapped potential.
|
nBodyenergyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitenergy, gradient, gradient, hyperVirial, integral, virialprotected final Potential2SoftSpherical potential
protected double rCutoff
protected double r2Cutoff
protected boolean makeLrc
public P2SoftSphericalTruncated(Space _space, Potential2SoftSpherical potential, double truncationRadius)
public Potential2SoftSpherical getWrappedPotential()
public void setBox(Box box)
PotentialsetBox in interface IPotentialsetBox in class Potential2SoftSphericalpublic double u(double r2)
u in interface Potential2Sphericalr2 - the squared distance between the atomspublic double du(double r2)
du in interface Potential2Softdu in class Potential2SoftSphericalr2 - the squared distance between the atomspublic double d2u(double r2)
d2u in class Potential2SoftSphericalr2 - the squared distance between the atomspublic double uInt(double rC)
uInt in class Potential2SoftSphericalpublic double getTruncationRadius()
public void setTruncationRadius(double rCut)
public double getRange()
getRange in interface IPotentialgetRange in class Potential2SoftSphericalpublic Dimension getTruncationRadiusDimension()
public Potential0Lrc makeLrcPotential(AtomType[] types)
makeLrcPotential in interface PotentialTruncatedpublic boolean getMakeLrc()
public void setMakeLrc(boolean newMakeLrc)