IPotential
, IPotentialAtomic
, PotentialSoft
public class Potential2SoftSphericalLSMulti 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 |
|
protected double |
rCutMax |
|
protected double[][] |
sums |
Constructor | Description |
---|---|
Potential2SoftSphericalLSMulti(Space space,
double[] rCut,
Potential2Soft p2Soft) |
Modifier and Type | Method | Description |
---|---|---|
double |
energy(IAtomList atoms) |
Returns the interaction energy between the given atoms.
|
double[][] |
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 double[] rCut2
protected final double rCutMax
protected final double[][] sums
public Potential2SoftSphericalLSMulti(Space space, double[] rCut, Potential2Soft p2Soft)
public double energy(IAtomList atoms)
Potential
energy
in interface IPotentialAtomic
energy
in class Potential
public double[][] 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