PotentialCalculation
public class PotentialCalculationLJSP extends java.lang.Object implements PotentialCalculation
Modifier and Type | Field | Description |
---|---|---|
protected Box |
box |
|
protected CoordinateDefinition |
coordinateDefinition |
|
protected double |
dP |
|
protected Vector |
dri |
|
protected Vector |
drij |
|
protected Vector |
drj |
|
protected Vector |
drj_tmp |
|
protected double |
f1 |
|
protected double |
fe |
|
protected double |
fee |
|
protected int |
nMol |
|
protected Vector |
rij |
|
protected Vector |
Rij |
|
protected Space |
space |
|
protected Vector |
T1ij |
|
protected Vector |
T2ij |
|
protected Vector |
T3ij |
|
protected double |
temperature |
|
protected double |
volume |
Constructor | Description |
---|---|
PotentialCalculationLJSP(Space space,
Box box,
CoordinateDefinition coordinateDefinition,
double temperature,
double dP,
double f1,
double fe,
double fee) |
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 dP
protected double f1
protected double fe
protected double fee
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 drj_tmp
protected final Vector T1ij
protected final Vector T2ij
protected final Vector T3ij
protected final Space space
protected final Box box
protected final CoordinateDefinition coordinateDefinition
public PotentialCalculationLJSP(Space space, Box box, CoordinateDefinition coordinateDefinition, double temperature, double dP, double f1, double fe, double fee)
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()