IPotential, IPotentialAtomic, PotentialSoftpublic class P1SoftBoundary extends Potential1 implements PotentialSoft
Potential1.Intramolecularboundary| Constructor | Description |
|---|---|
P1SoftBoundary(Space space) |
|
P1SoftBoundary(Space space,
double radius) |
| Modifier and Type | Method | Description |
|---|---|---|
double |
energy(IAtomList a) |
Returns the interaction energy between the given atoms.
|
double |
getRadius() |
Returns the radius.
|
Dimension |
getRadiusDimension() |
|
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 |
setRadius(double radius) |
Sets the radius.
|
double |
virial(IAtomList atoms) |
getRange, nBody, setBoxclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRange, setBoxpublic P1SoftBoundary(Space space)
public P1SoftBoundary(Space space, double radius)
public double energy(IAtomList a)
Potentialenergy in interface IPotentialAtomicenergy in class Potentialpublic Vector[] gradient(IAtomList a)
PotentialSoftgradient in interface PotentialSoftpublic Vector[] gradient(IAtomList a, Tensor pressureTensor)
PotentialSoftgradient in interface PotentialSoftpublic double virial(IAtomList atoms)
virial in interface PotentialSoftpublic double getRadius()
public void setRadius(double radius)
radius - The radius to setpublic Dimension getRadiusDimension()