IPotential, IPotentialMolecular, IPotentialMolecularTorque, PotentialMolecularSoftP2WaterSPCSoftpublic 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, worknBody, 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, setBoxenergyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnBodyprotected 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 IPotentialMolecularTorquepublic Vector[] gradient(IMoleculeList atoms)
PotentialMolecularSoftgradient in interface PotentialMolecularSoftpublic Vector[] gradient(IMoleculeList atoms, Tensor pressureTensor)
PotentialMolecularSoftgradient in interface PotentialMolecularSoftpublic double virial(IMoleculeList atoms)
virial in interface PotentialMolecularSoftpublic double getRange()
IPotentialgetRange in interface IPotentialgetRange in class P2Water3Ppublic double getEpsilon()
getEpsilon in class P2Water3P