IPotential
, IPotentialMolecular
, PotentialMolecularSoft
public 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, potentialMaster
nBody, 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, setBox
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPotential, addPotential, addPotential, calculate, contains, getAtomTypes, getPotentials, getRange, isEnabled, removePotential, setBox, setEnabled, setPotentialMaster
nBody
protected 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)
PotentialMolecular
energy
in interface IPotentialMolecular
energy
in class PotentialGroup
public double virial(IMoleculeList pair)
virial
in interface PotentialMolecularSoft
public Vector[] gradient(IMoleculeList basisAtoms)
PotentialMolecularSoft
gradient
in interface PotentialMolecularSoft
public Vector[] gradient(IMoleculeList atoms, Tensor pressureTensor)
PotentialMolecularSoft
gradient
in interface PotentialMolecularSoft