IPotential
, IPotential0Lrc
, IPotentialMolecular
, PotentialMolecularSoft
public 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) |
nBody
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
nBody
protected final P2ReactionFieldDipoleTruncated potential
protected final Vector[] gradient
protected IMolecule targetAtom
protected Box box
public P0ReactionField(Space space, P2ReactionFieldDipoleTruncated p)
public double energy(IMoleculeList atoms)
PotentialMolecular
energy
in interface IPotentialMolecular
energy
in class PotentialMolecular
public void setBox(Box newBox)
PotentialMolecular
setBox
in interface IPotential
setBox
in class PotentialMolecular
public void setTargetMolecule(IMolecule atom)
IPotential0Lrc
setTargetMolecule
in interface IPotential0Lrc
public void setTargetAtom(IAtom targetAtom)
IPotential0Lrc
setTargetAtom
in interface IPotential0Lrc
public double getRange()
IPotential
getRange
in interface IPotential
getRange
in class PotentialMolecular
public Vector[] gradient(IMoleculeList atoms)
PotentialMolecularSoft
gradient
in interface PotentialMolecularSoft
public Vector[] gradient(IMoleculeList atoms, Tensor pressureTensor)
PotentialMolecularSoft
gradient
in interface PotentialMolecularSoft
public double virial(IMoleculeList atoms)
virial
in interface PotentialMolecularSoft