IPotential, IPotential0Lrc, IPotentialMolecular, PotentialMolecularSoftpublic static class P2ReactionFieldDipoleTruncated.P0ReactionField extends PotentialMolecular implements IPotential0Lrc, PotentialMolecularSoft
| Modifier and Type | Field | Description |
|---|---|---|
protected Box |
box |
|
protected Vector[] |
gradient |
|
protected P2ReactionFieldDipoleTruncated |
potential |
|
protected IMolecule |
targetAtom |
nBody, space| Constructor | Description |
|---|---|
P0ReactionField(Space space,
P2ReactionFieldDipoleTruncated p) |
| Modifier and Type | Method | Description |
|---|---|---|
double |
energy(IMoleculeList atoms) |
Returns the interaction energy between the given molecules.
|
double |
getRange() |
Returns the range over which the potential applies.
|
Vector[] |
gradient(IMoleculeList atoms) |
Returns the gradient of the potential as it applies to each atom in the
given AtomSet, indicating how the energy would change as the position of
the first atom is varied.
|
Vector[] |
gradient(IMoleculeList atoms,
Tensor pressureTensor) |
Returns the same gradient as gradient(IMoleculeList) and also adds in
the contribution of the molecules to the pressureTensor.
|
void |
setBox(Box newBox) |
Informs the potential of the box on which it acts.
|
void |
setTargetAtom(IAtom targetAtom) |
Informs the potential of a target atom.
|
void |
setTargetMolecule(IMolecule atom) |
Informs the potential of a target atom.
|
double |
virial(IMoleculeList atoms) |
nBodyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnBodyprotected final P2ReactionFieldDipoleTruncated potential
protected final Vector[] gradient
protected IMolecule targetAtom
protected Box box
public P0ReactionField(Space space, P2ReactionFieldDipoleTruncated p)
public double energy(IMoleculeList atoms)
PotentialMolecularenergy in interface IPotentialMolecularenergy in class PotentialMolecularpublic void setBox(Box newBox)
PotentialMolecularsetBox in interface IPotentialsetBox in class PotentialMolecularpublic void setTargetMolecule(IMolecule atom)
IPotential0LrcsetTargetMolecule in interface IPotential0Lrcpublic void setTargetAtom(IAtom targetAtom)
IPotential0LrcsetTargetAtom in interface IPotential0Lrcpublic double getRange()
IPotentialgetRange in interface IPotentialgetRange in class PotentialMolecularpublic Vector[] gradient(IMoleculeList atoms)
PotentialMolecularSoftgradient in interface PotentialMolecularSoftpublic Vector[] gradient(IMoleculeList atoms, Tensor pressureTensor)
PotentialMolecularSoftgradient in interface PotentialMolecularSoftpublic double virial(IMoleculeList atoms)
virial in interface PotentialMolecularSoft