IPotential
, IPotentialAtomic
, Potential2Soft
, Potential2Spherical
, PotentialSoft
public class P2Harmonic extends Potential2SoftSpherical
boundary, dr, gradient
Constructor | Description |
---|---|
P2Harmonic(Space space,
double w) |
|
P2Harmonic(Space space,
double w,
double r0) |
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 |
getR0() |
Separation at which potential is at its minimum.
|
Dimension |
getR0Dimension() |
|
double |
getSpringConstant() |
Accessor method for harmonic energy parameter
|
Dimension |
getSpringConstantDimension() |
Not implemented correctly.
|
void |
setR0(double r0) |
Sets the the separation at which potential is at its minimum.
|
void |
setSpringConstant(double factor) |
Accessor method for harmonic energy parameter
|
double |
u(double r2) |
The pair energy u(r^2) with no truncation applied.
|
double |
uInt(double rC) |
Integral used for corrections to potential truncation.
|
nBody
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
energy, getRange, gradient, gradient, hyperVirial, integral, setBox, virial
public P2Harmonic(Space space, double w)
public P2Harmonic(Space space, double w, double r0)
space
- w
- spring constantr0
- Separation at which potential is at its minimum. Default is
zero.public double u(double r2)
Potential2Spherical
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 getSpringConstant()
public void setSpringConstant(double factor)
public Dimension getSpringConstantDimension()
public double getR0()
public void setR0(double r0)
r0
- The r0 to setpublic Dimension getR0Dimension()