A box representing the bounds of the system.
-
lengths
: list-like, shape=(3,), dtype=float Lengths of the edges of the box. -
angles
: list-like, shape=(3,), dtype=float, default=None
Angles (in degrees) that define the tilt of the edges of the box. If None is given, angles are assumed to be [90.0, 90.0, 90.0]. These are also known as alpha, beta, gamma in the crystallography community. -
precision
: int, optional, default=None Control the precision of the floating point representation of box attributes. If none provided, the default is 6 decimals.
-
vectors
: np.ndarray, shape=(3,3), dtype=float Vectors that define the parallelepiped (Box). -
lengths
: tuple, shape=(3,), dtype=float
Lengths of the box in x,y,z angles : tuple, shape=(3,), dtype=float -
angles
: tuple, shape=(3,), dtype=float Angles defining the tilt of the box. -
Lx
: float Length of the Box in the x dimension -
Ly
: float Length of the Box in the y dimension -
Lz
: float
Length of the Box in the z dimension -
xy
: float Tilt factor needed to displace an orthogonal box's xy face to its parallelepiped structure. -
xz
: float
Tilt factor needed to displace an orthogonal box's xz face to its parallelepiped structure. -
yz
: float Tilt factor needed to displace an orthogonal box's yz face to its parallelepiped structure. -
precision
: int Precision of the floating point numbers when accessing values.
Box vectors are expected to be provided in row-major format.
__init__(lengths, angles=None, precision=None)
Length in the x direction.
Length in the y direction.
Length in the z direction.
Angles defining the tilt of the box (alpha, beta, gamma).
Lengths and tilt factors of the box.
Return the Box representation as Bravais lattice parameters.
Based on the box vectors, return the parameters to describe the box in terms of the Bravais lattice parameters:
a,b,c = the edges of the Box alpha, beta, gamma = angles(tilt) of the parallelepiped, in degrees
parameters : tuple of floats, (a, b, c, alpha, beta, gamma)
Lengths of the box.
Amount of decimals to represent floating point values.
Return the 3 tilt_factors (xy, xz, yz) of the box.
Box representation as a 3x3 matrix.
Tilt factor xy of the box.
Tilt factor xz of the box.
Tilt factor yz of the box.
from_lengths_angles(lengths, angles, precision=None)
Generate a box from lengths and angles.
from_lengths_tilt_factors(lengths, tilt_factors=None, precision=None)
Generate a box from box lengths and tilt factors.
from_lo_hi_tilt_factors(lo, hi, tilt_factors, precision=None)
Generate a box from a lo, hi convention and tilt factors.
from_mins_maxs_angles(mins, maxs, angles, precision=None)
Generate a box from min/max distance calculations and angles.
from_uvec_lengths(uvec, lengths, precision=None)
Generate a box from unit vectors and lengths.
from_vectors(vectors, precision=None)
Generate a box from box vectors.