IPotential
, IPotentialAtomic
public class P1ConstraintNbrHcp extends java.lang.Object implements IPotentialAtomic
Modifier and Type | Field | Description |
---|---|---|
protected Boundary |
boundary |
|
protected Vector |
drj |
|
protected Vector |
drk |
|
protected IAtomList |
leafList |
|
protected int[][] |
neighborAtoms |
|
protected double |
neighborRadiusSq |
|
protected int |
p1Counter |
Constructor | Description |
---|---|
P1ConstraintNbrHcp(Space space,
double neighborDistance,
Box box) |
Modifier and Type | Method | Description |
---|---|---|
double |
energy(IAtomList atoms) |
Returns sum of energy for all triplets containing the given atom
|
double |
energyi(IAtom atom) |
Returns the energy for atom i due to requirements for i and its
neighbors (but not for i as a neighbor)
|
int |
getp1Counter() |
|
double |
getRange() |
Returns the range over which the potential applies.
|
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.
|
protected final int[][] neighborAtoms
protected final Vector drj
protected final Vector drk
protected double neighborRadiusSq
protected final Boundary boundary
protected IAtomList leafList
protected int p1Counter
public int nBody()
IPotential
nBody
in interface IPotential
public double getRange()
IPotential
getRange
in interface IPotential
public void setBox(Box box)
IPotential
setBox
in interface IPotential
public double energy(IAtomList atoms)
energy
in interface IPotentialAtomic
public double energyi(IAtom atom)
public int getp1Counter()