3
0
mirror of https://github.com/triqs/dft_tools synced 2024-11-18 12:03:50 +01:00
dft_tools/doc/tutorials/images_scripts/Sr2MgOsO6_noSOC.py

20 lines
446 B
Python
Raw Normal View History

2020-03-30 15:55:02 +02:00
# Conversion:
from triqs_dft_tools.converters.wien2k_converter import *
Converter = Wien2kConverter(filename = "Sr2MgOsO6_noSOC")
Converter.convert_dft_input()
import numpy
numpy.set_printoptions(precision=3, suppress=True)
# Set up SK class:
from triqs_dft_tools.sumk_dft import *
SK = SumkDFT(hdf_file='Sr2MgOsO6.h5',use_dft_blocks=True)
eal = SK.eff_atomic_levels()
mat = SK.calculate_diagonalization_matrix(prop_to_be_diagonal='eal')