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