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_seedstring

seedname to read H(R) file produced by Wannier90, seedname_hr.dat

Returns:
n_r_spininteger

number of R vectors found in the file

r_vector_spinnp.ndarray of integers

Miller indices of the R vectors

r_degeneracy_spinnp.ndarray of floats

weight of the R vectors

n_wannier_spininteger

number of Wannier functions found

wannier_hr_spinnp.ndarray, # R points x # wannier funcs x # wannier funcs

<w_i|H(R)|w_j> = Hamilonian matrix elements in the Wannier basis