tbplas.spiral_prim_cell

tbplas.spiral_prim_cell(prim_cell: PrimitiveCell, angle: float = 0.0, center: ndarray = array([0., 0., 0.]), shift: float = 0.0) None

Rotate and shift primitive cell with respect to z-axis.

NOTE: this function returns nothing. But the incoming primitive cell will be modified in-place.

Parameters:
  • prim_cell – primitive cell to twist

  • angle – twisting angle in RADIANs, NOT degrees

  • center – (3,) float64 array Cartesian coordinates of the rotation center in NANOMETER

  • shift – distance of shift in NANOMETER

Returns:

None