IPotential
, IPotentialAtomic
, PotentialSoft
public class P1WCAPorousWall extends Potential1 implements PotentialSoft
Potential1.Intramolecular
boundary
Constructor | Description |
---|---|
P1WCAPorousWall(Space space) |
|
P1WCAPorousWall(Space space,
double sigma,
double epsilon) |
Modifier and Type | Method | Description |
---|---|---|
double |
energy(IAtomList atom) |
Returns the interaction energy between the given atoms.
|
double |
getEpsilon() |
|
Vector[] |
getPoreCenters() |
|
double |
getPoreRadius() |
|
double |
getRange() |
Returns zero.
|
double |
getSigma() |
Returns the radius.
|
double |
getZ() |
|
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 |
setPoreCenters(Vector[] poreCenters) |
|
void |
setPoreRadius(double poreRadius) |
|
void |
setSigma(double radius) |
Sets the radius.
|
void |
setZ(double z) |
|
double |
virial(IAtomList atoms) |
nBody, setBox
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setBox
public P1WCAPorousWall(Space space)
public P1WCAPorousWall(Space space, 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 double virial(IAtomList atoms)
virial
in interface PotentialSoft
public Vector[] gradient(IAtomList atom)
PotentialSoft
gradient
in interface PotentialSoft
public Vector[] gradient(IAtomList atom, Tensor pressureTensor)
PotentialSoft
gradient
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 double getPoreRadius()
public void setPoreRadius(double poreRadius)
poreRadius
- The poreRadius to set.public double getZ()
public void setZ(double z)
z
- The z to set.public Vector[] getPoreCenters()
public void setPoreCenters(Vector[] poreCenters)
poreCenters
- The poreCenters to set.