IPotential
, IPotentialMolecular
, PotentialMolecularSoft
public class P22CLJmuQ extends PotentialMolecular implements PotentialMolecularSoft
nBody, space
Constructor | Description |
---|---|
P22CLJmuQ(Space space,
double sigma1,
double sigma2,
double epsilon1,
double epsilon2,
double mu,
double Q,
double siteFraction) |
Modifier and Type | Method | Description |
---|---|---|
protected double |
calculateDU(double r2) |
|
protected double |
calculateEnergy(double r2) |
|
double |
energy(IMoleculeList pair) |
Returns the interaction energy between the given molecules.
|
double |
getRange() |
Returns the range over which the potential applies.
|
Vector[] |
gradient(IMoleculeList molecules) |
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 molecules,
Tensor pressureTensor) |
Returns the same gradient as gradient(IMoleculeList) and also adds in
the contribution of the molecules to the pressureTensor.
|
void |
setBox(Box box) |
Informs the potential of the box on which it acts.
|
void |
setHardCoreDiamterSq(double val) |
|
double |
virial(IMoleculeList pair) |
nBody
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
nBody
public P22CLJmuQ(Space space, double sigma1, double sigma2, double epsilon1, double epsilon2, double mu, double Q, double siteFraction)
public void setHardCoreDiamterSq(double val)
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
protected double calculateEnergy(double r2)
protected double calculateDU(double r2)
public double virial(IMoleculeList pair)
virial
in interface PotentialMolecularSoft
public Vector[] gradient(IMoleculeList molecules)
PotentialMolecularSoft
gradient
in interface PotentialMolecularSoft
public Vector[] gradient(IMoleculeList molecules, Tensor pressureTensor)
PotentialMolecularSoft
gradient
in interface PotentialMolecularSoft