IPotential, IPotentialAtomic, IPotentialAtomicMultibody, PotentialSoftpublic class P3CPSNonAdditiveHeSimplified extends Potential implements PotentialSoft, IPotentialAtomicMultibody
| Modifier and Type | Field | Description |
|---|---|---|
protected double |
A |
|
protected double |
alpha |
|
protected double |
b |
|
protected double |
B |
|
static boolean |
bigAngle |
|
protected Boundary |
boundary |
|
protected Vector |
drAB |
|
protected Vector |
drAC |
|
protected Vector |
drBC |
|
protected double |
exitflag |
|
protected double |
fval |
|
protected Vector[] |
gradient |
|
double[] |
params |
|
protected double[][] |
Rpow |
|
boolean |
verbose |
|
protected double |
Z |
| Constructor | Description |
|---|---|
P3CPSNonAdditiveHeSimplified(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 |
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.
|
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(double temperatureK) |
|
void |
setParameters(java.lang.String file) |
|
double |
virial(IAtomList atoms) |
nBodyprotected final Vector drAB
protected final Vector drAC
protected final Vector drBC
protected Boundary boundary
protected final Vector[] gradient
public static boolean bigAngle
protected double A
protected double alpha
protected double Z
protected double B
protected double b
protected final double[][] Rpow
protected double exitflag
protected double fval
public double[] params
public boolean verbose
public P3CPSNonAdditiveHeSimplified(Space space)
public void setBox(Box box)
PotentialsetBox in interface IPotentialsetBox in class Potentialpublic void setNullRegionMethod(int nullRegionMethod)
public void setParameters(double temperatureK)
public void setParameters(java.lang.String file)
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 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)