IPotential, IPotentialAtomic, PotentialSoftpublic class P1Wall extends Potential1 implements PotentialSoft
Potential1.Intramolecular| Modifier and Type | Field | Description |
|---|---|---|
protected Vector[] |
grad |
|
protected double |
gSat |
|
protected double |
spring |
|
protected double |
springPosition |
boundary| Constructor | Description |
|---|---|
P1Wall(Space space,
double spring,
double springPosition,
double gSat) |
| Modifier and Type | Method | Description |
|---|---|---|
double |
energy(IAtomList atoms) |
Returns the interaction energy between the given atoms.
|
Vector[] |
gradient(IAtomList 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(IAtomList atoms,
Tensor pressureTensor) |
Returns the same gradient as gradient(AtomSet) and also adds in the
contribution of the AtomSet to the pressureTensor.
|
double |
virial(IAtomList atoms) |
getRange, nBody, setBoxclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRange, setBoxprotected final double spring
protected final double springPosition
protected final double gSat
protected final Vector[] grad
public P1Wall(Space space, double spring, double springPosition, double gSat)
public double energy(IAtomList atoms)
Potentialenergy in interface IPotentialAtomicenergy in class Potentialpublic double virial(IAtomList atoms)
virial in interface PotentialSoftpublic Vector[] gradient(IAtomList atoms)
PotentialSoftgradient in interface PotentialSoftpublic Vector[] gradient(IAtomList atoms, Tensor pressureTensor)
PotentialSoftgradient in interface PotentialSoft