BoundaryRectangularPeriodicSwitch
public class BoundaryRectangularPeriodic extends BoundaryRectangular
Modifier and Type | Field | Description |
---|---|---|
protected Vector |
tempImage |
box, eventManager, inflateEvent, shape, space
dimensions, edgeVectors, shift0
Constructor | Description |
---|---|
BoundaryRectangularPeriodic(Space _space) |
Constructs cubic boundary with the default box-size given by the Simulation.
|
BoundaryRectangularPeriodic(Space _space,
double boxSize) |
Constructs cubic boundary for the given Space, with each edge of length boxSize.
|
BoundaryRectangularPeriodic(Space _space,
double[] boxSize) |
Constructs rectangular boundary for the given Space, with each edge of length boxSize.
|
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).
|
IndexIteratorSizable |
getIndexIterator() |
|
boolean |
getPeriodicity(int d) |
Returns true if the boundary is periodic in the given direction (as
defined by the getEdgeVector method).
|
void |
nearestImage(Vector dr) |
The nearest image is the pair of atom images that are closest when all
periodic-boundary images are considered.
|
void |
updateDimensions() |
getBox, getCenter, getEventManager, getPeriodicity, getShape, setBox
getBoxSize, getEdgeVector, imageOrigins, setBoxSize, volume
protected final Vector tempImage
public BoundaryRectangularPeriodic(Space _space)
public BoundaryRectangularPeriodic(Space _space, double boxSize)
public BoundaryRectangularPeriodic(Space _space, double[] boxSize)
public void updateDimensions()
updateDimensions
in class BoundaryRectangular
public IndexIteratorSizable getIndexIterator()
getIndexIterator
in class Boundary
public Vector centralImage(Vector r)
Boundary
centralImage
in class Boundary
r
- vector position of untransformed point; r is not changed by
this methodpublic 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 Boundary
dr
- the vector to be transformedpublic boolean getPeriodicity(int d)
Boundary
getPeriodicity
in class Boundary
d
- the dimension of the desired periodicity