IPotential
, IPotentialMolecular
, PotentialMolecularSoft
public class P2NitrogenAB extends PotentialMolecular implements PotentialMolecularSoft
Modifier and Type | Field | Description |
---|---|---|
protected double |
A1 |
|
protected double |
A2 |
|
protected double |
alpha1 |
|
protected double |
alpha2 |
|
protected double |
B1 |
|
protected Boundary |
boundary |
|
protected double[] |
C |
|
protected double |
chargeP1 |
|
protected double |
chargeP1P1 |
|
protected double |
chargeP1P2 |
|
protected double |
chargeP2 |
|
protected double |
chargeP2P2 |
|
protected Vector |
com1 |
|
protected Vector |
com2 |
|
protected Vector[] |
gradient |
|
protected double |
R0 |
|
protected double |
R1 |
|
double |
r2 |
|
double |
rC |
|
protected Vector |
shift |
|
protected Vector |
work |
nBody, space
Constructor | Description |
---|---|
P2NitrogenAB(Space space,
double rC) |
Modifier and Type | Method | Description |
---|---|---|
double |
energy(IMoleculeList pair) |
Returns the interaction energy between the given molecules.
|
double |
getRange() |
Returns the range over which the potential applies.
|
Vector[] |
gradient(IMoleculeList pair) |
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(IMoleculeList atoms,
Tensor pressureTensor) |
Returns the same gradient as gradient(IMoleculeList) and also adds in
the contribution of the molecules to the pressureTensor.
|
void |
setBox(Box box) |
Informs the potential of the box on which it acts.
|
double |
virial(IMoleculeList pair) |
nBody
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
nBody
protected Vector[] gradient
protected Boundary boundary
protected final double chargeP1
protected final double chargeP2
protected final double chargeP1P1
protected final double chargeP1P2
protected final double chargeP2P2
protected final double A1
protected final double alpha1
protected final double B1
protected final double A2
protected final double alpha2
protected final double R0
protected final double R1
protected double[] C
protected final Vector work
protected final Vector shift
protected final Vector com1
protected final Vector com2
public double rC
public double r2
public P2NitrogenAB(Space space, double rC)
public void setBox(Box box)
PotentialMolecular
setBox
in interface IPotential
setBox
in class PotentialMolecular
public double energy(IMoleculeList pair)
PotentialMolecular
energy
in interface IPotentialMolecular
energy
in class PotentialMolecular
public double virial(IMoleculeList pair)
virial
in interface PotentialMolecularSoft
public Vector[] gradient(IMoleculeList pair)
PotentialMolecularSoft
gradient
in interface PotentialMolecularSoft
public Vector[] gradient(IMoleculeList atoms, Tensor pressureTensor)
PotentialMolecularSoft
gradient
in interface PotentialMolecularSoft
public double getRange()
IPotential
getRange
in interface IPotential
getRange
in class PotentialMolecular