IPotential, IPotentialMolecularP0LatticeEnergyCorrec, P1ExternalField, P22CLJmuQ, P22CLJQ, P2CO2EMP, P2DLPOLY, P2HSDipole, P2HSPolymer, P2LJDipole, P2LJDipole, P2MoleculeSoftTruncatedSwitched, P2MoleculeTruncated, P2Nitrogen, P2NitrogenAB, P2NitrogenAnisotropic, P2NitrogenShellModel, P2QChem, P2ReactionFieldDipole, P2ReactionFieldDipoleTruncated, P2ReactionFieldDipoleTruncated.P0ReactionField, P2Water3P, P2Water4P, P2WaterTIP4PHardCore, PNCO2GCPM, PNGCPM, PNWaterGCPM, PNWaterGCPMReactionField, PotentialDLPOLY, PotentialEmul, PotentialGroup, PotentialMolecularMonatomic, PotentialNonAdditiveDifference, PRotConstraint, VirialB2WaterTIP4P_DHS_difference.P2WaterDHSpublic abstract class PotentialMolecular extends java.lang.Object implements IPotentialMolecular
| Constructor | Description |
|---|---|
PotentialMolecular(int nBody,
Space space) |
General constructor for a potential instance
|
| Modifier and Type | Method | Description |
|---|---|---|
abstract double |
energy(IMoleculeList molecules) |
Returns the interaction energy between the given molecules.
|
abstract double |
getRange() |
Returns the range over which the potential applies.
|
int |
nBody() |
The number of atoms on which the potential depends.
|
abstract void |
setBox(Box box) |
Informs the potential of the box on which it acts.
|
protected final int nBody
protected final Space space
public PotentialMolecular(int nBody,
Space space)
nBody - number of atoms to which this potential applies at a time;
for example with a pair potential nBody = 2; for a single-body potential,
nBody = 1.public abstract double getRange()
IPotentialgetRange in interface IPotentialpublic abstract double energy(IMoleculeList molecules)
energy in interface IPotentialMolecularpublic abstract void setBox(Box box)
setBox in interface IPotentialpublic final int nBody()
nBody in interface IPotential