IPotential
, IPotentialAtomic
, IPotentialAtomicMultibody
, PotentialSoft
public 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) |
nBody
protected 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)
Potential
setBox
in interface IPotential
setBox
in class Potential
public void setNullRegionMethod(int nullRegionMethod)
public void setParameters(double temperatureK)
public void setParameters(java.lang.String file)
public double energy(IAtomList atomSet)
Potential
energy
in interface IPotentialAtomic
energy
in class Potential
public double energy(double[] r2)
IPotentialAtomicMultibody
energy
in interface IPotentialAtomicMultibody
protected double energy(double RAB, double RAC, double RBC, double costhetaA, double costhetaB, double costhetaC)
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)