IPotential
, IPotentialAtomic
, PotentialSoft
public class PotentialEAM_LS extends PotentialN implements PotentialSoft
Modifier and Type | Field | Description |
---|---|---|
protected double |
a |
|
protected Vector[] |
a0 |
|
protected Boundary |
boundary |
|
protected double |
c |
|
protected CoordinateDefinition |
coordinateDefinition |
|
protected Vector |
dr |
|
protected Vector |
dR |
|
protected Vector |
drtmp |
|
protected Vector |
dRtmp |
|
protected double |
eps |
|
protected Vector[] |
gradient |
|
protected Vector |
Lxyz |
|
protected double |
m |
|
protected double |
n |
|
protected int[] |
nShells |
|
protected Vector |
R1 |
|
protected Vector |
R2 |
|
protected Vector |
R3 |
|
protected double |
rC1 |
|
protected double |
rC2 |
|
protected Vector[] |
rhograd |
|
protected double[][] |
secondder |
Constructor | Description |
---|---|
PotentialEAM_LS(CoordinateDefinition coordinateDefinition,
Space space,
double n,
double m,
double eps,
double a,
double c,
double rC,
Vector[] a0) |
Modifier and Type | Method | Description |
---|---|---|
double |
energy(IAtomList atoms) |
Returns the interaction energy between the given atoms.
|
double |
getRange() |
Returns the range over which the potential applies.
|
Vector[] |
gradient(IAtomList atoms) |
Returns the gradient of the potential as it applies to each atom in the
given AtomSet, indicating how the energy would change as the position of
the first atom is varied.
|
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.
|
void |
setRange(double rC) |
|
double |
virial(IAtomList atoms) |
nBody
protected double n
protected double m
protected double eps
protected double a
protected double c
protected double rC1
protected double rC2
protected Boundary boundary
protected final Vector dr
protected final Vector dR
protected Vector[] gradient
protected Vector[] rhograd
protected double[][] secondder
protected final Vector Lxyz
protected final Vector drtmp
protected final Vector dRtmp
protected final Vector R1
protected final Vector R2
protected final Vector R3
protected final int[] nShells
protected final Vector[] a0
protected final CoordinateDefinition coordinateDefinition
public PotentialEAM_LS(CoordinateDefinition coordinateDefinition, Space space, double n, double m, double eps, double a, double c, double rC, Vector[] a0)
public double getRange()
IPotential
getRange
in interface IPotential
getRange
in class Potential
public void setRange(double rC)
public double energy(IAtomList atoms)
Potential
energy
in interface IPotentialAtomic
energy
in class Potential
public void setBox(Box box)
Potential
setBox
in interface IPotential
setBox
in class Potential
public double virial(IAtomList atoms)
virial
in interface PotentialSoft
public Vector[] gradient(IAtomList atoms)
PotentialSoft
gradient
in interface PotentialSoft
public Vector[] gradient(IAtomList atoms, Tensor pressureTensor)
PotentialSoft
gradient
in interface PotentialSoft