IPotential
, IPotentialAtomic
public class P2WaterSzalewicz.P2H2OSC extends java.lang.Object implements IPotentialAtomic
Modifier and Type | Field | Description |
---|---|---|
double[][] |
d2tot |
|
protected Vector |
drij |
|
protected Vector |
drijRot |
|
protected double[] |
drvDamp |
|
protected double |
fac |
|
protected Vector[][] |
gi |
|
protected Tensor |
identity |
|
protected Tensor |
ijRTensor |
|
protected Tensor |
ijTensor |
|
protected Vector |
moment |
|
protected Vector |
ri |
|
protected Vector |
rj |
|
protected Tensor[] |
rot |
|
protected Tensor |
rr0Tensor |
|
protected Tensor |
rr1Tensor |
|
protected Tensor |
rTensor0 |
|
protected Tensor |
rTensor1 |
|
protected double |
temperature |
|
protected Tensor |
tt0Tensor |
|
protected Tensor |
tt1Tensor |
Constructor | Description |
---|---|
P2H2OSC(double temperature) |
Modifier and Type | Method | Description |
---|---|---|
protected double[] |
ddamp(int n,
double beta,
double r) |
|
double |
energy(IAtomList atoms) |
Returns the interaction energy between the given atoms.
|
double |
getRange() |
Returns the range over which the potential applies.
|
int |
nBody() |
The number of atoms on which the potential depends.
|
void |
setBox(Box box) |
Informs the potential of the box on which it acts so that it can
properly consider the boundaries.
|
protected final double[] drvDamp
protected final Vector[][] gi
protected final Tensor tt0Tensor
protected final Tensor tt1Tensor
protected final Tensor rr0Tensor
protected final Tensor rr1Tensor
protected final Tensor ijTensor
protected final Tensor rTensor0
protected final Tensor rTensor1
protected final Tensor identity
protected final Tensor ijRTensor
protected final Tensor[] rot
protected final Vector drijRot
public double[][] d2tot
protected final double temperature
protected final double fac
protected final Vector drij
protected final Vector moment
protected final Vector ri
protected final Vector rj
public double getRange()
IPotential
getRange
in interface IPotential
public void setBox(Box box)
IPotential
setBox
in interface IPotential
public int nBody()
IPotential
nBody
in interface IPotential
public double energy(IAtomList atoms)
IPotentialAtomic
energy
in interface IPotentialAtomic
protected double[] ddamp(int n, double beta, double r)