IPotential, IPotentialAtomic, PotentialSoftPotential2SoftSphericalLSMultiLatSlantypublic class Potential2SoftSphericalLSMultiLat extends Potential2 implements PotentialSoft
| Modifier and Type | Class | Description |
|---|---|---|
class |
Potential2SoftSphericalLSMultiLat.ReturnValue |
| Modifier and Type | Field | Description |
|---|---|---|
protected double[] |
a0 |
|
protected Boundary |
boundary |
|
protected CoordinateDefinition |
coordinateDefinition |
|
protected Vector |
dr |
|
protected Vector |
dr0 |
|
protected Vector |
drA |
|
protected Vector |
drLat |
|
protected Vector |
drLatTmp |
|
protected Vector |
drTmp |
|
protected Vector[] |
gradient |
|
protected Vector |
Lxyz |
|
protected int[] |
nShells |
|
protected Potential2Soft |
p2Soft |
|
protected Vector |
pTmp1 |
|
protected double[] |
rCut2 |
|
protected double |
rCutMax |
|
protected Potential2SoftSphericalLSMultiLat.ReturnValue |
rv |
| Constructor | Description |
|---|---|
Potential2SoftSphericalLSMultiLat(Space space,
double[] rCut,
Potential2Soft p2Soft,
CoordinateDefinition coordinateDefinition) |
| Modifier and Type | Method | Description |
|---|---|---|
double |
energy(IAtomList atoms) |
Returns the interaction energy between the given atoms.
|
Potential2SoftSphericalLSMultiLat.ReturnValue |
energyVirialCut(IAtomList 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 Vector drLat
protected final Vector drA
protected final Vector drLatTmp
protected final Vector dr0
protected final Vector pTmp1
protected final double[] rCut2
protected final double rCutMax
protected final CoordinateDefinition coordinateDefinition
protected final Potential2SoftSphericalLSMultiLat.ReturnValue rv
public Potential2SoftSphericalLSMultiLat(Space space, double[] rCut, Potential2Soft p2Soft, CoordinateDefinition coordinateDefinition)
public double energy(IAtomList atoms)
Potentialenergy in interface IPotentialAtomicenergy in class Potentialpublic Potential2SoftSphericalLSMultiLat.ReturnValue energyVirialCut(IAtomList atoms)
public 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