The Cell Object
The Cell Object
Examples:
The cell behaves like a 3x3 array when used like one:
>>> cell[:]
array([[0. , 2.04, 2.04],
[2.04, 0. , 2.04],
[2.04, 2.04, 0. ]])
>>> cell.lengths()
array([2.88499567, 2.88499567, 2.88499567])
>>> cell.angles()
array([60., 60., 60.])
>>> cell.volume
16.979328000000002
This object resembles a 3x3 array whose [i, j]-th element is the jth Cartesian coordinate of the ith
unit vector.
Cells of less than three dimensions are represented by placeholder unit vectors that are zero.
Create cell.
Parameters:
Convert web pages and HTML files to PDF in your applications with the Pdfcrowd HTML to PDF API Printed with Pdfcrowd.com
angles() [source]
Return an array with the three angles alpha, beta, and gamma.
area(i) [source]
areas() [source]
Areas spanned by cell vector pairs (1, 2), (2, 0), and (0, 2).
If special points are None, determine the Bravais la ce of this cell and return a suitable
Brillouin zone path with standard special points.
If special special points are given, interpolate the path directly from the available data.
Parameters:
path: string
npoints: int
Number of points in total. Note that at least one point is added for each special point in the
path.
density: float
special_points: dict
Dic onary mapping special points to scaled kpoint coordinates. For example {'G': [0, 0,
eps: float
Convert web pages and HTML files to PDF in your applications with the Pdfcrowd HTML to PDF API Printed with Pdfcrowd.com
Tolerance for determining Bravais la ce.
Whether cell is periodic in each direc on. Normally not necessary. If cell has three nonzero
cell vectors, use e.g. pbc=[1, 1, 0] to request a 2D bandpath nevertheless.
Example
cellpar(radians=False) [source]
First three are unit cell vector lengths and second three are angles between them:
in degrees.
complete() [source]
copy() [source]
Convert web pages and HTML files to PDF in your applications with the Pdfcrowd HTML to PDF API Printed with Pdfcrowd.com
>>> cell = Cell.fromcellpar([4, 4, 4, 60, 60, 60])
>>> print(cell.get_bravais_lattice())
FCC(a=5.65685)
Note
To build a bandpath for a par cular cell, use ase.cell.Cell.bandpath() instead of this
method. This maps the kpoints back to the original input cell.
1 for right-handed cells, -1 for le , and 0 for cells that do not span three dimensions.
lengths() [source]
mask() [source]
minkowski_reduce() [source]
niggli_reduce(eps=1e-05) [source]
Convert web pages and HTML files to PDF in your applications with the Pdfcrowd HTML to PDF API Printed with Pdfcrowd.com
Niggli reduce this cell, returning a new cell and mapping.
normal(i) [source]
normals() [source]
The scaled posi ons are the posi ons given in the basis of the cell vectors. For the purpose of
defining the basis, cell vectors that are zero will be replaced by unit vectors as per complete() .
Convert web pages and HTML files to PDF in your applications with the Pdfcrowd HTML to PDF API Printed with Pdfcrowd.com
standard_form() [source]
Rotate axes such that unit cell is lower triangular. The cell handedness is preserved.
A lower-triangular cell with posi ve diagonal entries is a canonical (i.e. unique) descrip on. For
a le -handed cell the diagonal entries are nega ve.
Returns:
Q: ndarray
The orthogonal transforma on. Here, rcell @ Q = cell, where cell is the input cell and rcell is
the lower triangular (output) cell.
uncomplete(pbc) [source]
Convert web pages and HTML files to PDF in your applications with the Pdfcrowd HTML to PDF API Printed with Pdfcrowd.com