IPotential, IPotentialAtomic, Potential2Sphericalpublic class P2WCAP extends java.lang.Object implements Potential2Spherical
| Modifier and Type | Field | Description |
|---|---|---|
protected Boundary |
boundary |
|
protected Vector |
dr |
| Constructor | Description |
|---|---|
P2WCAP(Space space) |
Constructs potential using default sigma and epsilon given by Default class.
|
P2WCAP(Space space,
double sigma,
double epsilon) |
| Modifier and Type | Method | Description |
|---|---|---|
double |
energy(IAtomList atoms) |
Energy of the pair as given by the u(double) method
|
double |
getEpsilon() |
Accessor method for the energy parameter
|
Dimension |
getEpsilonDimension() |
|
double |
getRange() |
Returns the range of the potential, which is the point of truncation.
|
double |
getSigma() |
Accessor method for the size parameter.
|
Dimension |
getSigmaDimension() |
|
int |
nBody() |
The number of atoms on which the potential depends.
|
void |
setBox(Box box) |
Informs the potential of the box on which it acts so that it can
properly consider the boundaries.
|
void |
setEpsilon(double eps) |
Mutator method for the energy parameter
|
void |
setSigma(double s) |
Mutator method for Lennard-Jones size parameter.
|
double |
u(double r2) |
The energy u.
|
public P2WCAP(Space space)
public P2WCAP(Space space, double sigma, double epsilon)
public double getRange()
getRange in interface IPotentialpublic void setBox(Box box)
IPotentialsetBox in interface IPotentialpublic int nBody()
IPotentialnBody in interface IPotentialpublic double energy(IAtomList atoms)
energy in interface IPotentialAtomicpublic double u(double r2)
u in interface Potential2Sphericalr2 - the square of the distance between the particles.public double getSigma()
public final void setSigma(double s)
public Dimension getSigmaDimension()
public double getEpsilon()
public final void setEpsilon(double eps)
public Dimension getEpsilonDimension()