IPotential
, IPotentialMolecular
, IPotentialMolecularTorque
, PotentialMolecularSoft
public 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) |
nBody
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
nBody
protected 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()
IPotential
getRange
in interface IPotential
getRange
in class PotentialMolecular
public void setRange(double newRange)
public double getDielectric()
public void setDielectric(double newDielectric)
public void setBox(Box box)
PotentialMolecular
setBox
in interface IPotential
setBox
in class PotentialMolecular
public void setCutoffRatio(double newCutoffRatio)
public double energy(IMoleculeList atoms)
PotentialMolecular
energy
in interface IPotentialMolecular
energy
in class PotentialMolecular
public Vector[][] gradientAndTorque(IMoleculeList atoms)
gradientAndTorque
in interface IPotentialMolecularTorque
public Vector[] gradient(IMoleculeList atoms)
PotentialMolecularSoft
gradient
in interface PotentialMolecularSoft
public Vector[] gradient(IMoleculeList atoms, Tensor pressureTensor)
PotentialMolecularSoft
gradient
in interface PotentialMolecularSoft
public double virial(IMoleculeList atoms)
virial
in interface PotentialMolecularSoft
public IPotentialMolecular makeP0()