IPotential
, IPotentialAtomic
, Potential2Soft
, Potential2Spherical
, PotentialSoft
public class P2Electrostatic extends Potential2SoftSpherical
Modifier and Type | Field | Description |
---|---|---|
protected double |
q1 |
|
protected double |
q2 |
|
protected double |
qq |
boundary, dr, gradient
Constructor | Description |
---|---|
P2Electrostatic(Space space) |
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 |
getCharge1() |
Returns the charge on the first type of atom.
|
double |
getCharge2() |
Returns the charge on the second type of atom.
|
void |
setCharge1(double newCharge1) |
Sets the charge on the first type of atom.
|
void |
setCharge2(double newCharge2) |
Sets the charge on the second type of atom.
|
double |
u(double r2) |
The pair energy u(r^2) with no truncation applied.
|
double |
uInt(double rc) |
Integral of the potential, used to evaluate corrections for potential truncation.
|
nBody
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
energy, getRange, gradient, gradient, hyperVirial, integral, setBox, virial
public P2Electrostatic(Space space)
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 uInt(double rc)
Potential2SoftSpherical
uInt
in class Potential2SoftSpherical
public double u(double r2)
Potential2Spherical
r2
- the square of the distance between the particles.public double getCharge1()
public void setCharge1(double newCharge1)
public double getCharge2()
public void setCharge2(double newCharge2)