public class BoundaryDeformablePeriodicSwitch extends BoundaryDeformablePeriodic
| Modifier and Type | Field | Description |
|---|---|---|
protected boolean |
doPBC |
|
protected Vector |
temp |
box, eventManager, inflateEvent, shape, spacetransformVectors, truncationRadius, tV2| Constructor | Description |
|---|---|
BoundaryDeformablePeriodicSwitch(Space _space,
Vector[] vex) |
| 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, setBoxdeform, getBoundaryTensor, getBoxSize, getEdgeVector, getIndexIterator, getTruncationRadius, imageOrigins, setAsCube, setAsRectangular, setBoxSize, setDimensions, setEdgeVector, setEdgeVectors, setTruncationRadius, testTransformVector, update, volumeprotected Vector temp
protected boolean doPBC
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 BoundaryDeformablePeriodicdr - the vector to be transformedpublic Vector centralImage(Vector r)
BoundarycentralImage in class BoundaryDeformablePeriodicr - vector position of untransformed point; r is not changed by
this methodpublic boolean getPeriodicity(int d)
BoundarygetPeriodicity in class BoundaryDeformablePeriodicd - the dimension of the desired periodicitypublic boolean isDoPBC()
public void setDoPBC(boolean doPBC)