pythtb.Lattice.change_nonperiodic_vector#
- Lattice.change_nonperiodic_vector(fin_dir, new_lat_vec=None)[source]#
Change non-periodic lattice vector.
Returns
Latticein which one of the non-periodic “lattice vectors” is changed. Non-periodic lattice vectors are those that are not listed as periodic with the periodic_dirs parameter. The returned object has modified reduced coordinates of orbitals, consistent with the new choice of lattice vector. Therefore, the actual (Cartesian) coordinates of orbitals in original and newLatticeare the same.- Parameters:
- fin_dirint
Index of non-periodic lattice vector to change.
- new_lat_vecarray_like, optional
The new non-periodic lattice vector. If None (default), the new non-periodic lattice vector is constructed to be orthogonal to all periodic vectors and to have the same length as the original non-periodic vector.
See also
periodic_dirsProperty listing periodic directions.
- Boron nitride ribbon polarization
For an example.