IPotential
, IPotentialMolecular
public class PotentialNonAdditiveDifference extends PotentialMolecular
Modifier and Type | Field | Description |
---|---|---|
protected IPotentialMolecular |
p2 |
|
protected MoleculePair |
pair |
|
protected IPotentialMolecular |
pFull |
nBody, space
Constructor | Description |
---|---|
PotentialNonAdditiveDifference(Space space,
IPotentialMolecular p2,
IPotentialMolecular pFull) |
Modifier and Type | Method | Description |
---|---|---|
double |
energy(IMoleculeList molecules) |
Returns the interaction energy between the given molecules.
|
double |
getRange() |
Returns the range over which the potential applies.
|
void |
setBox(Box box) |
Informs the potential of the box on which it acts.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
nBody
protected final IPotentialMolecular p2
protected final IPotentialMolecular pFull
protected final MoleculePair pair
public PotentialNonAdditiveDifference(Space space, IPotentialMolecular p2, IPotentialMolecular pFull)
public double getRange()
IPotential
getRange
in interface IPotential
getRange
in class PotentialMolecular
public double energy(IMoleculeList molecules)
PotentialMolecular
energy
in interface IPotentialMolecular
energy
in class PotentialMolecular
public void setBox(Box box)
PotentialMolecular
setBox
in interface IPotential
setBox
in class PotentialMolecular