IPotential
, IPotential0Lrc
, IPotentialAtomic
, PotentialSoft
P2SoftSphericalTruncated.P0Lrc
public abstract class Potential0Lrc extends Potential0 implements PotentialSoft, IPotential0Lrc
Modifier and Type | Field | Description |
---|---|---|
protected Box |
box |
|
protected double |
divisor |
|
protected boolean |
interType |
|
protected int[] |
lrcAtomsPerMolecule |
|
protected IPotentialAtomic |
truncatedPotential |
|
protected AtomType[] |
types |
Constructor | Description |
---|---|
Potential0Lrc(Space space,
AtomType[] types,
IPotentialAtomic truncatedPotential) |
Modifier and Type | Method | Description |
---|---|---|
IPotentialAtomic |
getTruncatedPotential() |
Returns the potential whose truncation this lrcPotential exists to correct.
|
protected long |
nPairs() |
Returns the number of pairs formed from molecules of the current
species, in the given box.
|
void |
setBox(Box b) |
Informs the potential of the box on which it acts.
|
void |
setTargetAtom(IAtom targetAtom) |
Informs the potential of a target atom.
|
void |
setTargetMolecule(IMolecule targetAtom) |
Informs the potential of a target atom.
|
getRange, nBody
energy
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCriterion, getRange
gradient, gradient, virial
protected final AtomType[] types
protected final boolean interType
protected final IPotentialAtomic truncatedPotential
protected final int[] lrcAtomsPerMolecule
protected double divisor
protected Box box
public Potential0Lrc(Space space, AtomType[] types, IPotentialAtomic truncatedPotential)
public IPotentialAtomic getTruncatedPotential()
public void setBox(Box b)
Potential
setBox
in interface IPotential
setBox
in class Potential
public void setTargetAtom(IAtom targetAtom)
IPotential0Lrc
setTargetAtom
in interface IPotential0Lrc
public void setTargetMolecule(IMolecule targetAtom)
IPotential0Lrc
setTargetMolecule
in interface IPotential0Lrc
protected long nPairs()