IPotential, IPotentialAtomic, Potential2Soft, Potential2Spherical, PotentialSoftpublic class P2Cohesion extends Potential2SoftSpherical implements IPotentialAtomic
| Modifier and Type | Field | Description |
|---|---|---|
protected double |
dv |
|
protected double |
epsilon |
|
protected double |
epsilonSq |
|
protected double |
fac |
|
protected AtomTest |
liquidFilter |
|
protected boolean |
useSurfaceOnly |
boundary, dr, gradient| Constructor | Description |
|---|---|
P2Cohesion(Space space) |
| Modifier and Type | Method | Description |
|---|---|---|
double |
d2u(double r2) |
The second derivative of the pair energy, times the square of the
separation: r^2 d^2u/dr^2.
|
double |
du(double r2) |
The derivative of the pair energy, times the separation r: r du/dr.
|
double |
energy(IAtomList atoms) |
Energy of the pair as given by the u(double) method
|
double |
getDv() |
|
double |
getEpsilon() |
|
java.util.function.Predicate<IAtom> |
getLiquidFilter() |
|
double |
getRange() |
Returns infinity.
|
boolean |
getUseSurfaceOnly() |
|
Vector[] |
gradient(IAtomList atoms) |
Gradient of the pair potential as given by the du(double) method.
|
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 atoms) |
Hypervirial of the pair as given by the du(double) and d2u(double) methods
|
void |
setDv(double newDv) |
|
void |
setEpsilon(double newEpsilon) |
|
void |
setLiquidFilter(AtomTest newLiquidFilter) |
|
void |
setUseSurfaceOnly(boolean newUseSurfaceOnly) |
|
double |
u(double r2) |
The pair energy u(r^2) with no truncation applied.
|
double |
uInt(double rc) |
Integral of the potential, used to evaluate corrections for potential truncation.
|
double |
virial(IAtomList atoms) |
Virial of the pair as given by the du(double) method
|
nBody, setBoxclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitintegral, setBoxprotected double epsilon
protected double epsilonSq
protected double fac
protected double dv
protected boolean useSurfaceOnly
protected AtomTest liquidFilter
public P2Cohesion(Space space)
public double energy(IAtomList atoms)
Potential2SoftSphericalenergy in interface IPotentialAtomicenergy in class Potential2SoftSphericalpublic Vector[] gradient(IAtomList atoms, Tensor pressureTensor)
PotentialSoftgradient in interface PotentialSoftgradient in class Potential2SoftSphericalpublic Vector[] gradient(IAtomList atoms)
Potential2SoftSphericalgradient in interface PotentialSoftgradient in class Potential2SoftSphericalpublic double hyperVirial(IAtomList atoms)
Potential2SoftSphericalhyperVirial in interface Potential2SofthyperVirial in class Potential2SoftSphericalpublic double virial(IAtomList atoms)
Potential2SoftSphericalvirial in interface PotentialSoftvirial in class Potential2SoftSphericalpublic double d2u(double r2)
Potential2SoftSphericald2u in class Potential2SoftSphericalpublic double du(double r2)
Potential2SoftSphericaldu in interface Potential2Softdu in class Potential2SoftSphericalpublic double uInt(double rc)
Potential2SoftSphericaluInt in class Potential2SoftSphericalpublic double u(double r2)
Potential2Sphericalu in interface Potential2Sphericalr2 - the square of the distance between the particles.public double getRange()
Potential2SoftSphericalgetRange in interface IPotentialgetRange in class Potential2SoftSphericalpublic void setEpsilon(double newEpsilon)
public double getEpsilon()
public void setDv(double newDv)
public double getDv()
public void setLiquidFilter(AtomTest newLiquidFilter)
public java.util.function.Predicate<IAtom> getLiquidFilter()
public void setUseSurfaceOnly(boolean newUseSurfaceOnly)
public boolean getUseSurfaceOnly()