httk quickstart: structures

Load a cif file or poscar

Loading a .cif file directly into an httk₂ Structure object is still under development — TBA. (httk₂ can already parse cif files into raw data via httk.core.load, but assembling a Structure from that parsed data is being ported.)

Create structures in code

In httk₂, a Structure is created from an explicit cell, a list of sites in reduced coordinates, a list of species (given as OPTIMADE-style species dictionaries), and a per-site list naming the species at each site. Here is a conventional cubic rock-salt (NaCl) cell:

Running this generates the output:

Species: ['Na', 'Cl']
Number of sites: 8
Atomic numbers: (11, 11, 11, 11, 17, 17, 17, 17)