IPotential, IPotentialAtomic, Potential2Soft, Potential2Spherical, PotentialSoftpublic class P2ElectrostaticWithHardCore extends Potential2SoftSpherical
| Modifier and Type | Field | Description |
|---|---|---|
static boolean |
checkE |
|
protected double |
q1 |
|
protected double |
q2 |
|
protected double |
qq |
|
protected double |
sigma |
boundary, dr, gradient| Constructor | Description |
|---|---|
P2ElectrostaticWithHardCore(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.
|
void |
setSigma(double sigma) |
|
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.
|
nBodyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitenergy, getRange, gradient, gradient, hyperVirial, integral, setBox, virialprotected double q1
protected double q2
protected double qq
protected double sigma
public static boolean checkE
public P2ElectrostaticWithHardCore(Space space)
public double d2u(double r2)
Potential2SoftSphericald2u in class Potential2SoftSphericalpublic double du(double r2)
Potential2SoftSphericaldu in interface Potential2Softdu in class Potential2SoftSphericalpublic double uInt(double rc)
Potential2SoftSphericaluInt in class Potential2SoftSphericalpublic double u(double r2)
Potential2Sphericalr2 - the square of the distance between the particles.public double getCharge1()
public void setCharge1(double newCharge1)
public double getCharge2()
public void setCharge2(double newCharge2)
public void setSigma(double sigma)