BoundaryPistonCylinder
public class BoundaryRectangularNonperiodic extends BoundaryRectangular
Modifier and Type | Field | Description |
---|---|---|
protected double[][] |
origins |
box, eventManager, inflateEvent, shape, space
dimensions, edgeVectors, shift0
Constructor | Description |
---|---|
BoundaryRectangularNonperiodic(Space space) |
Make a boundary with unit volume.
|
Modifier and Type | Method | Description |
---|---|---|
Vector |
centralImage(Vector r) |
Returns a vector with all elements zero.
|
IndexIteratorSizable |
getIndexIterator() |
|
boolean |
getPeriodicity(int d) |
Returns true if the boundary is periodic in the given direction (as
defined by the getEdgeVector method).
|
double[][] |
imageOrigins(int nShells) |
Returns a zero-length vector.
|
void |
nearestImage(Vector dr) |
Does nothing.
|
getBox, getCenter, getEventManager, getPeriodicity, getShape, setBox
getBoxSize, getEdgeVector, setBoxSize, updateDimensions, volume
public BoundaryRectangularNonperiodic(Space space)
public Vector centralImage(Vector r)
centralImage
in class Boundary
r
- vector position of untransformed point; r is not changed by
this methodpublic void nearestImage(Vector dr)
nearestImage
in class Boundary
dr
- the vector to be transformedpublic double[][] imageOrigins(int nShells)
imageOrigins
in class BoundaryRectangular
nShells
- the number of shells of images to be computedpublic IndexIteratorSizable getIndexIterator()
getIndexIterator
in class Boundary
public boolean getPeriodicity(int d)
Boundary
getPeriodicity
in class Boundary
d
- the dimension of the desired periodicity