PotentialCalculationpublic class PotentialCalculationSumCutoffLS extends java.lang.Object implements PotentialCalculation
| Modifier and Type | Field | Description |
|---|---|---|
protected double[][] |
sums |
| Constructor | Description |
|---|---|
PotentialCalculationSumCutoffLS() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
doCalculation(IAtomList atoms,
IPotentialAtomic potential) |
Adds to the energy sum the energy values obtained from application of the given potential to the
atoms produced by the given iterator.
|
double[][] |
getSums() |
Returns the current value of the energy sum.
|
void |
zeroSums() |
Sets the energy sum to zero, typically to begin a new energy-sum calculation.
|
public void doCalculation(IAtomList atoms, IPotentialAtomic potential)
doCalculation in interface PotentialCalculationatoms - IAtomSet the atom sets for which the calculation is performed.potential - The potential used to apply the action defined by this class.public void zeroSums()
public double[][] getSums()