PotentialCalculation
public class PotentialCalculationSumquare extends java.lang.Object implements PotentialCalculation
Modifier and Type | Field | Description |
---|---|---|
protected Vector |
dr |
|
protected Vector |
ei |
|
protected Vector |
ej |
|
protected double |
mu |
|
protected double |
sum |
Constructor | Description |
---|---|
PotentialCalculationSumquare(Space space,
double dipoleMagnitude) |
Modifier and Type | Method | Description |
---|---|---|
void |
doCalculation(IAtomList atoms,
IPotentialAtomic potential) |
Method giving the specific calculation performed by this class.
|
double |
getSum() |
|
void |
zeroSum() |
protected Vector ei
protected Vector ej
protected double sum
protected double mu
protected Vector dr
public PotentialCalculationSumquare(Space space, double dipoleMagnitude)
public void doCalculation(IAtomList atoms, IPotentialAtomic potential)
PotentialCalculation
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 getSum()