tbplas.extend_prim_cell
- tbplas.extend_prim_cell(prim_cell: PrimitiveCell, dim: Union[Tuple[int, int], Tuple[int, int, int]] = (1, 1, 1)) PrimitiveCell
Extend primitive cell along a, b and c directions.
- Parameters:
prim_cell – primitive cell from which the extended cell is constructed
dim – dimension of the extended cell along 3 directions
- Returns:
extended cell created from primitive cell
- Raises:
CoordLenError – if len(dim) != 2 or 3
ValueError – if dimension along any direction is smaller than 1