IPotential
, IPotentialMolecular
, IPotentialMolecularTorque
, PotentialMolecularSoft
public class P2Nitrogen extends PotentialMolecular implements IPotentialMolecularTorque
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 |
dr1 |
|
protected Vector |
dr2 |
|
protected Vector |
duWork |
|
protected boolean |
enablePBC |
|
protected Vector[] |
gradient |
|
protected Vector[][] |
gradientAndTorque |
|
protected Tensor |
identity |
|
protected double[][] |
q |
|
protected double |
R0 |
|
protected double |
R1 |
|
protected double |
r2 |
|
protected double |
rC |
|
protected Vector[][] |
secDerXr |
|
protected Vector |
shift |
|
protected DataTensor |
tensorWork |
|
protected Vector[] |
torque |
|
protected Vector |
tWork |
|
protected Vector |
vectorR |
|
protected Vector |
work |
|
protected double[][] |
workdTorq |
|
protected Vector[] |
workTorqVec |
|
protected Vector[] |
workVec |
nBody, space
Constructor | Description |
---|---|
P2Nitrogen(Space space,
double rC) |
Modifier and Type | Method | Description |
---|---|---|
protected void |
doGradientNoShift(Vector v1,
Vector v2,
double cc) |
|
protected void |
doGradientShift(Vector v1,
Vector v2,
double cc) |
|
void |
doSecDerXrNoShift(Vector v1,
Vector v2,
double cc) |
|
void |
doSecDerXrRotRotNoShift(Vector v1,
Vector v2,
double cc) |
|
void |
doSecDerXrRotRotWShift(Vector v1,
Vector v2,
double cc) |
|
void |
doSecDerXrWShift(Vector v1,
Vector v2,
double cc) |
|
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.
|
Vector[][] |
gradientAndTorque(IMoleculeList pair) |
|
boolean |
isEnablePBC() |
|
DataTensor |
secondDerivative(IMoleculeList pair) |
|
Vector[][] |
secondDerivativeXr(IMoleculeList pair) |
|
Tensor |
secondDerivativeXrRotRot(IMoleculeList pair) |
|
void |
setBox(Box box) |
Informs the potential of the box on which it acts.
|
void |
setEnablePBC(boolean enablePBC) |
|
void |
setRange(double rC) |
|
double |
virial(IMoleculeList pair) |
nBody
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
nBody
protected final Vector[] gradient
protected final Vector[] torque
protected final Vector[] workVec
protected final Vector[] workTorqVec
protected final double[][] workdTorq
protected final double[][] q
protected final Vector[][] gradientAndTorque
protected final Vector[][] secDerXr
protected Boundary boundary
protected DataTensor tensorWork
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 duWork
protected final Vector tWork
protected final Vector dr1
protected final Vector dr2
protected final Vector com1
protected final Vector com2
protected final Vector vectorR
protected double rC
protected double r2
protected boolean enablePBC
protected final Tensor identity
public P2Nitrogen(Space space, double rC)
public void setRange(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[][] gradientAndTorque(IMoleculeList pair)
gradientAndTorque
in interface IPotentialMolecularTorque
public DataTensor secondDerivative(IMoleculeList pair)
public Vector[][] secondDerivativeXr(IMoleculeList pair)
public Tensor secondDerivativeXrRotRot(IMoleculeList pair)
public Vector[] gradient(IMoleculeList atoms, Tensor pressureTensor)
PotentialMolecularSoft
gradient
in interface PotentialMolecularSoft
public boolean isEnablePBC()
public void setEnablePBC(boolean enablePBC)
public double getRange()
IPotential
getRange
in interface IPotential
getRange
in class PotentialMolecular