IPotential, IPotentialAtomic, Potential2Soft, Potential2Spherical, PotentialSoft, PotentialTruncatedpublic class P2SoftTruncated extends Potential2 implements PotentialTruncated, Potential2Soft
| Modifier and Type | Field | Description |
|---|---|---|
protected Boundary |
boundary |
|
protected Vector |
dr |
|
protected Vector[] |
gradient |
|
protected double |
r2Cutoff |
|
protected double |
rCutoff |
|
protected Potential2Soft |
wrappedPotential |
| Constructor | Description |
|---|---|
P2SoftTruncated(Potential2Soft potential,
double truncationRadius,
Space _space) |
| Modifier and Type | Method | Description |
|---|---|---|
double |
du(double r2) |
The derivative of the pair energy, times the separation r: r du/dr.
|
double |
energy(IAtomList atoms) |
Returns the energy of the wrapped potential if the separation
is less than the cutoff value
|
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.
|
Potential2Soft |
getWrappedPotential() |
Returns the wrapped potential.
|
Vector[] |
gradient(IAtomList atoms) |
Returns the derivative (r du/dr) of the wrapped potential if the separation
is less than the cutoff value
|
Vector[] |
gradient(IAtomList atoms,
Tensor pressureTensor) |
Returns the derivative (r du/dr) of the wrapped potential if the separation
is less than the cutoff value
|
double |
hyperVirial(IAtomList atoms) |
Hypervirial of the pair as given by the du(double) and d2u(double) methods
|
double |
integral(double rC) |
Returns the value of uInt for 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 newBox) |
Informs the potential of the box on which it acts.
|
void |
setTruncationRadius(double rCut) |
Mutator method for the radial cutoff distance.
|
double |
u(double r2) |
The pair energy u(r^2) with no truncation applied.
|
double |
virial(IAtomList atoms) |
Returns the 2nd derivative (r^2 d^2u/dr^2) of the wrapped potential if the separation
is less than the cutoff value
|
nBodyprotected final Vector dr
protected final Potential2Soft wrappedPotential
protected final Vector[] gradient
protected double rCutoff
protected double r2Cutoff
protected Boundary boundary
public P2SoftTruncated(Potential2Soft potential, double truncationRadius, Space _space)
public Potential2Soft getWrappedPotential()
public void setBox(Box newBox)
PotentialsetBox in interface IPotentialsetBox in class Potentialpublic double energy(IAtomList atoms)
energy in interface IPotentialAtomicenergy in class Potentialpublic double virial(IAtomList atoms)
virial in interface PotentialSoftpublic Vector[] gradient(IAtomList atoms)
gradient in interface PotentialSoftpublic Vector[] gradient(IAtomList atoms, Tensor pressureTensor)
gradient in interface PotentialSoftpublic double hyperVirial(IAtomList atoms)
Potential2SofthyperVirial in interface Potential2Softpublic double integral(double rC)
integral in interface Potential2Softpublic double u(double r2)
Potential2Sphericalu in interface Potential2Sphericalr2 - the square of the distance between the particles.public double du(double r2)
Potential2Softdu in interface Potential2Softpublic double getTruncationRadius()
public void setTruncationRadius(double rCut)
public double getRange()
getRange in interface IPotentialgetRange in class Potentialpublic Dimension getTruncationRadiusDimension()
public Potential0Lrc makeLrcPotential(AtomType[] types)
makeLrcPotential in interface PotentialTruncated