structuretoolkit.build.compound.B2

Contents

structuretoolkit.build.compound.B2#

structuretoolkit.build.compound.B2(element_a: str, element_b: str, a: float | None = None) Atoms[source]#

Builds a cubic $AB$ B2 structure of interpenetrating simple cubic lattices.

Parameters:
  • element_a (str) – The chemical symbol for the A element.

  • element_b (str) – The chemical symbol for the B element.

  • a (float) – The lattice constant. (Default is None, which uses the default for element A.)

Returns:

The B2 unit cell.

Return type:

(Atoms)