IPotential
, IPotentialAtomic
, PotentialSoft
public 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) |
nBody
protected 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)
Potential
setBox
in interface IPotential
setBox
in class Potential
public double energy(IAtomList atomSet)
Potential
energy
in interface IPotentialAtomic
energy
in class Potential
public 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()
IPotential
getRange
in interface IPotential
getRange
in class Potential
public Vector[] gradient(IAtomList atoms)
PotentialSoft
gradient
in interface PotentialSoft
public Vector[] gradient(IAtomList atoms, Tensor pressureTensor)
PotentialSoft
gradient
in interface PotentialSoft
public double virial(IAtomList atoms)
virial
in interface PotentialSoft
public static void main(java.lang.String[] args)