IPotential
, IPotentialAtomic
, Potential2Soft
, Potential2Spherical
, PotentialSoft
P2Anharmonic
, P2ArgonAziz1993
, P2ArgonSlavicekEtAl2003
, P2ArgonTangAndToennies2003
, P2Cohesion
, P2DiscreteFeynmanHibbs.P2HeEmpericalQuantum
, P2Dreiding
, P2Electrostatic
, P2ElectrostaticWithHardCore
, P2Exp6
, P2Exp6Buckingham
, P2Fene
, P2Harmonic
, P2HC2Yukawa
, P2HePCJS
, P2HePCKLJS
, P2HeSimplified
, P2HydrogenPatkowskiIso
, P2LennardJones
, P2LennardJonesDreiding
, P2LJQQ
, P2ModifiedMorse
, P2Morse
, P2QChemInterpolated
, P2RepRowley
, P2SoftSphere
, P2SoftSphericalTruncated
, P2WCA
, P2Yukawa
public abstract class Potential2SoftSpherical extends Potential2 implements Potential2Soft
Modifier and Type | Field | Description |
---|---|---|
protected Boundary |
boundary |
|
protected Vector |
dr |
|
protected Vector[] |
gradient |
Constructor | Description |
---|---|
Potential2SoftSpherical(Space space) |
Modifier and Type | Method | Description |
---|---|---|
abstract double |
d2u(double r2) |
The second derivative of the pair energy, times the square of the
separation: r^2 d^2u/dr^2.
|
abstract 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 |
getRange() |
Returns infinity.
|
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
|
double |
integral(double rC) |
Same as uInt.
|
void |
setBox(Box box) |
Informs the potential of the box on which it acts.
|
abstract 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
u
protected final Vector[] gradient
protected Boundary boundary
protected final Vector dr
public Potential2SoftSpherical(Space space)
public abstract double du(double r2)
du
in interface Potential2Soft
public abstract double d2u(double r2)
public abstract double uInt(double rC)
public double energy(IAtomList atoms)
energy
in interface IPotentialAtomic
energy
in class Potential
public double virial(IAtomList atoms)
virial
in interface PotentialSoft
public double hyperVirial(IAtomList atoms)
hyperVirial
in interface Potential2Soft
public Vector[] gradient(IAtomList atoms)
gradient
in interface PotentialSoft
public Vector[] gradient(IAtomList atoms, Tensor pressureTensor)
PotentialSoft
gradient
in interface PotentialSoft
public double integral(double rC)
integral
in interface Potential2Soft
public double getRange()
getRange
in interface IPotential
getRange
in class Potential
public void setBox(Box box)
Potential
setBox
in interface IPotential
setBox
in class Potential