PotentialCalculation, PotentialCalculationMolecular, java.io.SerializableDataSourceEnergies.PotentialCalculationEnergies, PotentialCalculationEnergySumBigDecimal, PotentialCalculationEnergySumEAMpublic class PotentialCalculationEnergySum extends java.lang.Object implements PotentialCalculation, PotentialCalculationMolecular, java.io.Serializable
| Constructor | Description |
|---|---|
PotentialCalculationEnergySum() |
| 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.
|
void |
doCalculation(IMoleculeList molecules,
IPotentialMolecular potential) |
Adds to the energy sum the energy values obtained from application of the given potential to the
molecules.
|
double |
getSum() |
Returns the current value of the energy sum.
|
void |
zeroSum() |
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 doCalculation(IMoleculeList molecules, IPotentialMolecular potential)
doCalculation in interface PotentialCalculationMolecularmolecules - IAtomSet the atom sets for which the calculation is performed.potential - The potential used to apply the action defined by this class.public void zeroSum()
public double getSum()