IPotential, IPotentialAtomic, PotentialSoftpublic class P1HarmonicSite extends Potential1 implements PotentialSoft
Potential1.Intramolecular| Modifier and Type | Field | Description |
|---|---|---|
protected AtomLeafAgentManager<? extends Vector> |
atomAgentManager |
|
protected java.util.Map<Box,AtomLeafAgentManager<? extends Vector>> |
boxAgentManager |
boundary| Constructor | Description |
|---|---|
P1HarmonicSite(Space space) |
| Modifier and Type | Method | Description |
|---|---|---|
double |
energy(IAtomList a) |
Returns the interaction energy between the given atoms.
|
double |
getSpringConstant() |
|
Dimension |
getSpringConstantDimension() |
|
Vector[] |
gradient(IAtomList a) |
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(IAtomList a,
Tensor pressureTensor) |
Returns the same gradient as gradient(AtomSet) and also adds in the
contribution of the AtomSet to the pressureTensor.
|
void |
setAtomAgentManager(Box box,
AtomLeafAgentManager<? extends Vector> agentManager) |
|
void |
setBox(Box box) |
Informs the potential of the box on which it acts.
|
void |
setSpringConstant(double springConstant) |
|
double |
virial(IAtomList a) |
getRange, nBodyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRangeprotected final java.util.Map<Box,AtomLeafAgentManager<? extends Vector>> boxAgentManager
protected AtomLeafAgentManager<? extends Vector> atomAgentManager
public P1HarmonicSite(Space space)
public void setAtomAgentManager(Box box, AtomLeafAgentManager<? extends Vector> agentManager)
public void setBox(Box box)
PotentialsetBox in interface IPotentialsetBox in class Potential1public void setSpringConstant(double springConstant)
public double getSpringConstant()
public Dimension getSpringConstantDimension()
public double energy(IAtomList a)
Potentialenergy in interface IPotentialAtomicenergy in class Potentialpublic double virial(IAtomList a)
virial in interface PotentialSoftpublic Vector[] gradient(IAtomList a)
PotentialSoftgradient in interface PotentialSoftpublic Vector[] gradient(IAtomList a, Tensor pressureTensor)
PotentialSoftgradient in interface PotentialSoft