PotentialCalculation
public class PotentialCalculationEFSSP extends java.lang.Object implements PotentialCalculation
Modifier and Type | Field | Description |
---|---|---|
protected Box |
box |
|
protected CoordinateDefinition |
coordinateDefinition |
|
protected Vector |
dri |
|
protected Vector |
drij |
|
protected Vector |
drj |
|
protected double |
f1 |
|
protected boolean |
isLS |
|
protected int |
nMol |
|
protected Vector |
rij |
|
protected Vector |
Rij |
|
protected Vector |
T1ij |
|
protected Vector |
T1ik |
|
protected double |
temperature |
|
protected double |
volume |
Constructor | Description |
---|---|
PotentialCalculationEFSSP(Space space,
Box box,
CoordinateDefinition coordinateDefinition,
double temperature,
double f1,
boolean isLS) |
Modifier and Type | Method | Description |
---|---|---|
void |
doCalculation(IAtomList atoms,
IPotentialAtomic potential) |
Method giving the specific calculation performed by this class.
|
protected double |
function(Vector rij,
Vector T1ij,
Vector T2ij,
double dW,
double d2W) |
|
double[] |
getSum() |
Returns the current value of the energy sum.
|
void |
reset() |
Sets the virial sum to zero, typically to begin a new virial-sum calculation.
|
protected double volume
protected double temperature
protected double f1
protected int nMol
protected final Vector rij
protected final Vector Rij
protected final Vector drj
protected final Vector dri
protected final Vector drij
protected final Vector T1ij
protected final Vector T1ik
protected final boolean isLS
protected final Box box
protected final CoordinateDefinition coordinateDefinition
public PotentialCalculationEFSSP(Space space, Box box, CoordinateDefinition coordinateDefinition, double temperature, double f1, boolean isLS)
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 reset()
public double[] getSum()