triqs_dft_tools.converters.wannier90.read_wannier90_hr_data
- triqs_dft_tools.converters.wannier90.read_wannier90_hr_data(wannier_seed)[source]
Method for reading the seedname_hr.dat file produced by Wannier90 (http://wannier.org). If spin polarized, reads in the properties for a given spin
- Parameters:
wannier_seed : string
seedname to read H(R) file produced by Wannier90, seedname_hr.dat
- Returns:
n_r_spin : integer
number of R vectors found in the file
r_vector_spin : np.ndarray of integers
Miller indices of the R vectors
r_degeneracy_spin : np.ndarray of floats
weight of the R vectors
n_wannier_spin : integer
number of Wannier functions found
wannier_hr_spin : np.ndarray, # R points x # wannier funcs x # wannier funcs
<w_i|H(R)|w_j> = Hamilonian matrix elements in the Wannier basis