IPotential
, IPotentialMolecular
P2Water4PSoft
, P2WaterTIP4P
public class P2Water4P extends PotentialMolecular
Modifier and Type | Field | Description |
---|---|---|
protected Boundary |
boundary |
|
protected double |
chargeH |
|
protected double |
chargeHH |
|
protected double |
chargeM |
|
protected double |
chargeMH |
|
protected double |
chargeMM |
|
protected Vector |
com1 |
|
protected Vector |
com2 |
|
protected double |
epsilon |
|
protected double |
epsilon4 |
|
protected IMoleculePositionDefinition |
positionDefinition |
|
protected double |
rCut |
|
protected Vector |
shift |
|
double |
sigma |
|
double |
sigma2 |
|
protected Vector |
work |
nBody, space
Constructor | Description |
---|---|
P2Water4P(Space space,
double sigma,
double epsilon,
double chargeH,
double rCut,
IMoleculePositionDefinition positionDefinition) |
Modifier and Type | Method | Description |
---|---|---|
double |
energy(IMoleculeList pair) |
Returns the interaction energy between the given molecules.
|
double |
getEpsilon() |
|
double |
getRange() |
Returns the range over which the potential applies.
|
double |
getSigma() |
|
void |
setBox(Box box) |
Informs the potential of the box on which it acts.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
nBody
public double sigma
public double sigma2
protected double epsilon
protected double epsilon4
protected Boundary boundary
protected final double chargeH
protected final double chargeM
protected final double chargeMM
protected final double chargeMH
protected final double chargeHH
protected final double rCut
protected final Vector work
protected final Vector shift
protected final Vector com1
protected final Vector com2
protected final IMoleculePositionDefinition positionDefinition
public P2Water4P(Space space, double sigma, double epsilon, double chargeH, double rCut, IMoleculePositionDefinition positionDefinition)
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 getRange()
IPotential
getRange
in interface IPotential
getRange
in class PotentialMolecular
public double getSigma()
public double getEpsilon()