legume.Lattice
- class legume.Lattice(*args)
Class for constructing a Bravais lattice
- __init__(*args)
Initialize a Bravais lattice. If a single argument is passed, then
‘square’: initializes a square lattice.
‘hexagonal’: initializes a hexagonal lattice.
with lattice constant a = 1 in both cases.
If two arguments are passed, they should each be 2-element arrays defining the elementary vectors of the lattice.
Methods
__init__(*args)Initialize a Bravais lattice.
bz_path(pts, ns[, symm_g])Make a path in the Brillouin zone.
xy_grid([Nx, Ny, periods])Define an xy-grid for visualization purposes based on the lattice vectors.