IPotential, IPotentialAtomic, PotentialSoftpublic class P1WCAWall extends Potential1 implements PotentialSoft
Potential1.Intramolecular| Modifier and Type | Field | Description |
|---|---|---|
protected double |
cutoff |
|
protected double |
epsilon |
|
protected Vector[] |
gradient |
|
protected double |
sigma |
|
protected int |
wallDim |
boundary| Constructor | Description |
|---|---|
P1WCAWall(Space space,
int wallDim) |
|
P1WCAWall(Space space,
int wallDim,
double sigma,
double epsilon) |
| Modifier and Type | Method | Description |
|---|---|---|
double |
energy(IAtomList atom) |
Returns the interaction energy between the given atoms.
|
double |
getEpsilon() |
|
double |
getRange() |
Returns zero.
|
double |
getSigma() |
Returns the radius.
|
int |
getWallDim() |
|
Vector[] |
gradient(IAtomList atom) |
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 atom,
Tensor pressureTensor) |
Returns the same gradient as gradient(AtomSet) and also adds in the
contribution of the AtomSet to the pressureTensor.
|
void |
setEpsilon(double epsilon) |
|
void |
setSigma(double radius) |
Sets the radius.
|
void |
setWallDim(int wallDim) |
|
double |
virial(IAtomList atoms) |
nBody, setBoxclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetBoxprotected final Vector[] gradient
protected double sigma
protected double epsilon
protected double cutoff
protected int wallDim
public P1WCAWall(Space space, int wallDim)
public P1WCAWall(Space space, int wallDim, double sigma, double epsilon)
public double getRange()
Potential1getRange in interface IPotentialgetRange in class Potential1public double energy(IAtomList atom)
Potentialenergy in interface IPotentialAtomicenergy in class Potentialpublic Vector[] gradient(IAtomList atom)
PotentialSoftgradient in interface PotentialSoftpublic Vector[] gradient(IAtomList atom, Tensor pressureTensor)
PotentialSoftgradient in interface PotentialSoftpublic double virial(IAtomList atoms)
virial in interface PotentialSoftpublic double getSigma()
public void setSigma(double radius)
radius - The radius to setpublic double getEpsilon()
public void setEpsilon(double epsilon)
epsilon - The epsilon to set.public int getWallDim()
public void setWallDim(int wallDim)