IPotential
, IPotentialAtomic
, PotentialSoft
public 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, setBox
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRange, setBox
protected 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)
Potential
energy
in interface IPotentialAtomic
energy
in class Potential
public double virial(IAtomList atoms)
virial
in interface PotentialSoft
public Vector[] gradient(IAtomList atoms)
PotentialSoft
gradient
in interface PotentialSoft
public Vector[] gradient(IAtomList atoms, Tensor pressureTensor)
PotentialSoft
gradient
in interface PotentialSoft