IPotential, IPotentialAtomic, PotentialSoftpublic class Potential2SoftSphericalLS extends Potential2 implements PotentialSoft
| Modifier and Type | Field | Description |
|---|---|---|
protected double[] |
a0 |
|
protected Boundary |
boundary |
|
protected Vector |
dr |
|
protected Vector |
drtmp |
|
protected Vector[] |
gradient |
|
protected Vector |
Lxyz |
|
protected int[] |
nShells |
|
protected Potential2Soft |
p2Soft |
|
protected double |
rCut2 |
| Constructor | Description |
|---|---|
Potential2SoftSphericalLS(Space space,
double rCut,
double[] a0,
Potential2Soft p2Soft) |
| Modifier and Type | Method | Description |
|---|---|---|
double |
energy(IAtomList atoms) |
Returns the interaction energy between the given atoms.
|
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.
|
void |
setBox(Box box) |
Informs the potential of the box on which it acts.
|
double |
virial(IAtomList atoms) |
Virial of the pair as given by the du(double) method
|
nBodyprotected final Vector[] gradient
protected Boundary boundary
protected final int[] nShells
protected final double[] a0
protected final Potential2Soft p2Soft
protected final Vector Lxyz
protected final Vector dr
protected final Vector drtmp
protected final double rCut2
public Potential2SoftSphericalLS(Space space, double rCut, double[] a0, Potential2Soft p2Soft)
public double energy(IAtomList atoms)
Potentialenergy in interface IPotentialAtomicenergy in class Potentialpublic double virial(IAtomList atoms)
virial in interface PotentialSoftpublic Vector[] gradient(IAtomList atoms)
gradient in interface PotentialSoftpublic Vector[] gradient(IAtomList atoms, Tensor pressureTensor)
PotentialSoftgradient in interface PotentialSoftpublic double getRange()
getRange in interface IPotentialgetRange in class Potentialpublic void setBox(Box box)
PotentialsetBox in interface IPotentialsetBox in class Potential