IPotential, IPotentialMolecularpublic class PotentialNonAdditive extends java.lang.Object implements IPotentialMolecular
| Modifier and Type | Class | Description |
|---|---|---|
class |
PotentialNonAdditive.PotentialNonAdditiveNB |
| Modifier and Type | Field | Description |
|---|---|---|
protected MoleculeArrayList |
moleculeList |
|
protected int |
nBody |
|
protected IPotentialMolecular[] |
p |
|
protected IPotentialMolecular[] |
potentials |
|
protected double[][] |
una |
| Constructor | Description |
|---|---|
PotentialNonAdditive(IPotentialMolecular[] potentials) |
|
PotentialNonAdditive(IPotentialMolecular[] potentials,
int[] nbody) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
energy(int size,
IMoleculeList molecules) |
|
double |
energy(IMoleculeList molecules) |
Returns the interaction energy between the given atoms.
|
double |
getRange() |
Returns the range over which the potential applies.
|
static void |
main(java.lang.String[] args) |
|
PotentialNonAdditive.PotentialNonAdditiveNB |
makeNB(int nBodyPretend) |
|
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.
|
protected int nBody
protected final IPotentialMolecular[] potentials
protected final IPotentialMolecular[] p
protected final double[][] una
protected final MoleculeArrayList moleculeList
public PotentialNonAdditive(IPotentialMolecular[] potentials)
public PotentialNonAdditive(IPotentialMolecular[] potentials, int[] nbody)
public double getRange()
IPotentialgetRange in interface IPotentialpublic void setBox(Box box)
IPotentialsetBox in interface IPotentialpublic int nBody()
IPotentialnBody in interface IPotentialpublic double energy(IMoleculeList molecules)
IPotentialMolecularenergy in interface IPotentialMolecularpublic void energy(int size,
IMoleculeList molecules)
public PotentialNonAdditive.PotentialNonAdditiveNB makeNB(int nBodyPretend)
public static void main(java.lang.String[] args)