PotentialCalculation, PotentialCalculationMolecularpublic class PotentialCalculationPhiSum extends java.lang.Object implements PotentialCalculationMolecular
| Modifier and Type | Field | Description |
|---|---|---|
protected Vector[] |
a |
|
protected Vector |
Ai |
|
protected Vector |
Aj |
|
protected DipoleSource |
dipoleSource |
|
protected Vector |
dr |
|
protected Vector |
ei |
|
protected Vector |
ej |
|
protected Vector |
fieldE |
|
protected Tensor |
iT |
|
protected double |
secondDerivativeSum |
| Constructor | Description |
|---|---|
PotentialCalculationPhiSum(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 |
setDipoleSource(DipoleSource newDipoleSource) |
|
void |
zeroSum() |
protected Vector fieldE
protected Vector ei
protected Vector ej
protected Vector Ai
protected Vector Aj
protected Vector dr
protected double secondDerivativeSum
protected DipoleSource dipoleSource
protected final Vector[] a
protected final Tensor iT
public PotentialCalculationPhiSum(Space space)
public void doCalculation(IAtomList atoms, IPotentialAtomic potential)
PotentialCalculationdoCalculation in interface PotentialCalculationatoms - 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)
PotentialCalculationMoleculardoCalculation in interface PotentialCalculationMolecularmolecules - IAtomSet the atom sets for which the calculation is performed.potential - The potential used to apply the action defined by this class.public void setDipoleSource(DipoleSource newDipoleSource)
public void zeroSum()
public double getSum()