PotentialCalculation
public class PotentialCalculationSolidSuper extends java.lang.Object implements PotentialCalculation
Modifier and Type | Field | Description |
---|---|---|
protected Boundary |
boundary |
|
protected Box |
box |
|
protected CoordinateDefinition |
coordinateDefinition |
|
protected double |
d2sum |
|
protected double |
dadbSum |
|
protected boolean |
doD2 |
|
protected Vector |
dr |
|
protected Vector |
dr0 |
|
protected Vector |
drA |
|
protected Vector |
drB |
|
protected Vector |
drSite0 |
|
protected Vector |
drSite1 |
|
protected double |
energySum |
|
protected double |
fac1 |
|
protected Space |
space |
|
protected double |
virialSum |
Constructor | Description |
---|---|
PotentialCalculationSolidSuper(Space space,
CoordinateDefinition coordinateDefinition) |
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 |
getD2Sum() |
|
double |
getDADBSum() |
Returns sum of Fi dot ri
|
double |
getEnergySum() |
|
double |
getVirialSum() |
|
void |
setBox(Box box) |
|
void |
setDoSecondDerivative(boolean doD2) |
|
void |
zeroSum() |
protected final CoordinateDefinition coordinateDefinition
protected final Vector drSite0
protected final Vector drSite1
protected final Vector drA
protected final Vector dr
protected final Vector drB
protected final Vector dr0
protected final Space space
protected double virialSum
protected double energySum
protected double dadbSum
protected double fac1
protected Box box
protected Boundary boundary
protected boolean doD2
protected double d2sum
public PotentialCalculationSolidSuper(Space space, CoordinateDefinition coordinateDefinition)
public void setDoSecondDerivative(boolean doD2)
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 double getVirialSum()
public double getEnergySum()
public double getDADBSum()
public double getD2Sum()
public void zeroSum()
public void setBox(Box box)