public class BoundaryRectangularPeriodicSwitch extends BoundaryRectangularPeriodic
| Modifier and Type | Field | Description |
|---|---|---|
protected boolean |
doPBC |
box, eventManager, inflateEvent, shape, spacedimensions, edgeVectors, shift0tempImage| Constructor | Description |
|---|---|
BoundaryRectangularPeriodicSwitch(Space _space) |
| Modifier and Type | Method | Description |
|---|---|---|
Vector |
centralImage(Vector r) |
Determines the translation vector needed to apply a periodic-image
transformation that moves the given point to an image point within the
boundary (if it lies outside, in a direction subject to periodic
imaging).
|
boolean |
getPeriodicity(int d) |
Returns true if the boundary is periodic in the given direction (as
defined by the getEdgeVector method).
|
boolean |
isDoPBC() |
|
void |
nearestImage(Vector dr) |
The nearest image is the pair of atom images that are closest when all
periodic-boundary images are considered.
|
void |
setDoPBC(boolean doPBC) |
getBox, getCenter, getEventManager, getPeriodicity, getShape, setBoxgetBoxSize, getEdgeVector, imageOrigins, setBoxSize, volumegetIndexIterator, updateDimensionspublic BoundaryRectangularPeriodicSwitch(Space _space)
public void nearestImage(Vector dr)
BoundaryIf the vector passed to this method is the displacement vector between two points, the vector will be transformed such that it corresponds to the vector between the nearest image of those two points.
nearestImage in class BoundaryRectangularPeriodicdr - the vector to be transformedpublic Vector centralImage(Vector r)
BoundarycentralImage in class BoundaryRectangularPeriodicr - vector position of untransformed point; r is not changed by
this methodpublic boolean getPeriodicity(int d)
BoundarygetPeriodicity in class BoundaryRectangularPeriodicd - the dimension of the desired periodicitypublic boolean isDoPBC()
public void setDoPBC(boolean doPBC)