IPotential, IPotentialMolecularpublic class P2MoleculeTruncated extends PotentialMolecular
| Modifier and Type | Field | Description |
|---|---|---|
protected Boundary |
boundary |
|
protected double |
cutoffRatio |
|
protected Vector |
dr |
|
protected IMoleculePositionDefinition |
positionDefinition |
|
protected IPotentialMolecular |
potential |
|
protected double |
r2Cutoff |
|
protected double |
rCutoff |
nBody, space| Constructor | Description |
|---|---|
P2MoleculeTruncated(IPotentialMolecular potential,
double truncationRadius,
Space _space,
IMoleculePositionDefinition positionDefinition) |
| Modifier and Type | Method | Description |
|---|---|---|
double |
energy(IMoleculeList atoms) |
Returns the interaction energy between the given molecules.
|
double |
getRange() |
Returns the truncation radius.
|
double |
getTruncationRadius() |
Accessor method for the radial cutoff distance.
|
Dimension |
getTruncationRadiusDimension() |
Returns the dimension (length) of the radial cutoff distance.
|
IPotentialMolecular |
getWrappedPotential() |
Returns the wrapped potential.
|
void |
setBox(Box newBox) |
Informs the potential of the box on which it acts.
|
void |
setCutoffRatio(double newCutoffRatio) |
|
void |
setTruncationRadius(double rCut) |
Mutator method for the radial cutoff distance.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnBodyprotected double rCutoff
protected double r2Cutoff
protected final IPotentialMolecular potential
protected final Vector dr
protected Boundary boundary
protected double cutoffRatio
protected final IMoleculePositionDefinition positionDefinition
public P2MoleculeTruncated(IPotentialMolecular potential, double truncationRadius, Space _space, IMoleculePositionDefinition positionDefinition)
public IPotentialMolecular getWrappedPotential()
public void setTruncationRadius(double rCut)
public double getTruncationRadius()
public double getRange()
getRange in interface IPotentialgetRange in class PotentialMolecularpublic double energy(IMoleculeList atoms)
PotentialMolecularenergy in interface IPotentialMolecularenergy in class PotentialMolecularpublic Dimension getTruncationRadiusDimension()
public void setBox(Box newBox)
PotentialMolecularsetBox in interface IPotentialsetBox in class PotentialMolecularpublic void setCutoffRatio(double newCutoffRatio)