IPotential
, IPotentialMolecular
, IPotentialMolecularTorque
, PotentialMolecularSoft
P2WaterSPCSoft
public class P2Water3PSoft extends P2Water3P implements IPotentialMolecularTorque
Modifier and Type | Field | Description |
---|---|---|
protected double |
epsilon48 |
|
protected Vector |
fWork |
|
protected Vector[] |
gradient |
|
protected Vector[][] |
gradientAndTorque |
|
protected Vector[] |
torque |
boundary, chargeH, chargeHH, chargeO, chargeOH, chargeOO, epsilon, epsilon4, shift, sigma, sigma2, work
nBody, space
Constructor | Description |
---|---|
P2Water3PSoft(Space space,
double sigma,
double epsilon,
double chargeO,
double chargeH) |
Modifier and Type | Method | Description |
---|---|---|
double |
getEpsilon() |
|
double |
getRange() |
Returns the range over which the potential applies.
|
double |
getSigma() |
|
Vector[] |
gradient(IMoleculeList atoms) |
Returns the gradient of the potential as it applies to each atom in the
given AtomSet, indicating how the energy would change as the position of
the first atom is varied.
|
Vector[] |
gradient(IMoleculeList atoms,
Tensor pressureTensor) |
Returns the same gradient as gradient(IMoleculeList) and also adds in
the contribution of the molecules to the pressureTensor.
|
Vector[][] |
gradientAndTorque(IMoleculeList pair) |
|
double |
virial(IMoleculeList atoms) |
nBody, setBox
energy
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
nBody
protected final Vector[] gradient
protected final Vector[] torque
protected final Vector[][] gradientAndTorque
protected double epsilon48
protected final Vector fWork
public P2Water3PSoft(Space space, double sigma, double epsilon, double chargeO, double chargeH)
public Vector[][] gradientAndTorque(IMoleculeList pair)
gradientAndTorque
in interface IPotentialMolecularTorque
public Vector[] gradient(IMoleculeList atoms)
PotentialMolecularSoft
gradient
in interface PotentialMolecularSoft
public Vector[] gradient(IMoleculeList atoms, Tensor pressureTensor)
PotentialMolecularSoft
gradient
in interface PotentialMolecularSoft
public double virial(IMoleculeList atoms)
virial
in interface PotentialMolecularSoft
public double getRange()
IPotential
getRange
in interface IPotential
getRange
in class P2Water3P
public double getEpsilon()
getEpsilon
in class P2Water3P