IPotential
, IPotentialAtomic
, Potential2Soft
, Potential2Spherical
, PotentialSoft
public final class P2HC2Yukawa extends Potential2SoftSpherical
boundary, gradient
Constructor | Description |
---|---|
P2HC2Yukawa(Space _space) |
|
P2HC2Yukawa(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 of the pair energy, times the separation r: r du/dr.
|
double |
energy(IAtomList atoms) |
Energy of the pair as given by the u(double) method
|
double |
getEpsilon() |
|
double |
getRange() |
Returns infinity.
|
double |
getSigma() |
Accessor methods for size and energy parameters.
|
void |
setBox(Box box) |
Informs the potential of the box on which it acts.
|
void |
setEpsilon(double eps) |
Mutator methods for size and energy parameters.
|
void |
setParameters(double s) |
Parameter calculation method.
|
void |
setSigma(double s) |
|
double |
u(double r2) |
Energy method.
|
double |
uInt(double rC) |
Integral from rC to infinity.
|
nBody
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
gradient, gradient, hyperVirial, integral, virial
public P2HC2Yukawa(Space _space)
public P2HC2Yukawa(Space _space, double sigma, double epsilon)
public double d2u(double r2)
Potential2SoftSpherical
d2u
in class Potential2SoftSpherical
public double du(double r2)
Potential2SoftSpherical
du
in interface Potential2Soft
du
in class Potential2SoftSpherical
public double getRange()
Potential2SoftSpherical
getRange
in interface IPotential
getRange
in class Potential2SoftSpherical
public void setBox(Box box)
Potential
setBox
in interface IPotential
setBox
in class Potential2SoftSpherical
public double u(double r2)
r2
- the square of the distance between the particles.public double energy(IAtomList atoms)
energy
in interface IPotentialAtomic
energy
in class Potential2SoftSpherical
public double uInt(double rC)
uInt
in class Potential2SoftSpherical
public double getSigma()
public double getEpsilon()
public final void setEpsilon(double eps)
public final void setSigma(double s)
public final void setParameters(double s)