IPotential, IPotentialAtomic, Potential2Sphericalpublic class PotentialDepletion extends Potential2 implements Potential2Spherical
| Modifier and Type | Field | Description |
|---|---|---|
protected Boundary |
boundary |
|
protected Vector |
dr |
|
protected java.lang.String |
fileName |
|
protected java.io.FileReader |
fileReader |
|
protected java.util.List<double[]> |
rwList |
| Constructor | Description |
|---|---|
PotentialDepletion(Space space,
java.lang.String file) |
| Modifier and Type | Method | Description |
|---|---|---|
double |
energy(IAtomList pair) |
Returns the interaction energy between the given atoms.
|
double |
getRange() |
Returns the range over which the potential applies.
|
void |
setBox(Box box) |
Informs the potential of the box on which it acts.
|
double |
u(double r2) |
The pair energy u(r^2) with no truncation applied.
|
nBodyprotected final Vector dr
protected Boundary boundary
protected java.util.List<double[]> rwList
protected java.io.FileReader fileReader
protected java.lang.String fileName
public PotentialDepletion(Space space, java.lang.String file)
public double u(double r2)
Potential2Sphericalu in interface Potential2Sphericalr2 - the square of the distance between the particles.public double energy(IAtomList pair)
Potentialenergy in interface IPotentialAtomicenergy in class Potentialpublic double getRange()
IPotentialgetRange in interface IPotentialgetRange in class Potentialpublic void setBox(Box box)
PotentialsetBox in interface IPotentialsetBox in class Potential