Skip to content

Lattice

RhombohedralLattice

Bases: Lattice

A helper class for generating rhombohedral lattices.

Source code in pylattica/structures/honeycomb/lattice.py
 9
10
11
12
13
14
15
16
17
class RhombohedralLattice(Lattice):
    """A helper class for generating rhombohedral lattices."""

    def __init__(self):
        lattice_vecs = [
            (HONEYCOMB_SIDE_LENGTH, 0),
            (HONEYCOMB_SIDE_LENGTH / 2, ROOT_3 * HONEYCOMB_SIDE_LENGTH / 2),
        ]
        super().__init__(lattice_vecs)