IPotential
, IPotentialAtomic
, PotentialSoft
public class P4BondTorsionAlkaneXCCH extends Potential implements PotentialSoft
Modifier and Type | Field | Description |
---|---|---|
protected double |
a0 |
|
protected double |
a1 |
|
protected double |
a2 |
|
protected double |
a3 |
|
protected Boundary |
boundary |
|
protected Vector |
dr21 |
|
protected Vector |
dr23 |
|
protected Vector |
dr34 |
|
protected Vector[] |
gradient |
|
protected Vector |
gtmp |
|
protected Vector |
v1 |
|
protected Vector |
v2 |
Constructor | Description |
---|---|
P4BondTorsionAlkaneXCCH(Space space,
double a0,
double a1,
double a2,
double a3) |
Modifier and Type | Method | Description |
---|---|---|
double |
energy(IAtomList atomSet) |
Returns the interaction energy between the given atoms.
|
double |
energyAtAngle(double cosphi) |
|
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.
|
double |
virial(IAtomList atoms) |
nBody
protected final Vector dr21
protected final Vector dr23
protected final Vector dr34
protected final Vector v1
protected final Vector v2
protected final Vector gtmp
protected Boundary boundary
protected double a0
protected double a1
protected double a2
protected double a3
protected final Vector[] gradient
public P4BondTorsionAlkaneXCCH(Space space, double a0, double a1, double a2, double a3)
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 energyAtAngle(double cosphi)
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)