Skip to content

Lattice

SquareGridLattice2D

Bases: Lattice

A helper class for generating square 2D grid lattices.

Source code in pylattica/structures/square_grid/lattice.py
4
5
6
7
8
9
class SquareGridLattice2D(Lattice):
    """A helper class for generating square 2D grid lattices."""

    def __init__(self):
        lattice_vecs = [(0, 1), (1, 0)]
        super().__init__(lattice_vecs)

SquareGridLattice3D

Bases: Lattice

A helper class for generating square 3D grid lattices.

Source code in pylattica/structures/square_grid/lattice.py
12
13
14
15
16
17
class SquareGridLattice3D(Lattice):
    """A helper class for generating square 3D grid lattices."""

    def __init__(self):
        lattice_vecs = [(0, 1, 0), (1, 0, 0), (0, 0, 1)]
        super().__init__(lattice_vecs)