IPotential, IPotentialMolecular, PotentialMolecularSoftpublic 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) |
nBodyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnBodypublic 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)
PotentialMolecularsetBox in interface IPotentialsetBox in class PotentialMolecularpublic double getRange()
IPotentialgetRange in interface IPotentialgetRange in class PotentialMolecularpublic double energy(IMoleculeList pair)
PotentialMolecularenergy in interface IPotentialMolecularenergy in class PotentialMolecularprotected double calculateEnergy(double r2)
protected double calculateDU(double r2)
public double virial(IMoleculeList pair)
virial in interface PotentialMolecularSoftpublic Vector[] gradient(IMoleculeList molecules)
PotentialMolecularSoftgradient in interface PotentialMolecularSoftpublic Vector[] gradient(IMoleculeList molecules, Tensor pressureTensor)
PotentialMolecularSoftgradient in interface PotentialMolecularSoft