IPotential
, IPotentialAtomic
, Potential2Soft
, Potential2Spherical
, PotentialSoft
public class P2HardAssociationConeOneSite extends Potential2 implements Potential2Soft
Modifier and Type | Field | Description |
---|---|---|
static boolean |
FLAG |
Constructor | Description |
---|---|
P2HardAssociationConeOneSite(Space space) |
|
P2HardAssociationConeOneSite(Space space,
double sigma,
double epsilon,
double cutoffFactorLJ,
double wellConstant) |
Modifier and Type | Method | Description |
---|---|---|
double |
du(double r2) |
The derivative of the pair energy, times the separation r: r du/dr.
|
double |
energy(IAtomList atoms) |
Returns the pair potential energy.
|
double |
getCutoffFactorLJ() |
Accessor method for Lennard-Jones cutoff distance; divided by sigma
|
static Dimension |
getCutoffFactorLJDimension() |
|
double |
getEpsilon() |
Accessor method for Lennard-Jones energy parameter
|
static Dimension |
getEpsilonDimension() |
|
double |
getRange() |
Returns infinity.
|
double |
getSigma() |
Accessor method for Lennard-Jones size parameter
|
static Dimension |
getSigmaDimension() |
|
double |
getTheta() |
Accessor method for angle describing width of cone.
|
Dimension |
getThetaDimension() |
|
double |
getWellCutoffFactor() |
Accessor method for attractive-well diameter divided by sigma
|
static Dimension |
getWellCutoffFactorDimension() |
|
double |
getWellEpsilon() |
Accessor method for attractive-well depth parameter.
|
static Dimension |
getWellEpsilonDimension() |
|
Vector[] |
gradient(IAtomList 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(IAtomList atoms,
Tensor pressureTensor) |
Returns the same gradient as gradient(AtomSet) and also adds in the
contribution of the AtomSet to the pressureTensor.
|
double |
hyperVirial(IAtomList pair) |
Hypervirial of the pair as given by the du(double) and d2u(double) methods
|
double |
integral(double rC) |
Integral used to evaluate correction to truncation of potential.
|
void |
setBox(Box box) |
Informs the potential of the box on which it acts.
|
void |
setCutoffFactorLJ(double rc) |
Accessor method for Lennard-Jones cutoff distance; divided by sigma
|
void |
setEpsilon(double eps) |
Accessor method for depth of well
|
void |
setSigma(double s) |
Accessor method for Lennard-Jones size parameter
|
void |
setTheta(double t) |
Accessor method for angle (in radians) describing width of cone.
|
void |
setWellCutoffFactor(double wcut) |
Accessor method for attractive-well diameter divided by sigma;
|
void |
setWellEpsilon(double weps) |
Accessor method for attractive-well depth parameter.
|
double |
u(double r2) |
The pair energy u(r^2) with no truncation applied.
|
double |
virial(IAtomList atoms) |
nBody
public P2HardAssociationConeOneSite(Space space)
public P2HardAssociationConeOneSite(Space space, double sigma, double epsilon, double cutoffFactorLJ, double wellConstant)
public double getRange()
getRange
in interface IPotential
getRange
in class Potential
public double energy(IAtomList atoms)
energy
in interface IPotentialAtomic
energy
in class Potential
public double getSigma()
public void setSigma(double s)
public static final Dimension getSigmaDimension()
public double getCutoffFactorLJ()
public void setCutoffFactorLJ(double rc)
rc
- cutoff distance, divided by size parameter (sigma)public static final Dimension getCutoffFactorLJDimension()
public double getWellCutoffFactor()
public void setWellCutoffFactor(double wcut)
public static final Dimension getWellCutoffFactorDimension()
public double getEpsilon()
public void setEpsilon(double eps)
public static final Dimension getEpsilonDimension()
public double getWellEpsilon()
public void setWellEpsilon(double weps)
public static final Dimension getWellEpsilonDimension()
public double getTheta()
public void setTheta(double t)
public Dimension getThetaDimension()
public void setBox(Box box)
Potential
setBox
in interface IPotential
setBox
in class Potential
public double hyperVirial(IAtomList pair)
Potential2Soft
hyperVirial
in interface Potential2Soft
public double integral(double rC)
Potential2Soft
integral
in interface Potential2Soft
public double u(double r2)
Potential2Spherical
u
in interface Potential2Spherical
r2
- the square of the distance between the particles.public double du(double r2)
Potential2Soft
du
in interface Potential2Soft
public Vector[] gradient(IAtomList atoms)
PotentialSoft
gradient
in interface PotentialSoft
public Vector[] gradient(IAtomList atoms, Tensor pressureTensor)
PotentialSoft
gradient
in interface PotentialSoft
public double virial(IAtomList atoms)
virial
in interface PotentialSoft