IPotential
, IPotentialAtomic
, PotentialSoft
public class P1WCAWall extends Potential1 implements PotentialSoft
Potential1.Intramolecular
Modifier and Type | Field | Description |
---|---|---|
protected double |
cutoff |
|
protected double |
cutoff2 |
|
protected double |
epsilon |
|
protected Vector[] |
gradient |
|
protected double |
sigma |
|
protected double |
sigma2 |
|
protected int |
wallDim |
|
protected double |
wallPosition |
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() |
|
double |
getWallPosition() |
|
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) |
|
void |
setWallPosition(double newWallPosition) |
|
double |
virial(IAtomList atoms) |
nBody, setBox
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setBox
protected final Vector[] gradient
protected double sigma
protected double sigma2
protected double epsilon
protected double cutoff
protected double cutoff2
protected int wallDim
protected double wallPosition
public P1WCAWall(Space space, int wallDim)
public P1WCAWall(Space space, int wallDim, double sigma, double epsilon)
public double getRange()
Potential1
getRange
in interface IPotential
getRange
in class Potential1
public double energy(IAtomList atom)
Potential
energy
in interface IPotentialAtomic
energy
in class Potential
public Vector[] gradient(IAtomList atom)
PotentialSoft
gradient
in interface PotentialSoft
public Vector[] gradient(IAtomList atom, Tensor pressureTensor)
PotentialSoft
gradient
in interface PotentialSoft
public double virial(IAtomList atoms)
virial
in interface PotentialSoft
public 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)
public double getWallPosition()
public void setWallPosition(double newWallPosition)