IPotential, IPotentialAtomic, PotentialSoftP4BondTorsionOPLSpublic class P4BondTorsion 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 |
|---|---|
P4BondTorsion(Space space,
double a0,
double a1,
double a2,
double a3) |
| Modifier and Type | Method | Description |
|---|---|---|
double |
dUdcosphi(double cosphi) |
|
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) |
nBodyprotected 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 P4BondTorsion(Space space, double a0, double a1, double a2, double a3)
public void setBox(Box box)
PotentialsetBox in interface IPotentialsetBox in class Potentialpublic double energy(IAtomList atomSet)
Potentialenergy in interface IPotentialAtomicenergy in class Potentialpublic double energyAtAngle(double cosphi)
public double getRange()
IPotentialgetRange in interface IPotentialgetRange in class Potentialpublic Vector[] gradient(IAtomList atoms)
PotentialSoftgradient in interface PotentialSoftpublic double dUdcosphi(double cosphi)
public 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)