IPotential
, IPotentialAtomic
, Potential2Soft
, Potential2Spherical
, PotentialSoft
, PotentialTruncated
public 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
|
nBody
protected 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)
Potential
setBox
in interface IPotential
setBox
in class Potential
public double energy(IAtomList atoms)
energy
in interface IPotentialAtomic
energy
in class Potential
public double virial(IAtomList atoms)
virial
in interface PotentialSoft
public Vector[] gradient(IAtomList atoms)
gradient
in interface PotentialSoft
public Vector[] gradient(IAtomList atoms, Tensor pressureTensor)
gradient
in interface PotentialSoft
public double hyperVirial(IAtomList atoms)
Potential2Soft
hyperVirial
in interface Potential2Soft
public double integral(double rC)
integral
in interface Potential2Soft
public double u(double r2)
Potential2Spherical
u
in interface Potential2Spherical
r2
- the square of the distance between the particles.public double du(double r2)
Potential2Soft
du
in interface Potential2Soft
public double getTruncationRadius()
public void setTruncationRadius(double rCut)
public double getRange()
getRange
in interface IPotential
getRange
in class Potential
public Dimension getTruncationRadiusDimension()
public Potential0Lrc makeLrcPotential(AtomType[] types)
makeLrcPotential
in interface PotentialTruncated