IPotential, IPotentialMolecular, IPotentialMolecularTorque, PotentialMolecularSoftpublic class P2MoleculeSoftTruncatedSwitched extends PotentialMolecular implements IPotentialMolecularTorque
| Modifier and Type | Field | Description |
|---|---|---|
protected Boundary |
boundary |
|
protected Vector |
dr |
|
protected Vector[][] |
gradientAndTorque |
|
protected IPotentialMolecularTorque |
potential |
|
protected double |
r2Cutoff |
|
protected double |
r2Switch |
|
protected double |
rCutoff |
|
protected double |
switchFac |
|
protected int |
taperOrder |
nBody, space| Constructor | Description |
|---|---|
P2MoleculeSoftTruncatedSwitched(IPotentialMolecularTorque potential,
double truncationRadius,
Space _space) |
| Modifier and Type | Method | Description |
|---|---|---|
double |
energy(IMoleculeList atoms) |
Returns the interaction energy between the given molecules.
|
protected double |
getdFdr(double r) |
|
protected double |
getF(double r) |
|
double |
getRange() |
Returns the truncation radius.
|
double |
getSwitchFac() |
|
double |
getTruncationRadius() |
Accessor method for the radial cutoff distance.
|
Dimension |
getTruncationRadiusDimension() |
Returns the dimension (length) of the radial cutoff distance.
|
IPotentialMolecularTorque |
getWrappedPotential() |
Returns the wrapped potential.
|
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 atoms) |
|
static void |
main(java.lang.String[] args) |
|
void |
setBox(Box newBox) |
Informs the potential of the box on which it acts.
|
void |
setSwitchFac(double newSwitchFac) |
|
void |
setTruncationRadius(double rCut) |
Mutator method for the radial cutoff distance.
|
double |
virial(IMoleculeList atoms) |
nBodyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnBodyprotected double rCutoff
protected double r2Cutoff
protected final IPotentialMolecularTorque potential
protected final Vector dr
protected Boundary boundary
protected final Vector[][] gradientAndTorque
protected int taperOrder
protected double switchFac
protected double r2Switch
public P2MoleculeSoftTruncatedSwitched(IPotentialMolecularTorque potential, double truncationRadius, Space _space)
public IPotentialMolecularTorque getWrappedPotential()
public void setTruncationRadius(double rCut)
public double getSwitchFac()
public void setSwitchFac(double newSwitchFac)
public double getTruncationRadius()
public double getRange()
getRange in interface IPotentialgetRange in class PotentialMolecularpublic Vector[][] gradientAndTorque(IMoleculeList atoms)
gradientAndTorque in interface IPotentialMolecularTorqueprotected double getF(double r)
protected double getdFdr(double r)
public static void main(java.lang.String[] args)
public Vector[] gradient(IMoleculeList atoms)
PotentialMolecularSoftgradient in interface PotentialMolecularSoftpublic Vector[] gradient(IMoleculeList atoms, Tensor pressureTensor)
PotentialMolecularSoftgradient in interface PotentialMolecularSoftpublic double energy(IMoleculeList atoms)
PotentialMolecularenergy in interface IPotentialMolecularenergy in class PotentialMolecularpublic double virial(IMoleculeList atoms)
virial in interface PotentialMolecularSoftpublic Dimension getTruncationRadiusDimension()
public void setBox(Box newBox)
PotentialMolecularsetBox in interface IPotentialsetBox in class PotentialMolecular