2015-08-13 15:27:50 +02:00
|
|
|
.. _hdfstructure:
|
|
|
|
|
2015-03-12 00:01:12 +01:00
|
|
|
hdf5 structure
|
|
|
|
==============
|
2014-10-28 09:34:34 +01:00
|
|
|
|
2015-03-12 00:01:12 +01:00
|
|
|
All the data is stored using the hdf5 standard, as described also in the
|
|
|
|
documentation of the TRIQS package itself. In order to do a DMFT calculation,
|
|
|
|
using input from DFT applications, a converter is needed on order to provide
|
2020-08-04 10:51:01 +02:00
|
|
|
the necessary data in the hdf5 format.
|
2014-10-28 09:34:34 +01:00
|
|
|
|
2015-03-12 00:01:12 +01:00
|
|
|
groups and their formats
|
|
|
|
------------------------
|
2014-10-28 09:34:34 +01:00
|
|
|
|
2015-03-12 00:01:12 +01:00
|
|
|
In order to be used with the DMFT routines, the following data needs to be
|
|
|
|
provided in the hdf5 file. It contains a lot of information in order to perform
|
|
|
|
DMFT calculations for all kinds of situations, e.g. d-p Hamiltonians, more than
|
|
|
|
one correlated atomic shell, or using symmetry operations for the k-summation.
|
|
|
|
We store all data in subgroups of the hdf5 archive:
|
2014-10-28 09:34:34 +01:00
|
|
|
|
2020-08-04 10:51:01 +02:00
|
|
|
Main data
|
2015-03-12 00:01:12 +01:00
|
|
|
^^^^^^^^^
|
|
|
|
There needs to be one subgroup for the main data of the
|
|
|
|
calculation. The default name of this group is `dft_input`. Its contents are
|
2014-10-28 09:34:34 +01:00
|
|
|
|
2015-03-11 17:41:39 +01:00
|
|
|
================= ====================================================================== =====================================================================================
|
|
|
|
Name Type Meaning
|
|
|
|
================= ====================================================================== =====================================================================================
|
2023-02-07 20:17:51 +01:00
|
|
|
energy_unit float Unit of energy used for the calculation.
|
|
|
|
n_k int Number of k-points used for the BZ integration.
|
|
|
|
k_dep_projection int 1 if the dimension of the projection operators depend on the k-point,
|
2015-03-11 17:41:39 +01:00
|
|
|
0 otherwise.
|
2023-02-07 20:17:51 +01:00
|
|
|
SP int 1 for spin-polarised Hamiltonian, 0 for paramagnetic Hamiltonian.
|
|
|
|
SO int 1 if spin-orbit interaction is included, 0 otherwise.
|
|
|
|
charge_below float Number of electrons in the crystal below the correlated orbitals.
|
2020-08-04 10:51:01 +02:00
|
|
|
Note that this is for compatibility with dmftproj, otherwise set to 0
|
2023-02-07 20:17:51 +01:00
|
|
|
density_required float Required total electron density. Needed to determine the chemical potential.
|
2015-03-11 17:41:39 +01:00
|
|
|
The density in the projection window is then `density_required`-`charge_below`.
|
2023-02-07 20:17:51 +01:00
|
|
|
symm_op int 1 if symmetry operations are used for the BZ sums,
|
2015-03-11 17:41:39 +01:00
|
|
|
0 if all k-points are directly included in the input.
|
2023-02-07 20:17:51 +01:00
|
|
|
n_shells int Number of atomic shells for which post-processing is possible.
|
2020-08-04 10:51:01 +02:00
|
|
|
Note: this is `not` the number of correlated orbitals!
|
2015-03-11 17:41:39 +01:00
|
|
|
If there are two equivalent atoms in the unit cell, `n_shells` is 2.
|
2020-08-04 10:51:01 +02:00
|
|
|
shells list of dict {string:int}, dim n_shells x 4 Atomic shell information.
|
|
|
|
For each shell, have a dict with keys ['atom', 'sort', 'l', 'dim'].
|
2015-03-11 17:41:39 +01:00
|
|
|
'atom' is the atom index, 'sort' defines the equivalency of the atoms,
|
|
|
|
'l' is the angular quantum number, 'dim' is the dimension of the atomic shell.
|
2020-08-04 10:51:01 +02:00
|
|
|
e.g. for two equivalent atoms in the unit cell, `atom` runs from 0 to 1,
|
2015-03-11 17:41:39 +01:00
|
|
|
but `sort` can take only one value 0.
|
2023-02-07 20:17:51 +01:00
|
|
|
n_corr_shells int Number of correlated atomic shells.
|
2020-08-04 10:51:01 +02:00
|
|
|
If there are two correlated equivalent atoms in the unit cell, `n_corr_shells` is 2.
|
2023-02-07 20:17:51 +01:00
|
|
|
n_inequiv_shells int Number of inequivalent atomic shells. Needs to be smaller than `n_corr_shells`.
|
2020-08-04 10:51:01 +02:00
|
|
|
The up / downfolding routines mediate between all correlated shells and the
|
|
|
|
actual inequivalent shells, by using the self-energy etc. for all equal shells
|
|
|
|
belonging to the same class of inequivalent shells. The mapping is performed with
|
|
|
|
information stored in `corr_to_inequiv` and `inequiv_to_corr`.
|
2023-02-07 20:17:51 +01:00
|
|
|
corr_to_inequiv list of int, dim `n_corr_shells` mapping from correlated shells to inequivalent correlated shells.
|
2020-08-04 10:51:01 +02:00
|
|
|
A list of length `n_corr_shells` containing integers, where same numbers mark
|
|
|
|
equivalent sites.
|
2023-02-07 20:17:51 +01:00
|
|
|
inequiv_to_corr list of int, dim `n_inequiv_shells` A list of length `n_inequiv_shells` containing list indices as integers pointing
|
2020-08-04 10:51:01 +02:00
|
|
|
to the corresponding sites in `corr_to_inequiv`.
|
|
|
|
corr_shells list of dict {string:int}, dim n_corr_shells x 6 Correlated orbital information.
|
|
|
|
For each correlated shell, have a dict with keys
|
|
|
|
['atom', 'sort', 'l', 'dim', 'SO', 'irrep'].
|
2015-03-11 17:41:39 +01:00
|
|
|
'atom' is the atom index, 'sort' defines the equivalency of the atoms,
|
|
|
|
'l' is the angular quantum number, 'dim' is the dimension of the atomic shell.
|
|
|
|
'SO' is one if spin-orbit is included, 0 otherwise, 'irep' is a dummy integer 0.
|
2023-02-07 20:17:51 +01:00
|
|
|
use_rotations int 1 if local and global coordinate systems are used, 0 otherwise.
|
|
|
|
rot_mat list of array.complex, Rotation matrices for correlated shells, if `use_rotations`.
|
2020-08-04 10:51:01 +02:00
|
|
|
dim n_corr_shells x [corr_shells['dim'],corr_shells['dim']] These rotations are automatically applied for up / downfolding.
|
|
|
|
Set to the unity matrix if no rotations are used.
|
2023-02-07 20:17:51 +01:00
|
|
|
rot_mat_time_inv list of int, dim n_corr_shells If `SP` is 1, 1 if the coordinate transformation contains inversion, 0 otherwise.
|
2015-03-11 17:41:39 +01:00
|
|
|
If `use_rotations` or `SP` is 0, give a list of zeros.
|
2023-02-07 20:17:51 +01:00
|
|
|
n_reps int Number of irreducible representations of the correlated shell.
|
2015-03-11 17:41:39 +01:00
|
|
|
e.g. 2 if eg/t2g splitting is used.
|
2023-02-07 20:17:51 +01:00
|
|
|
dim_reps list of int, dim n_reps Dimension of the representations.
|
2020-08-04 10:51:01 +02:00
|
|
|
e.g. [2,3] for eg/t2g subsets.
|
2023-02-07 20:17:51 +01:00
|
|
|
T list of array.complex, Transformation matrix from the spherical harmonics to impurity problem basis
|
2020-08-04 10:51:01 +02:00
|
|
|
dim n_inequiv_corr_shell x normally the real cubic harmonics).
|
|
|
|
[max(corr_shell['dim']),max(corr_shell['dim'])] This matrix can be used to calculate the 4-index U matrix, not automatically done.
|
2023-02-07 20:17:51 +01:00
|
|
|
n_orbitals array.int, dim [n_k,SP+1-SO] Number of Bloch bands included in the projection window for each k-point.
|
2015-03-11 17:41:39 +01:00
|
|
|
If SP+1-SO=2, the number of included bands may depend on the spin projection up/down.
|
2023-02-07 20:17:51 +01:00
|
|
|
proj_mat array.complex, Projection matrices from Bloch bands to Wannier orbitals.
|
2020-08-04 10:51:01 +02:00
|
|
|
dim [n_k,SP+1-SO,n_corr_shells,max(corr_shell['dim']),max(n_orbitals)] For efficient storage reasons, all matrices must be of the same size
|
|
|
|
(given by last two indices).
|
2015-03-11 17:41:39 +01:00
|
|
|
For k-points with fewer bands, only the first entries are used, the rest are zero.
|
|
|
|
e.g. if number of Bloch bands ranges from 4-6, all matrices are of size 6.
|
2023-02-07 20:17:51 +01:00
|
|
|
bz_weights array.float, dim n_k Weights of the k-points for the k summation. Soon be replaced by `kpt_weights`
|
|
|
|
hopping array.complex, Non-interacting Hamiltonian matrix for each k point.
|
2020-08-04 10:51:01 +02:00
|
|
|
dim [n_k,SP+1-SO,max(n_orbitals),max(n_orbitals)] As for `proj_mat`, all matrices have to be of the same size.
|
2015-03-11 17:41:39 +01:00
|
|
|
================= ====================================================================== =====================================================================================
|
2014-10-28 09:34:34 +01:00
|
|
|
|
2020-08-04 10:51:01 +02:00
|
|
|
Converter specific data
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
This data is specific to the different converters and stored in the `dft_input`
|
|
|
|
group as well.
|
|
|
|
|
|
|
|
For the Vasp converter:
|
|
|
|
|
|
|
|
================= ====================================================================== =====================================================================================
|
|
|
|
Name Type Meaning
|
|
|
|
================= ====================================================================== =====================================================================================
|
2023-02-07 20:17:51 +01:00
|
|
|
kpt_basis array.float, dim 3x3 Basis for the k-point mesh, reciprocal lattice vectors.
|
|
|
|
kpts array.float, dim n_k x 3 k-points given in reciprocal coordinates.
|
|
|
|
kpt_weights array.float, dim n_k Weights of the k-points for the k summation.
|
2020-08-04 10:51:01 +02:00
|
|
|
proj_or_hk string Switch determining whether the Vasp converter is running in projection mode `proj`, or
|
|
|
|
in Hamiltonian mode `hk`. In Hamiltonian mode, the hopping matrix is written in
|
|
|
|
orbital basis, whereas in projection mode hopping is written in band basis.
|
2023-02-07 20:17:51 +01:00
|
|
|
proj_mat_csc array.complex, Projection matrices from Bloch bands to Wannier orbitals for Hamiltonian based `hk`
|
2020-08-04 10:51:01 +02:00
|
|
|
dim approach. No site index is given, since hk is written in orbital basis. The last to
|
|
|
|
[n_k,SP+1-SO, n_corr_shells x max(corr_shell['dim']), max(n_orbitals)] indices are a square matrix rotating from orbital to band space.
|
2023-02-07 20:17:51 +01:00
|
|
|
dft_fermi_weights array.float, dim n_k x 1 x max(n_orbitals) DFT fermi weights (occupations) of KS eigenstates for each k-point for calculation
|
2020-08-04 10:51:01 +02:00
|
|
|
(stored in dft_misc_input) of density matrix correction.
|
2023-02-07 20:17:51 +01:00
|
|
|
band_window list of array.int , dim(SP+1-SO)x n_k x 2 Band windows as KS band indices in Vasp for each spin channel, and k-point. Needed for
|
2020-08-04 10:51:01 +02:00
|
|
|
(stored in dft_misc_input) writing out the GAMMA file.
|
2020-08-04 10:58:04 +02:00
|
|
|
================= ====================================================================== =====================================================================================
|
2020-08-04 10:51:01 +02:00
|
|
|
|
|
|
|
|
2014-10-28 09:34:34 +01:00
|
|
|
|
2015-03-12 00:01:12 +01:00
|
|
|
Symmetry operations
|
2020-08-04 10:51:01 +02:00
|
|
|
^^^^^^^^^^^^^^^^^^^
|
2015-03-12 00:01:12 +01:00
|
|
|
In this subgroup we store all the data for applying the symmetry operations in
|
|
|
|
the DMFT loop (in case you want to use symmetry operations). The default name
|
|
|
|
of this subgroup is `dft_symmcorr_input`. This information is needed only if symmetry
|
|
|
|
operations are used to do the k summation. To be continued...
|
2014-10-28 09:34:34 +01:00
|
|
|
|
2015-03-12 00:01:12 +01:00
|
|
|
.. warning::
|
|
|
|
TO BE COMPLETED!
|
2014-10-28 09:34:34 +01:00
|
|
|
|
|
|
|
General and simple H(k) Converter
|
|
|
|
---------------------------------
|
|
|
|
|
2015-03-12 00:01:12 +01:00
|
|
|
The above described converter of the Wien2k input is quite involved, since
|
|
|
|
Wien2k provides a lot of information, e.g. about symmetry operations, that can
|
|
|
|
be used in the calculation. However, sometimes we want to use a light
|
|
|
|
implementation where the input consists basically only of the Hamiltonian
|
|
|
|
matrix in Wannier basis, given at a grid of k points in the first Brillouin
|
|
|
|
zone. For this purpose, a simple converter is included in the package, called
|
|
|
|
:class:`HkConverter`, which is implemented for the simplest case of
|
|
|
|
paramagnetic DFT calculations without spin-orbit coupling. It reads a simple,
|
|
|
|
easy to construct text file, and produces an archive that can be used for the
|
|
|
|
DMFT calculations. An example input file for a structure with one correlated
|
|
|
|
site with 3 t2g orbitals in the unit cell contains the following:
|
2014-10-28 09:34:34 +01:00
|
|
|
|
|
|
|
10 <- n_k
|
|
|
|
|
|
|
|
1.0 <- density_required
|
|
|
|
|
|
|
|
1 <- n_shells
|
|
|
|
|
2014-11-26 16:24:02 +01:00
|
|
|
1 1 2 3 <- shells, as above: atom, sort, l, dim
|
2014-10-28 09:34:34 +01:00
|
|
|
|
|
|
|
1 <- n_corr_shells
|
|
|
|
|
2014-11-26 16:24:02 +01:00
|
|
|
1 1 2 3 0 0 <- corr_shells, as above: atom, sort, l, dim, SO, dummy
|
2014-10-28 09:34:34 +01:00
|
|
|
|
2015-05-18 14:01:32 +02:00
|
|
|
2 2 3 <- n_reps, dim_reps (length 2, because eg/t2g splitting) for each inequivalent correlated shell
|
2014-10-28 09:34:34 +01:00
|
|
|
|
2015-03-12 00:01:12 +01:00
|
|
|
After this header, we give the Hamiltonian matrices for al the k-points. for
|
|
|
|
each k-point we give first the matrix of the real part, then the matrix of the
|
|
|
|
imaginary part. The projection matrices are set automatically to unity
|
|
|
|
matrices, no rotations, no symmetry operations are used. That means that the
|
|
|
|
symmetry sub group in the hdf5 archive needs not be set, since it is not used.
|
|
|
|
It is furthermore assumed that all k-points have equal weight in the k-sum.
|
|
|
|
Note that the input file should contain only the numbers, not the comments
|
|
|
|
given in above example.
|
2014-10-28 09:34:34 +01:00
|
|
|
|
2020-08-04 10:51:01 +02:00
|
|
|
The Hamiltonian matrices can be taken, e.g., from Wannier90, which constructs
|
|
|
|
the Hamiltonian in a maximally localized Wannier basis.
|
2014-10-28 09:34:34 +01:00
|
|
|
|
2015-03-12 00:01:12 +01:00
|
|
|
Note that with this simplified converter, no full charge self consistent
|
|
|
|
calculations are possible!
|