IPotential
, IPotentialAtomic
, Potential2Soft
, Potential2Spherical
, PotentialSoft
public 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, setBox
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
integral, setBox
protected 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)
Potential2SoftSpherical
energy
in interface IPotentialAtomic
energy
in class Potential2SoftSpherical
public Vector[] gradient(IAtomList atoms, Tensor pressureTensor)
PotentialSoft
gradient
in interface PotentialSoft
gradient
in class Potential2SoftSpherical
public Vector[] gradient(IAtomList atoms)
Potential2SoftSpherical
gradient
in interface PotentialSoft
gradient
in class Potential2SoftSpherical
public double hyperVirial(IAtomList atoms)
Potential2SoftSpherical
hyperVirial
in interface Potential2Soft
hyperVirial
in class Potential2SoftSpherical
public double virial(IAtomList atoms)
Potential2SoftSpherical
virial
in interface PotentialSoft
virial
in class Potential2SoftSpherical
public double d2u(double r2)
Potential2SoftSpherical
d2u
in class Potential2SoftSpherical
public double du(double r2)
Potential2SoftSpherical
du
in interface Potential2Soft
du
in class Potential2SoftSpherical
public double uInt(double rc)
Potential2SoftSpherical
uInt
in class Potential2SoftSpherical
public double u(double r2)
Potential2Spherical
u
in interface Potential2Spherical
r2
- the square of the distance between the particles.public double getRange()
Potential2SoftSpherical
getRange
in interface IPotential
getRange
in class Potential2SoftSpherical
public 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()