PotentialCalculation
public class PotentialCalculationSumCutoff 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[] |
uSums |
|
protected double[] |
vSums |
Constructor | Description |
---|---|
PotentialCalculationSumCutoff(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[] |
getUSums() |
Returns the current value of the energy sum.
|
double[] |
getVSums() |
Returns the current value of the energy sum.
|
void |
setBox(Box box) |
|
void |
zeroSums() |
Sets the energy sum to zero, typically to begin a new energy-sum calculation.
|
protected double[] uSums
protected double[] vSums
protected double[] r2Cuts
protected final Vector dr
protected Box box
protected Boundary boundary
public PotentialCalculationSumCutoff(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 zeroSums()
public double[] getUSums()
public double[] getVSums()