IPotential, IPotentialMolecularpublic class P2HSPolymer extends PotentialMolecular
| Modifier and Type | Field | Description |
|---|---|---|
double |
range |
nBody, space| Constructor | Description |
|---|---|
P2HSPolymer(int nBody,
Space space,
IPotentialAtomic potential) |
| 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, waitnBodypublic P2HSPolymer(int nBody,
Space space,
IPotentialAtomic potential)
public double getRange()
IPotentialgetRange in interface IPotentialgetRange in class PotentialMolecularpublic double energy(IMoleculeList molecules)
PotentialMolecularenergy in interface IPotentialMolecularenergy in class PotentialMolecularpublic void setBox(Box box)
PotentialMolecularsetBox in interface IPotentialsetBox in class PotentialMolecular