coflandscaper.default_shift_from_cif¶
- coflandscaper.default_shift_from_cif(input_file, topo, print_shift=False)[source]¶
Compute the default slip length and angle for AB stacking.
For both
hcbandkgm, the default AB shift length uses(2/sqrt(3)) * ||0.5*(a+b)||and the angle is fixed to90°.- Parameters:
- Returns:
(length, angle_deg) tuple.
- Raises:
ValueError – If topo is not “sql”, “hcb”, or “kgm”.
- Return type: