IPotential
, IPotentialMolecular
, IPotentialMolecularTorque
, PotentialMolecularSoft
public class P2LJDipole extends PotentialMolecular implements IPotentialMolecularTorque
Modifier and Type | Field | Description |
---|---|---|
protected double |
cutoff2 |
|
protected double |
dipoleFShift |
|
protected double |
dipoleUShift |
|
protected double |
fShift |
|
protected Vector[][] |
gradientAndTorque |
|
protected Vector[] |
torque |
|
protected double |
uShift |
nBody, space
Constructor | Description |
---|---|
P2LJDipole(Space space) |
|
P2LJDipole(Space space,
double sigma,
double epsilon,
double momentSquared) |
Modifier and Type | Method | Description |
---|---|---|
double |
energy(IMoleculeList pair) |
Returns the interaction energy between the given molecules.
|
double |
getDipoleMomentSquare() |
|
double |
getEpsilon() |
|
double |
getRange() |
Returns the range over which the potential applies.
|
double |
getSigma() |
|
Vector[] |
gradient(IMoleculeList pair) |
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 pair,
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 box) |
Informs the potential of the box on which it acts.
|
void |
setDipoleMomentSquare(double newMomentSq) |
|
void |
setEpsilon(double eps) |
|
void |
setHardCoreDiamterSq(double val) |
|
void |
setSigma(double s) |
|
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 final Vector[] torque
protected final Vector[][] gradientAndTorque
protected double cutoff2
protected double dipoleFShift
protected double dipoleUShift
protected double fShift
protected double uShift
public P2LJDipole(Space space)
public P2LJDipole(Space space, double sigma, double epsilon, double momentSquared)
public void setHardCoreDiamterSq(double val)
public void setTruncationRadius(double rCut)
public void setBox(Box box)
PotentialMolecular
setBox
in interface IPotential
setBox
in class PotentialMolecular
public double getRange()
IPotential
getRange
in interface IPotential
getRange
in class PotentialMolecular
public double energy(IMoleculeList pair)
PotentialMolecular
energy
in interface IPotentialMolecular
energy
in class PotentialMolecular
public double getSigma()
public final void setSigma(double s)
public double getEpsilon()
public void setEpsilon(double eps)
public void setDipoleMomentSquare(double newMomentSq)
public double getDipoleMomentSquare()
public Vector[] gradient(IMoleculeList pair, Tensor pressureTensor)
PotentialMolecularSoft
gradient
in interface PotentialMolecularSoft
public Vector[] gradient(IMoleculeList pair)
PotentialMolecularSoft
gradient
in interface PotentialMolecularSoft
public double virial(IMoleculeList atoms)
virial
in interface PotentialMolecularSoft
public Vector[][] gradientAndTorque(IMoleculeList atoms)
gradientAndTorque
in interface IPotentialMolecularTorque
public static void main(java.lang.String[] args)