PotentialCalculation
public static class MeterWallForce.PotentialCalculationWallForce extends java.lang.Object implements PotentialCalculation
Modifier and Type | Field | Description |
---|---|---|
protected AtomType |
atomType |
|
protected double |
sum |
Constructor | Description |
---|---|
PotentialCalculationWallForce() |
Modifier and Type | Method | Description |
---|---|---|
void |
doCalculation(IAtomList atoms,
IPotentialAtomic potential) |
Adds forces due to given potential acting on the atoms produced by the iterator.
|
double |
getSum() |
|
void |
reset() |
Re-zeros the force vector.
|
void |
setAtomType(AtomType type) |
protected double sum
protected AtomType atomType
public double getSum()
public void setAtomType(AtomType type)
public void reset()
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.