PotentialCalculation
, PotentialCalculationMolecular
public class PotentialCalculationPhiSumHeisenberg extends java.lang.Object implements PotentialCalculationMolecular
Modifier and Type | Field | Description |
---|---|---|
protected DipoleSource |
dipoleSource |
|
protected Vector |
dr |
|
protected Vector |
ei |
|
protected Vector |
ej |
|
protected double |
secondDerivativeSum |
Constructor | Description |
---|---|
PotentialCalculationPhiSumHeisenberg(Space space) |
Modifier and Type | Method | Description |
---|---|---|
void |
doCalculation(IAtomList atoms,
IPotentialAtomic potential) |
Method giving the specific calculation performed by this class.
|
void |
doCalculation(IMoleculeList molecules,
IPotentialMolecular potential) |
Method giving the specific calculation performed by this class.
|
double |
getSum() |
Returns the current value of the energy sum.
|
void |
zeroSum() |
protected Vector ei
protected Vector ej
protected Vector dr
protected double secondDerivativeSum
protected DipoleSource dipoleSource
public PotentialCalculationPhiSumHeisenberg(Space space)
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 doCalculation(IMoleculeList molecules, IPotentialMolecular potential)
PotentialCalculationMolecular
doCalculation
in interface PotentialCalculationMolecular
molecules
- 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()