public class BoundaryRectangularPeriodicSwitch extends BoundaryRectangularPeriodic
Modifier and Type | Field | Description |
---|---|---|
protected boolean |
doPBC |
box, eventManager, inflateEvent, shape, space
dimensions, edgeVectors, shift0
tempImage
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, setBox
getBoxSize, getEdgeVector, imageOrigins, setBoxSize, volume
getIndexIterator, updateDimensions
public BoundaryRectangularPeriodicSwitch(Space _space)
public void nearestImage(Vector dr)
Boundary
If 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 BoundaryRectangularPeriodic
dr
- the vector to be transformedpublic Vector centralImage(Vector r)
Boundary
centralImage
in class BoundaryRectangularPeriodic
r
- vector position of untransformed point; r is not changed by
this methodpublic boolean getPeriodicity(int d)
Boundary
getPeriodicity
in class BoundaryRectangularPeriodic
d
- the dimension of the desired periodicitypublic boolean isDoPBC()
public void setDoPBC(boolean doPBC)