PotentialCalculation
public class PotentialCalculationEnergySumCutoff extends java.lang.Object implements PotentialCalculation
Modifier and Type | Field | Description |
---|---|---|
protected Boundary |
boundary |
|
protected Box |
box |
|
protected Vector |
dr |
|
protected double[] |
r2Cuts |
|
protected double[] |
sums |
Constructor | Description |
---|---|
PotentialCalculationEnergySumCutoff(Space space,
double[] cutoffs) |
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 |
setBox(Box box) |
|
void |
zeroSum() |
Sets the energy sum to zero, typically to begin a new energy-sum calculation.
|
protected double[] sums
protected double[] r2Cuts
protected final Vector dr
protected Box box
protected Boundary boundary
public PotentialCalculationEnergySumCutoff(Space space, double[] cutoffs)
public void setBox(Box box)
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 void zeroSum()
public double[] getSums()