IPotential
, IPotentialMolecular
, IPotentialMolecularTorque
, PotentialMolecularSoft
public 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) |
nBody
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
nBody
protected 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 IPotential
getRange
in class PotentialMolecular
public Vector[][] gradientAndTorque(IMoleculeList atoms)
gradientAndTorque
in interface IPotentialMolecularTorque
protected double getF(double r)
protected double getdFdr(double r)
public static void main(java.lang.String[] args)
public Vector[] gradient(IMoleculeList atoms)
PotentialMolecularSoft
gradient
in interface PotentialMolecularSoft
public Vector[] gradient(IMoleculeList atoms, Tensor pressureTensor)
PotentialMolecularSoft
gradient
in interface PotentialMolecularSoft
public double energy(IMoleculeList atoms)
PotentialMolecular
energy
in interface IPotentialMolecular
energy
in class PotentialMolecular
public double virial(IMoleculeList atoms)
virial
in interface PotentialMolecularSoft
public Dimension getTruncationRadiusDimension()
public void setBox(Box newBox)
PotentialMolecular
setBox
in interface IPotential
setBox
in class PotentialMolecular