IPotential, IPotentialAtomicpublic class P2O2Bartolomei.P2O2TI extends java.lang.Object implements IPotentialAtomic
| Modifier and Type | Field | Description |
|---|---|---|
protected Vector |
dr |
|
protected double |
fac |
|
protected double |
mass |
|
protected double |
temperature |
| Constructor | Description |
|---|---|
P2O2TI(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) |
protected final double temperature
protected final double mass
protected final double fac
protected final Vector dr
public double energy(IAtomList atoms)
IPotentialAtomicenergy in interface IPotentialAtomicpublic double getRange()
IPotentialgetRange in interface IPotentialpublic void setBox(Box box)
IPotentialsetBox in interface IPotentialpublic int nBody()
IPotentialnBody in interface IPotentialpublic double u(double r2)