IPotential
, IPotentialMolecular
public 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, wait
nBody
protected 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 IPotential
getRange
in class PotentialMolecular
public double energy(IMoleculeList atoms)
PotentialMolecular
energy
in interface IPotentialMolecular
energy
in class PotentialMolecular
public Dimension getTruncationRadiusDimension()
public void setBox(Box newBox)
PotentialMolecular
setBox
in interface IPotential
setBox
in class PotentialMolecular
public void setCutoffRatio(double newCutoffRatio)