BoundaryRectangularNonperiodic
, BoundaryRectangularPeriodic
, BoundaryRectangularPore
, BoundaryRectangularSlit
public abstract class BoundaryRectangular extends Boundary
Modifier and Type | Field | Description |
---|---|---|
protected Vector |
dimensions |
|
protected Vector[] |
edgeVectors |
|
protected float[][] |
shift0 |
box, eventManager, inflateEvent, shape, space
Constructor | Description |
---|---|
BoundaryRectangular(Space _space) |
Constructs cubic boundary of the given periodicity, using the space and default box-size
given by the Simulation.
|
BoundaryRectangular(Space space,
double boxSize) |
Constructs cubic boundary of the given periodicity with each edge of length boxSize
|
BoundaryRectangular(Space space,
double[] boxSize) |
Constructs rectangular boundary of the given periodicity with edges given by the
values in the array boxSize.
|
Modifier and Type | Method | Description |
---|---|---|
Vector |
getBoxSize() |
Returns a vector with elements equal to the lengths of the edges of
the boundary.
|
Vector |
getEdgeVector(int d) |
Returns the vector that defines the edge of this boundary for the given
dimension.
|
double[][] |
imageOrigins(int nShells) |
Returns a set of image origins for a set of periodic image shells.
|
void |
setBoxSize(Vector v) |
Sets the size and shape of the rectangular boundary.
|
protected void |
updateDimensions() |
|
double |
volume() |
Returns the "volume" of the rectangular region defined by this Boundary.
|
centralImage, getBox, getCenter, getEventManager, getIndexIterator, getPeriodicity, getPeriodicity, getShape, nearestImage, setBox
protected final Vector dimensions
protected final float[][] shift0
protected final Vector[] edgeVectors
public BoundaryRectangular(Space _space)
public BoundaryRectangular(Space space, double boxSize)
public BoundaryRectangular(Space space, double[] boxSize)
public Vector getBoxSize()
getBoxSize
in class Boundary
public void setBoxSize(Vector v)
setBoxSize
in class Boundary
v
- the box's new sizeprotected void updateDimensions()
public double volume()
public Vector getEdgeVector(int d)
Boundary
getEdgeVector
in class Boundary
d
- the dimension of the desired edge vectorpublic double[][] imageOrigins(int nShells)
imageOrigins
in class Boundary
nShells
- the number of shells of images to be computed