Skip to content

StructureBuilders

HoneycombTilingBuilder

Bases: StructureBuilder

A helper class for generating honeycomb tiling structures.

Source code in pylattica/structures/honeycomb/structure_builders.py
 5
 6
 7
 8
 9
10
11
12
13
class HoneycombTilingBuilder(StructureBuilder):
    """A helper class for generating honeycomb tiling structures."""

    SITE_CLASS = "A"

    def __init__(self):
        self.lattice = RhombohedralLattice()
        self.frac_coords = True
        self.motif = {HoneycombTilingBuilder.SITE_CLASS: [(1 / 2, 1 / 2)]}