IPotential
, IPotentialAtomic
, Potential2Soft
, Potential2Spherical
, PotentialSoft
, PotentialTruncated
P2SoftSphericalTruncatedShifted
public 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.
|
nBody
energy
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
energy, gradient, gradient, hyperVirial, integral, virial
protected 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)
Potential
setBox
in interface IPotential
setBox
in class Potential2SoftSpherical
public double u(double r2)
u
in interface Potential2Spherical
r2
- the squared distance between the atomspublic double du(double r2)
du
in interface Potential2Soft
du
in class Potential2SoftSpherical
r2
- the squared distance between the atomspublic double d2u(double r2)
d2u
in class Potential2SoftSpherical
r2
- the squared distance between the atomspublic double uInt(double rC)
uInt
in class Potential2SoftSpherical
public double getTruncationRadius()
public void setTruncationRadius(double rCut)
public double getRange()
getRange
in interface IPotential
getRange
in class Potential2SoftSpherical
public Dimension getTruncationRadiusDimension()
public Potential0Lrc makeLrcPotential(AtomType[] types)
makeLrcPotential
in interface PotentialTruncated
public boolean getMakeLrc()
public void setMakeLrc(boolean newMakeLrc)