public class PotentialCommonAtomic extends java.lang.Object implements IPotentialAtomic
Modifier and Type | Field and Description |
---|---|
protected IBox |
box1 |
protected long |
lastBoxIndex |
protected long |
lastPairID |
protected int |
nBody |
protected boolean[] |
pairDone |
protected IPotentialAtomic |
pot |
protected boolean[] |
tripletDone |
protected double[] |
uPair |
protected double[] |
uTriplet |
Constructor and Description |
---|
PotentialCommonAtomic(IPotentialAtomic pot1) |
Modifier and Type | Method and 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(IBox box)
Informs the potential of the box on which it acts so that it can
properly consider the boundaries.
|
protected IPotentialAtomic pot
protected boolean[] pairDone
protected boolean[] tripletDone
protected long lastPairID
protected long lastBoxIndex
protected IBox box1
protected double[] uPair
protected double[] uTriplet
protected int nBody
public PotentialCommonAtomic(IPotentialAtomic pot1)
public double getRange()
etomica.api.IPotential
getRange
in interface IPotential
public void setBox(IBox box)
etomica.api.IPotential
setBox
in interface IPotential
public int nBody()
etomica.api.IPotential
nBody
in interface IPotential
public double energy(IAtomList atoms)
etomica.api.IPotentialAtomic
energy
in interface IPotentialAtomic