IPotential
, IPotentialAtomic
, PotentialSoft
Potential2SoftSphericalLSMultiLatSlanty
public 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
|
nBody
protected 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)
Potential
energy
in interface IPotentialAtomic
energy
in class Potential
public Potential2SoftSphericalLSMultiLat.ReturnValue energyVirialCut(IAtomList atoms)
public double virial(IAtomList atoms)
virial
in interface PotentialSoft
public Vector[] gradient(IAtomList atoms)
gradient
in interface PotentialSoft
public Vector[] gradient(IAtomList atoms, Tensor pressureTensor)
PotentialSoft
gradient
in interface PotentialSoft
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