IPotential
, IPotentialAtomic
, Potential2Spherical
public class P2HePCKLJS.P2HeQFH extends java.lang.Object implements Potential2Spherical
Modifier and Type | Field | Description |
---|---|---|
protected double |
fac |
|
protected double |
mass |
|
protected double |
temperature |
Constructor | Description |
---|---|
P2HeQFH(double temperature) |
Modifier and Type | Method | Description |
---|---|---|
double |
energy(IAtomList atoms) |
Returns the interaction energy between the given atoms.
|
double |
getRange() |
Returns the range over which the potential applies.
|
int |
nBody() |
The number of atoms on which the potential depends.
|
void |
setBox(Box box) |
Informs the potential of the box on which it acts so that it can
properly consider the boundaries.
|
double |
u(double r2) |
The pair energy u(r^2) with no truncation applied.
|
protected final double temperature
protected final double mass
protected double fac
public double energy(IAtomList atoms)
IPotentialAtomic
energy
in interface IPotentialAtomic
public double getRange()
IPotential
getRange
in interface IPotential
public void setBox(Box box)
IPotential
setBox
in interface IPotential
public int nBody()
IPotential
nBody
in interface IPotential
public double u(double r2)
Potential2Spherical
u
in interface Potential2Spherical
r2
- the square of the distance between the particles.