IPotential, IPotentialMolecularP2Water4PSoft, P2WaterTIP4Ppublic 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, waitnBodypublic 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)
PotentialMolecularsetBox in interface IPotentialsetBox in class PotentialMolecularpublic double energy(IMoleculeList pair)
PotentialMolecularenergy in interface IPotentialMolecularenergy in class PotentialMolecularpublic double getRange()
IPotentialgetRange in interface IPotentialgetRange in class PotentialMolecularpublic double getSigma()
public double getEpsilon()