2021-10-13 20:09:48 +02:00
|
|
|
from triqs_dft_tools.sumk_dft_tools import *
|
2021-12-15 15:01:10 +01:00
|
|
|
from triqs.utility.h5diff import h5diff
|
2021-10-13 20:09:48 +02:00
|
|
|
from h5 import HDFArchive
|
|
|
|
|
2021-12-15 15:01:10 +01:00
|
|
|
with HDFArchive('SrVO3_Sigma.h5', 'r') as ar:
|
2021-10-13 20:09:48 +02:00
|
|
|
Sigma = ar['dmft_transp_input']['Sigma_w']
|
2021-12-15 15:01:10 +01:00
|
|
|
chemical_potential = ar['dmft_transp_input']['chemical_potential']
|
|
|
|
dc_imp = ar['dmft_transp_input']['dc_imp']
|
|
|
|
|
|
|
|
SK = SumkDFTTools(hdf_file='SrVO3_spectral.h5', use_dft_blocks=True, mesh = Sigma.mesh)
|
2021-10-13 20:09:48 +02:00
|
|
|
|
2021-12-15 15:01:10 +01:00
|
|
|
SK.chemical_potential = chemical_potential
|
|
|
|
SK.dc_imp = dc_imp
|
2021-10-13 20:09:48 +02:00
|
|
|
SK.set_Sigma([Sigma])
|
|
|
|
|
2023-04-15 00:43:23 +02:00
|
|
|
#dos_wannier = SK.dos_wannier_basis(broadening=0.01, with_Sigma=True, with_dc=True, save_to_file=False)
|
|
|
|
#dos_parproj = SK.dos_parproj_basis(broadening=0.01, with_Sigma=True, with_dc=True, save_to_file=False)
|
|
|
|
dos_wannier = SK.density_of_states(broadening=0.01, with_Sigma=True, with_dc=True, proj_type='wann', save_to_file=False)
|
|
|
|
dos_parproj = SK.density_of_states(broadening=0.01, with_Sigma=True, with_dc=True, proj_type='wien2k', save_to_file=False)
|
|
|
|
#spaghetti = SK.spaghettis(broadening=0.01, plot_shift=0.0, plot_range=(-1,1), ishell=None, save_to_file=False)
|
|
|
|
[spaghetti, pAkw, pAkw_orb] = SK.spaghettis(broadening=0.01, plot_shift=0.0, plot_range=(-1,1), shell_list=None, save_to_file=False)
|
|
|
|
|
2021-10-13 20:09:48 +02:00
|
|
|
|
|
|
|
if mpi.is_master_node():
|
|
|
|
|
|
|
|
# with HDFArchive('srvo3_spectral.ref.h5', 'a') as ar:
|
2021-12-15 15:01:10 +01:00
|
|
|
# ar['dos_wannier'] = dos_wannier
|
2021-10-13 20:09:48 +02:00
|
|
|
# ar['dos_parproj'] = dos_parproj
|
|
|
|
# ar['spaghetti'] = spaghetti
|
|
|
|
|
|
|
|
with HDFArchive('srvo3_spectral.out.h5', 'a') as ar:
|
2021-12-15 15:01:10 +01:00
|
|
|
ar['dos_wannier'] = dos_wannier
|
2021-10-13 20:09:48 +02:00
|
|
|
ar['dos_parproj'] = dos_parproj
|
|
|
|
ar['spaghetti'] = spaghetti
|
|
|
|
|
|
|
|
h5diff('srvo3_spectral.out.h5', 'srvo3_spectral.ref.h5')
|