get_supercell_matrix¶
- atomate2.common.utils.get_supercell_matrix(structure, min_length, max_length, prefer_90_degrees, allow_orthorhombic=False, **kwargs)[source]¶
Determine supercell size with given min_length and max_length.
- Parameters:
structure (Structure Object) – Input structure that will be used to determine supercell
min_length (float) – minimum length of cell in Angstrom
max_length (float) – maximum length of cell in Angstrom
prefer_90_degrees (bool) – if True, the algorithm will try to find a cell with 90 degree angles first
allow_orthorhombic (bool) – if True, orthorhombic supercells are allowed
**kwargs – Additional parameters that can be set.
- Return type: