IPotential
, IPotentialAtomic
, Potential2Spherical
public class P2DiscreteFeynmanHibbs extends java.lang.Object implements Potential2Spherical
Modifier and Type | Class | Description |
---|---|---|
static class |
P2DiscreteFeynmanHibbs.P2HeEmpericalQuantum |
Modifier and Type | Field | Description |
---|---|---|
protected Boundary |
boundary |
|
protected Vector |
dr |
|
protected double |
fac |
|
protected double |
mass |
|
protected int |
nPoints |
|
protected Potential2Spherical |
p2Classy |
|
protected double |
stepFactor |
|
protected double |
temperature |
Constructor | Description |
---|---|
P2DiscreteFeynmanHibbs(Space space,
Potential2Spherical p2Classical) |
Modifier and Type | Method | Description |
---|---|---|
protected void |
calcFacs() |
|
double |
energy(IAtomList atoms) |
Energy of the pair as given by the u(double) method
|
double |
getRange() |
Returns the range over which the potential applies.
|
static void |
main(java.lang.String[] args) |
|
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 |
setMass(double m) |
Sets the mass; we assume the reduced mass is m/2 (correct for particles
with identical mass).
|
void |
setNPoints(int nPoints) |
|
void |
setStepFactor(double stepFactor) |
|
void |
setTemperature(double temperature) |
|
double |
u(double r2) |
The pair energy u(r^2) with no truncation applied.
|
protected final Potential2Spherical p2Classy
protected final Vector dr
protected Boundary boundary
protected double temperature
protected double mass
protected double fac
protected double stepFactor
protected int nPoints
public P2DiscreteFeynmanHibbs(Space space, Potential2Spherical p2Classical)
public int nBody()
IPotential
nBody
in interface IPotential
public void setNPoints(int nPoints)
public void setStepFactor(double stepFactor)
protected void calcFacs()
public void setTemperature(double temperature)
public void setMass(double m)
public double energy(IAtomList atoms)
energy
in interface IPotentialAtomic
public double u(double r2)
Potential2Spherical
u
in interface Potential2Spherical
r2
- the square of the distance between the particles.public void setBox(Box box)
IPotential
setBox
in interface IPotential
public double getRange()
IPotential
getRange
in interface IPotential
public static void main(java.lang.String[] args)