IPotential
, IPotentialMolecular
, PotentialMolecularSoft
public class P2NitrogenShellModel extends PotentialMolecular implements PotentialMolecularSoft
Modifier and Type | Field | Description |
---|---|---|
protected double |
alpha1 |
|
protected double |
alpha2 |
|
protected Boundary |
boundary |
|
protected double |
chargeC |
|
protected double |
chargeCC |
|
protected double |
chargeCN |
|
protected double |
chargeCP |
|
protected double |
chargeN |
|
protected double |
chargeNN |
|
protected double |
chargeNP |
|
protected double |
chargeP |
|
protected double |
chargePP |
|
protected double |
delta1 |
|
protected double |
delta2 |
|
protected double |
epsilon1 |
|
protected double |
epsilon2 |
|
protected Vector[] |
gradient |
|
protected double |
r2 |
|
protected double |
rC |
|
protected Vector |
shift |
|
protected Vector |
work |
nBody, space
Constructor | Description |
---|---|
P2NitrogenShellModel(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 pair,
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 Boundary boundary
protected final double chargeC
protected final double chargeN
protected final double chargeP
protected final double chargeCC
protected final double chargeCN
protected final double chargeCP
protected final double chargeNN
protected final double chargeNP
protected final double chargePP
protected final double alpha1
protected final double alpha2
protected final double epsilon1
protected final double epsilon2
protected final double delta1
protected final double delta2
protected double rC
protected double r2
protected final Vector work
protected final Vector shift
protected final Vector[] gradient
public P2NitrogenShellModel(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 pair, Tensor pressureTensor)
PotentialMolecularSoft
gradient
in interface PotentialMolecularSoft
public double getRange()
IPotential
getRange
in interface IPotential
getRange
in class PotentialMolecular