IPotential, IPotentialAtomic, PotentialSoftpublic class PotentialEFS 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 |
rCc |
|
protected double |
rCd |
|
protected Vector[] |
rhograd |
|
protected double[][] |
secondder |
| Constructor | Description |
|---|---|
PotentialEFS(Space space,
double A,
double B,
double c,
double d,
double c0,
double c1,
double c2,
double c3,
double c4) |
| 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 rC) |
|
double |
virial(IAtomList atoms) |
nBodyprotected double rCc
protected double c0
protected double c1
protected double c2
protected double c3
protected double c4
protected double A
protected double rCd
protected double B
protected Vector dr
protected Vector drij
protected Vector drik
protected Vector drjk
protected Boundary boundary
protected Vector[] gradient
protected Vector[] rhograd
protected double[][] secondder
public PotentialEFS(Space space, double A, double B, double c, double d, double c0, double c1, double c2, double c3, double c4)
public double getRange()
IPotentialgetRange in interface IPotentialgetRange in class Potentialpublic void setRange(double rC)
public double energy(IAtomList atoms)
Potentialenergy in interface IPotentialAtomicenergy in class Potentialpublic void setBox(Box box)
PotentialsetBox in interface IPotentialsetBox in class Potentialpublic double virial(IAtomList atoms)
virial in interface PotentialSoftpublic Vector[] gradient(IAtomList atoms)
PotentialSoftgradient in interface PotentialSoftpublic Vector[] gradient(IAtomList atoms, Tensor pressureTensor)
PotentialSoftgradient in interface PotentialSoftpublic double[][] secondder(IAtomList atoms)