IPotential
, IPotentialAtomic
, PotentialSoft
public class PotentialCuLREP extends PotentialN implements PotentialSoft
Modifier and Type | Field | Description |
---|---|---|
protected double |
A |
|
protected double |
B |
|
protected Boundary |
boundary |
|
protected double |
c0 |
|
protected double |
c1 |
|
protected double |
c2 |
|
protected double |
c3 |
|
protected double |
c4 |
|
protected Vector |
dr |
|
protected Vector |
drij |
|
protected Vector |
drik |
|
protected Vector |
drjk |
|
protected Vector[] |
gradient |
|
protected double |
mLREP |
|
protected double |
nLREP |
|
protected double |
r0 |
|
protected double |
rC1 |
|
protected double |
rC2 |
|
protected Vector[] |
rhograd |
|
protected double[][] |
secondder |
|
protected int |
test |
Constructor | Description |
---|---|
PotentialCuLREP(Space space) |
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.
|
double[][] |
secondder(IAtomList atoms) |
|
void |
setBox(Box box) |
Informs the potential of the box on which it acts.
|
void |
setRange(double rC1,
double rC2) |
|
double |
virial(IAtomList atoms) |
nBody
protected double c0
protected double c1
protected double c2
protected double c3
protected double c4
protected double mLREP
protected double nLREP
protected double A
protected double rC1
protected double rC2
protected double B
protected double r0
protected Vector dr
protected Vector drij
protected Vector drik
protected Vector drjk
protected Boundary boundary
protected Vector[] gradient
protected Vector[] rhograd
protected double[][] secondder
protected int test
public PotentialCuLREP(Space space)
public double getRange()
IPotential
getRange
in interface IPotential
getRange
in class Potential
public void setRange(double rC1, double rC2)
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
public double[][] secondder(IAtomList atoms)