mirror of
https://github.com/triqs/dft_tools
synced 2024-07-17 16:33:46 +02:00
5.8 KiB
5.8 KiB
None
<html>
<head>
</head>
</html>
In [14]:
import matplotlib
matplotlib.use("Pdf")
import matplotlib.pyplot as plt
%matplotlib inline
%config InlineBackend.figure_format = 'svg'
# set matplotlib parameters
params = {'backend': 'ps',
'axes.labelsize': 13,
'font.size': 13,
'legend.fontsize': 13,
'xtick.labelsize': 13,
'ytick.labelsize': 13,
'text.usetex': False,
'text.latex.preamble': "\\usepackage{mathpazo}, \\usepackage{amsmath}",
'font.family': 'sans-serif',
'font.sans-serif': ['Computer Modern Sans serif']}
plt.rcParams.update(params)
import warnings
warnings.filterwarnings("ignore") #ignore some matplotlib warnings
# numpy
import numpy as np
# .. _svonotebook:
DFT and projections¶
In [1]:
from pytriqs.archive import HDFArchive
In [11]:
# import plovasp converter
import triqs_dft_tools.converters.plovasp.converter as plo_converter
# import VASPconverter
from triqs_dft_tools.converters.vasp_converter import *
# SumK
from triqs_dft_tools.sumk_dft_tools import SumkDFTTools
In [7]:
# Generate and store PLOs
plo_converter.generate_and_output_as_text('plo.cfg', vasp_dir='./')
In [10]:
# create Converter
Converter = VaspConverter(filename = 'vasp')
# run the converter
Converter.convert_dft_input()
In [12]:
sk = SumkDFTTools(hdf_file='vasp.h5')
In [ ]: