vibe-sketcherDocumentation

vibesketcher.chem.porous_carbon_d

The Mackay-Terrones D-type carbon sheet: octagons and hexagons on the D surface (#204).

A. L. Mackay and H. Terrones, Nature 352, 762 (1991), doi:10.1038/352762a0 (library: incoming/352762a0.pdf), cover Schwarz’s diamond D surface with a graphite-like sheet: “8 tetrahedral units per cell, so that there are 768 carbon atoms per face centred cubic unit cell … each consisting of six octagons and 40 hexagons”. The sheet is made from plane 30-60-90 degree triangles of the graphite net, “curved so that 60 degree vertices become 45 degree and eight fit together to give an octagon”; they add that “the triangle can be chosen in several ways”. This module builds one choice and names it.

The map on the surface. The D surface contains straight lines. Schwarz’s generating patch is the skew quadrilateral formed by four edges of a regular tetrahedron, and the surface is the union of its images under 180-degree rotations about those edges (H. A. Schwarz, Gesammelte Mathematische Abhandlungen, Springer, Berlin, 1890; not in the library, and the construction is checked here rather than taken on trust). With tetrahedron vertices at alternate corners of a unit cube, the first quadrilateral is (0,0,0) (1,1,0) (0,1,1) (1,0,1). Six quadrilaterals meet at every vertex, each with a 60-degree corner, so the patches form a {4,6} map. The translations that keep the two sides of the sheet apart form an fcc lattice of conventional edge 4 (primitive vectors (0,2,2) (2,0,2) (2,2,0)). The simple cubic lattice of edge 2, the translations that swap the sides, is the Pn-3m description of the unoriented surface. A primitive cell has 8 vertices, 24 edges and 12 quadrilaterals: chi = -4, genus 3. That is the cycle rank of the diamond net dia (2 vertices and 4 edges per primitive cell), which the sheet surrounds.

The decoration. Each quadrilateral is cut into eight flag triangles (vertex v, edge midpoint m, centre c). Their angles are 30 degrees at v (12 flags meet), 45 at c (8 meet) and 90 at m (4 meet): Mackay and Terrones’ triangle. Each flag is filled with a plane graphite triangle whose 30-degree corner H and 60-degree corner O are hexagon centres K hexagon spacings apart along an armchair line. The 90-degree corner M is then a bond midpoint, and all three sides are mirror lines of graphite. TRIANGLE = 2 gives 2 carbons per flag, so 192 per primitive cell and 768 per conventional cubic cell. That is the paper’s count: 12 octagons (one per quadrilateral centre) and 80 hexagons per primitive cell, or 6 octagons and 40 hexagons per tetrahedral unit. It is the only triangle on this armchair line with that count (K = 1 gives the 48-carbon sheet, K = 3 432). A plane atom is carried into a flag by its barycentric coordinates in (H, O, M). Atoms on a side, which is a mirror line, get the same position from both flags. A bond leaving the triangle is followed by reflecting the far atom across the side it crosses, into the neighbouring flag, until it lands inside. Bonds therefore come from the plane net, not from distances.

Placement. The mapped atoms lie on the flat flag triangles. They are projected onto the D nodal surface sin X sin Y sin Z + sin X cos Y cos Z - cos X sin Y cos Z - cos X cos Y sin Z = 0 with X = pi x / 2 in cube units (H. G. von Schnering and R. Nesper, Z. Phys. B 83, 407 (1991), doi:10.1007/BF01313411). In this form it contains every quadrilateral edge. A fixed, deterministic bond-length equalisation then follows: each step moves every atom along the summed misfit of its bonds against their mean, then projects back onto the nodal surface, stopping when the largest relative misfit is below EQUALISE_TOLERANCE or after EQUALISE_STEPS. This is a geometric placement on a fixed surface. It has no angle, bending or pi terms, no fitted potential and no forces from any energy model, so it is not a relaxation. The cell is then scaled so the common bond is bond_length. Topology is untouched: the graph comes from the decoration alone.

The sheet does not divide space into two congruent labyrinths, as T. Lenosky, X. Gonze, M. Teter and V. Elser note for their D sheet (Nature 355, 333 (1992), doi:10.1038/355333a0; library incoming/lenosky1992.pdf). It is a carbon net on a nodal approximation of the D surface, not the minimal surface itself. Their heptagon D sheet (24 heptagons and 80 hexagons per cell) is a different decoration and is not built here.

Module Attributes

TRIANGLE

Hexagon spacings between the triangle's 30- and 60-degree corners.

ATOMS_PER_CELL

Carbons per primitive cell for TRIANGLE (2 K^2 per flag, 96 flags).

LATTICE_UNITS

Primitive fcc vectors in cube units (conventional edge 4).

EQUALISE_TOLERANCE

The equalisation stops once every bond is within this fraction of the mean.

EQUALISE_STEPS

The most equalisation steps one build takes.

Functions

d_sheet([k])

Decorate the Schwarz D map with the k triangle and place it on the nodal surface.

nodal_d(points)

The D nodal function and its gradient at points (cube units).

schwarz_d_quadrilaterals()

The 12 skew quadrilaterals of one primitive cell, corners in cyclic order.

Classes

DSheet(positions, bonds, quadrilaterals, ...)

One primitive cell of the decorated sheet, in cube units before scaling.

vibesketcher.chem.porous_carbon_d.ATOMS_PER_CELL = 768

Carbons per primitive cell for TRIANGLE (2 K^2 per flag, 96 flags).

vibesketcher.chem.porous_carbon_d.EQUALISE_STEPS = 4000

The most equalisation steps one build takes.

vibesketcher.chem.porous_carbon_d.EQUALISE_TOLERANCE = 1e-09

The equalisation stops once every bond is within this fraction of the mean.

vibesketcher.chem.porous_carbon_d.LATTICE_UNITS: NDArray[float64] = array([[0., 2., 2.],        [2., 0., 2.],        [2., 2., 0.]])

Primitive fcc vectors in cube units (conventional edge 4).

vibesketcher.chem.porous_carbon_d.TRIANGLE = 2

Hexagon spacings between the triangle’s 30- and 60-degree corners.

class vibesketcher.chem.porous_carbon_d.DSheet(positions, bonds, quadrilaterals, flags, equalise_steps, equalise_misfit, mean_bond_units)[source]

Bases: object

One primitive cell of the decorated sheet, in cube units before scaling.

Parameters:
positions: NDArray[float64]
bonds: list[tuple[int, int, tuple[int, int, int]]]
quadrilaterals: int
flags: int
equalise_steps: int
equalise_misfit: float
mean_bond_units: float
vibesketcher.chem.porous_carbon_d.d_sheet(k=2)[source]

Decorate the Schwarz D map with the k triangle and place it on the nodal surface.

Parameters:

k (int)

Return type:

DSheet

vibesketcher.chem.porous_carbon_d.nodal_d(points)[source]

The D nodal function and its gradient at points (cube units).

Parameters:

points (NDArray[float64])

Return type:

tuple[NDArray[float64], NDArray[float64]]

vibesketcher.chem.porous_carbon_d.schwarz_d_quadrilaterals()[source]

The 12 skew quadrilaterals of one primitive cell, corners in cyclic order.

Generated from the first quadrilateral by 180-degree rotations about the edges, each image translated into the cell, until no new one appears.

Return type:

list[NDArray[float64]]