IPotential, IPotentialMolecular, IPotentialMolecularTorque, PotentialMolecularSoftpublic class P2ReactionFieldDipoleTruncated extends PotentialMolecular implements PotentialMolecularSoft, IPotentialMolecularTorque
| Modifier and Type | Class | Description |
|---|---|---|
static class |
P2ReactionFieldDipoleTruncated.P0ReactionField |
A 0-body potential that should be added along with this potential.
|
| Modifier and Type | Field | Description |
|---|---|---|
protected Boundary |
boundary |
|
protected Vector |
cavityDipole |
|
protected double |
cutoff |
|
protected double |
cutoff2 |
|
protected double |
cutoffRatio |
|
protected DipoleSource |
dipoleSource |
|
protected Vector |
dr |
|
protected double |
epsilon |
|
protected double |
fac |
|
protected Vector[][] |
gradientAndTorque |
|
protected Vector |
iDipole |
|
protected IMoleculePositionDefinition |
positionDefinition |
nBody, space| Constructor | Description |
|---|---|
P2ReactionFieldDipoleTruncated(Space space,
IMoleculePositionDefinition positionDefinition) |
| Modifier and Type | Method | Description |
|---|---|---|
double |
energy(IMoleculeList atoms) |
Returns the interaction energy between the given molecules.
|
double |
getDielectric() |
Returns the dielectric constant of the fluid surrounding the cavity.
|
DipoleSource |
getDipoleSource() |
Returns the dipole source used by this object.
|
double |
getRange() |
Returns the range over which the potential applies.
|
Vector[] |
gradient(IMoleculeList atoms) |
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 atoms) |
|
IPotentialMolecular |
makeP0() |
Returns a 0-body potential that should be added along with this
potential.
|
void |
setBox(Box box) |
Informs the potential of the box on which it acts.
|
void |
setCutoffRatio(double newCutoffRatio) |
|
void |
setDielectric(double newDielectric) |
Sets the dielectric constant of the fluid surrounding the cavity.
|
void |
setDipoleSource(DipoleSource newDipoleSource) |
Sets the dipole source used by this object should use.
|
void |
setRange(double newRange) |
|
double |
virial(IMoleculeList atoms) |
nBodyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnBodyprotected final Vector iDipole
protected final Vector cavityDipole
protected final Vector dr
protected DipoleSource dipoleSource
protected Boundary boundary
protected double cutoff2
protected double cutoff
protected double epsilon
protected final Vector[][] gradientAndTorque
protected double fac
protected double cutoffRatio
protected final IMoleculePositionDefinition positionDefinition
public P2ReactionFieldDipoleTruncated(Space space, IMoleculePositionDefinition positionDefinition)
public DipoleSource getDipoleSource()
public void setDipoleSource(DipoleSource newDipoleSource)
public double getRange()
IPotentialgetRange in interface IPotentialgetRange in class PotentialMolecularpublic void setRange(double newRange)
public double getDielectric()
public void setDielectric(double newDielectric)
public void setBox(Box box)
PotentialMolecularsetBox in interface IPotentialsetBox in class PotentialMolecularpublic void setCutoffRatio(double newCutoffRatio)
public double energy(IMoleculeList atoms)
PotentialMolecularenergy in interface IPotentialMolecularenergy in class PotentialMolecularpublic Vector[][] gradientAndTorque(IMoleculeList atoms)
gradientAndTorque in interface IPotentialMolecularTorquepublic Vector[] gradient(IMoleculeList atoms)
PotentialMolecularSoftgradient in interface PotentialMolecularSoftpublic Vector[] gradient(IMoleculeList atoms, Tensor pressureTensor)
PotentialMolecularSoftgradient in interface PotentialMolecularSoftpublic double virial(IMoleculeList atoms)
virial in interface PotentialMolecularSoftpublic IPotentialMolecular makeP0()