IPotential, IPotentialAtomic, IPotentialAtomicMultibody, PotentialSoftpublic class P3CPSNonAdditiveHeLessSimplified extends Potential implements PotentialSoft, IPotentialAtomicMultibody
| Modifier and Type | Field | Description |
|---|---|---|
protected double[][][] |
A |
|
protected double[][][] |
alpha |
|
protected double |
beta3_111 |
|
protected double[][][][] |
beta4211 |
|
protected double[][][][] |
beta4220 |
|
static boolean |
bigAngle |
|
protected Boundary |
boundary |
|
protected double[][] |
cos1m2ThetaDiff |
|
protected double[][] |
cos2ThetaDiff |
|
protected double[][] |
cosNTheta |
|
protected double[][] |
cosThetaDiff |
|
protected double[][] |
cosThetaSum |
|
protected Vector |
drAB |
|
protected Vector |
drAC |
|
protected Vector |
drBC |
|
protected Vector[] |
gradient |
|
double[] |
params |
|
protected double[][] |
Rpow |
|
protected double[] |
sinTheta |
|
boolean |
verbose |
|
protected double[][][] |
Z3 |
|
protected static double |
Z3_111 |
|
protected double[][][][] |
Z4211 |
|
protected double[][][][] |
Z4220 |
| Constructor | Description |
|---|---|
P3CPSNonAdditiveHeLessSimplified(Space space) |
| Modifier and Type | Method | Description |
|---|---|---|
double |
energy(double[] r2) |
Returns the energy for a configuration of atoms having the given pair
separations (squared distances).
|
protected double |
energy(double RAB,
double RAC,
double RBC,
double costhetaA,
double costhetaB,
double costhetaC) |
|
double |
energy(IAtomList atomSet) |
Returns the interaction energy between the given atoms.
|
double |
getD(double beta,
double RXY,
int nXY) |
|
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 |
setBox(Box box) |
Informs the potential of the box on which it acts.
|
void |
setNullRegionMethod(int nullRegionMethod) |
|
void |
setParameters(java.lang.String file) |
|
double |
virial(IAtomList atoms) |
nBodypublic double[] params
protected final Vector drAB
protected final Vector drAC
protected final Vector drBC
protected Boundary boundary
protected final Vector[] gradient
public static boolean bigAngle
protected final double[][][] alpha
protected final double[][][] A
protected double beta3_111
protected final double[][][] Z3
protected final double[][][][] beta4220
protected final double[][][][] Z4220
protected final double[][][][] beta4211
protected final double[][][][] Z4211
protected final double[][] Rpow
protected final double[][] cosNTheta
protected final double[] sinTheta
protected final double[][] cosThetaDiff
protected final double[][] cos2ThetaDiff
protected final double[][] cos1m2ThetaDiff
protected final double[][] cosThetaSum
protected static final double Z3_111
public boolean verbose
public P3CPSNonAdditiveHeLessSimplified(Space space)
public void setBox(Box box)
PotentialsetBox in interface IPotentialsetBox in class Potentialpublic void setNullRegionMethod(int nullRegionMethod)
public double energy(IAtomList atomSet)
Potentialenergy in interface IPotentialAtomicenergy in class Potentialpublic double energy(double[] r2)
IPotentialAtomicMultibodyenergy in interface IPotentialAtomicMultibodyprotected double energy(double RAB,
double RAC,
double RBC,
double costhetaA,
double costhetaB,
double costhetaC)
public double getD(double beta,
double RXY,
int nXY)
public double legendreP(int i,
double x)
public void setParameters(java.lang.String file)
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)