IPotential, IPotentialMolecular, PotentialMolecularSoftpublic class PotentialGroupSoft extends PotentialGroup implements PotentialMolecularSoft
PotentialGroup.PotentialLinker| Modifier and Type | Field | Description |
|---|---|---|
protected Vector[] |
gradients |
|
protected IMoleculePositionDefinition |
positionDefinition |
|
protected double |
truncation |
box, criterion, first, potentialMasternBody, space| Constructor | Description |
|---|---|
PotentialGroupSoft(int nBody,
Space space,
double truncation) |
| Modifier and Type | Method | Description |
|---|---|---|
double |
energy(IMoleculeList pair) |
Returns the interaction energy between the given molecules.
|
double |
getTruncation() |
|
Vector[] |
gradient(IMoleculeList basisAtoms) |
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.
|
void |
setTruncation(double truncation) |
|
double |
virial(IMoleculeList pair) |
getRange, nBody, setBoxclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPotential, addPotential, addPotential, calculate, contains, getAtomTypes, getPotentials, getRange, isEnabled, removePotential, setBox, setEnabled, setPotentialMasternBodyprotected final Vector[] gradients
protected final IMoleculePositionDefinition positionDefinition
protected double truncation
public PotentialGroupSoft(int nBody,
Space space,
double truncation)
public double getTruncation()
public void setTruncation(double truncation)
public double energy(IMoleculeList pair)
PotentialMolecularenergy in interface IPotentialMolecularenergy in class PotentialGrouppublic double virial(IMoleculeList pair)
virial in interface PotentialMolecularSoftpublic Vector[] gradient(IMoleculeList basisAtoms)
PotentialMolecularSoftgradient in interface PotentialMolecularSoftpublic Vector[] gradient(IMoleculeList atoms, Tensor pressureTensor)
PotentialMolecularSoftgradient in interface PotentialMolecularSoft