IPotential
, IPotentialAtomic
, PotentialSoft
public 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) |
nBody
protected 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 PotentialSoft
public Vector[] gradient(IAtomList atomSet, Tensor pressureTensor)
PotentialSoft
gradient
in interface PotentialSoft
public Vector[] gradient(IAtomList atoms)
PotentialSoft
gradient
in interface PotentialSoft
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 void setAngle(double newAngle)
public double getAngle()
public void setGamma(double newGamma)
public double getGamma()
public double getRange()
IPotential
getRange
in interface IPotential
getRange
in class Potential