IPotential
, IPotentialAtomic
, Potential2Spherical
public 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.
|
nBody
protected 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)
Potential2Spherical
u
in interface Potential2Spherical
r2
- the square of the distance between the particles.public double energy(IAtomList pair)
Potential
energy
in interface IPotentialAtomic
energy
in class Potential
public double getRange()
IPotential
getRange
in interface IPotential
getRange
in class Potential
public void setBox(Box box)
Potential
setBox
in interface IPotential
setBox
in class Potential