IPotential, IPotentialAtomic, PotentialSoftpublic class P3BondAngleDreiding extends Potential implements PotentialSoft
| Modifier and Type | Field | Description |
|---|---|---|
protected Boundary |
boundary |
|
protected Vector |
dr12 |
|
protected Vector |
dr23 |
|
protected Vector[] |
gradient |
| Constructor | Description |
|---|---|
P3BondAngleDreiding(Space space,
double thetaEq,
double gamma) |
| Modifier and Type | Method | Description |
|---|---|---|
double |
energy(IAtomList atomSet) |
Returns the interaction energy between the given atoms.
|
double |
getAngle() |
Returns the nominal bond angle (in radians)
|
double |
getGamma() |
Returns the characteristic energy of the potential
|
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 atomSet,
Tensor pressureTensor) |
Returns the same gradient as gradient(AtomSet) and also adds in the
contribution of the AtomSet to the pressureTensor.
|
void |
setAngle(double newAngle) |
Sets the nominal bond angle (in radians)
|
void |
setBox(Box box) |
Informs the potential of the box on which it acts.
|
void |
setGamma(double newGamma) |
Sets the characteristic energy of the potential
|
double |
virial(IAtomList atomSet) |
nBodyprotected final Vector dr12
protected final Vector dr23
protected final Vector[] gradient
protected Boundary boundary
public P3BondAngleDreiding(Space space, double thetaEq, double gamma)
public double virial(IAtomList atomSet)
virial in interface PotentialSoftpublic Vector[] gradient(IAtomList atomSet, Tensor pressureTensor)
PotentialSoftgradient in interface PotentialSoftpublic Vector[] gradient(IAtomList atoms)
PotentialSoftgradient in interface PotentialSoftpublic void setBox(Box box)
PotentialsetBox in interface IPotentialsetBox in class Potentialpublic double energy(IAtomList atomSet)
Potentialenergy in interface IPotentialAtomicenergy in class Potentialpublic void setAngle(double newAngle)
public double getAngle()
public void setGamma(double newGamma)
public double getGamma()
public double getRange()
IPotentialgetRange in interface IPotentialgetRange in class Potential