IPotential, IPotentialAtomic, PotentialSoftpublic class P3CPSNonAdditiveHeOrig extends Potential implements PotentialSoft
| Modifier and Type | Field | Description |
|---|---|---|
protected double[][][] |
A |
|
protected double[][][] |
alpha |
|
protected double |
angle |
|
protected double[][][] |
beta3 |
|
protected double[][][][] |
beta4211 |
|
protected double[][][][] |
beta4220 |
|
static boolean |
bigAngle |
|
protected Boundary |
boundary |
|
protected Vector |
drAB |
|
protected Vector |
drAC |
|
protected Vector |
drBC |
|
protected double |
epsilon |
|
protected Vector[] |
gradient |
|
boolean |
verbose |
|
protected double[][][] |
Z3 |
|
protected double[][][][] |
Z4211 |
|
protected double[][][][] |
Z4220 |
| Constructor | Description |
|---|---|
P3CPSNonAdditiveHeOrig(Space space) |
| Modifier and Type | Method | Description |
|---|---|---|
double |
energy(IAtomList atomSet) |
Returns the interaction energy between the given atoms.
|
double |
getAngle() |
Returns the nominal bond angle (in radians)
|
Dimension |
getAngleDimension() |
|
double |
getD(double beta,
double RXY,
double nXY) |
|
double |
getEpsilon() |
Returns the characteristic energy of the potential
|
Dimension |
getEpsilonDimension() |
|
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 |
legendreP(int i,
double x) |
|
static void |
main(java.lang.String[] args) |
|
void |
setA() |
|
void |
setAlpha() |
|
void |
setAngle(double newAngle) |
Sets the nominal bond angle (in radians)
|
void |
setBeta3() |
|
void |
setBeta4211() |
|
void |
setBeta4220() |
|
void |
setBox(Box box) |
Informs the potential of the box on which it acts.
|
void |
setEpsilon(double newEpsilon) |
Sets the characteristic energy of the potential
|
void |
setZ3() |
|
void |
setZ4211() |
|
void |
setZ4220() |
|
double |
virial(IAtomList atoms) |
nBodyprotected final Vector drAB
protected final Vector drAC
protected final Vector drBC
protected Boundary boundary
protected double angle
protected double epsilon
protected final Vector[] gradient
public static boolean bigAngle
protected double[][][] alpha
protected double[][][] A
protected double[][][] beta3
protected double[][][] Z3
protected double[][][][] beta4220
protected double[][][][] Z4220
protected double[][][][] beta4211
protected double[][][][] Z4211
public boolean verbose
public P3CPSNonAdditiveHeOrig(Space space)
public void setBox(Box box)
PotentialsetBox in interface IPotentialsetBox in class Potentialpublic double energy(IAtomList atomSet)
Potentialenergy in interface IPotentialAtomicenergy in class Potentialpublic double getD(double beta,
double RXY,
double nXY)
public double legendreP(int i,
double x)
public void setAlpha()
public void setA()
public void setBeta3()
public void setZ3()
public void setBeta4211()
public void setZ4211()
public void setBeta4220()
public void setZ4220()
public void setAngle(double newAngle)
public double getAngle()
public Dimension getAngleDimension()
public void setEpsilon(double newEpsilon)
public double getEpsilon()
public Dimension getEpsilonDimension()
public double getRange()
IPotentialgetRange in interface IPotentialgetRange in class Potentialpublic Vector[] gradient(IAtomList atoms)
PotentialSoftgradient in interface PotentialSoftpublic Vector[] gradient(IAtomList atoms, Tensor pressureTensor)
PotentialSoftgradient in interface PotentialSoftpublic double virial(IAtomList atoms)
virial in interface PotentialSoftpublic static void main(java.lang.String[] args)