IPotential
, IPotentialAtomic
, Potential2Soft
, Potential2Spherical
, PotentialSoft
public class P2WCA extends Potential2SoftSpherical
boundary, dr, gradient
Constructor | Description |
---|---|
P2WCA(Space _space) |
Constructs potential using default sigma and epsilon given by Default class.
|
P2WCA(Space _space,
double sigma,
double epsilon) |
Modifier and Type | Method | Description |
---|---|---|
double |
d2u(double r2) |
The second derivative of the pair energy, times the square of the
separation: r^2 d^2u/dr^2.
|
double |
du(double r2) |
The derivative r*du/dr.
|
double |
getEpsilon() |
Accessor method for the energy parameter
|
Dimension |
getEpsilonDimension() |
|
double |
getRange() |
Returns the range of the potential, which is the point of truncation.
|
double |
getSigma() |
Accessor method for the size parameter.
|
Dimension |
getSigmaDimension() |
|
void |
setEpsilon(double eps) |
Mutator method for the energy parameter
|
void |
setSigma(double s) |
Mutator method for Lennard-Jones size parameter.
|
double |
u(double r2) |
The energy u.
|
double |
uInt(double rC) |
Returns zero, since there is no long-range correction.
|
nBody
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
energy, gradient, gradient, hyperVirial, integral, setBox, virial
public P2WCA(Space _space)
public P2WCA(Space _space, double sigma, double epsilon)
public double getRange()
getRange
in interface IPotential
getRange
in class Potential2SoftSpherical
public double u(double r2)
r2
- the square of the distance between the particles.public double du(double r2)
du
in interface Potential2Soft
du
in class Potential2SoftSpherical
public double d2u(double r2)
d2u
in class Potential2SoftSpherical
public double uInt(double rC)
uInt
in class Potential2SoftSpherical
public double getSigma()
public final void setSigma(double s)
public Dimension getSigmaDimension()
public double getEpsilon()
public final void setEpsilon(double eps)
public Dimension getEpsilonDimension()