## Details on the Hamiltonian and Overlap matrix setup

Due to the partitioning of the unit cell into different regions it is natural to express the Hamiltonian and Overlap matrices in terms of sums of contributions originating from each of these regions. Also the construction of the radial functions in the MT spheres on the basis of the spherical part of the effective potential leads to a seperataion of spherical and nonspherical contributions in the spheres. In consequence the Hamiltonian is expressed as

and the Overlap matrix as

In the following the basic setup of these matrices is sketched. Since this is mainly intended to introduce cutoff parameters and other quantities that are important for the usage of the FLAPW method some contributions to the matrices will be neglected. For example the contributions related to local orbitals are not discussed here. These additional basis functions would increase the matrix size. Also the vacuum contributions will be ignored.

### Interstitial contributions

For the construction of the interstitial contributions to the matrices one defines the step function

It is analytically constructed in reciprocal space as

up to the reciprocal cutoff parameter $G_\text{max}$. $j_1$ is the spherical Bessel function for $l=1$ and $\Omega$ is the unit cell volume. The step function is the indicator function for the interstitial region but due to the finite reciprocal cutoff parameter its real space representation obtained by a Fourier transformation is only approximately correct. Fortunately only the correctness in reciprocal space up to the cutoff parameter is needed and this is fulfilled.

With the definition of the step function the interstitial contributions to the matrices become

and

The reciprocal plane wave cutoff for the step function $G_\text{max}$ is also used for the function $\left(V\Theta\right)(\vec{G})$.

In the Fleur input file the reciprocal plane wave cutoff is set in calculationSetup/cutoffs/@Gmax. Besides $\Theta(\vec{G})$ and $\left(V\Theta\right)(\vec{G})$ it is also the cutoff for the density and the potential in the interstitial region. It has to be at least twice as large as $K_\text{max}$ and also at least as large as the reciprocal cutoff for the exchange-correlation potential $G_\text{max}^{\text{xc}}$.

Note that the expression for the interstitial contributions to the Hamiltonian does not lead to a Hermitian matrix. Since this property is required the actual expression to calculate this contribution is altered to guarantee it. It becomes

### Spherical MT contributions

Since the radial functions are already constructed for the spherical potential in each MT sphere the respective contributions to the Hamiltonian matrix can easily be expressed as

Accordingly the MT contribution to the Overlap matrix becomes

Note that the expression for the Hamiltonian contributions again does not lead to a Hermitian matrix. Therefore it is altered to

The summation over the magnetic quantum numbers $m$ can actually be performed analytically. This makes the calculation of the spherical MT contributions efficient.

### Nonspherical contributions in the MT spheres

For the calculation of the contribution due to the nonspherical part of the potential in a MT sphere one first defines a local Hamiltonian $t_{LL'}^{\alpha[\circ][\diamond]}$ in the basis of the radial functions $u_{l}^\alpha(r_\alpha,E_{l}^{\alpha})$ and $\dot{u}_{l}^\alpha(r_\alpha,E_{l}^{\alpha})$ as

In this expression $\circ$ and $\diamond$ can each stand for a $u_{l}^\alpha(r_\alpha,E_{l}^{\alpha})$ or a $\dot{u}_{l}^\alpha(r_\alpha,E_{l}^{\alpha})$ and $V_{L''}^\alpha(r_\alpha)$ is the potential in the sphere. The Gaunt coefficients $G_{ll''l'}^{mm''m'}$ are defined as

The local Hamiltonian then has to be incorporated into the global Hamiltonian for the whole unit cell by applying the matching coefficients. One obtains

In these expressions the sums over $L$ and $L'$ are actually limited by the reduced $l$ cutoff parameter $l_\text{nonsph}^\alpha$. While in the calculation for the spherical contributions very high $l$ cutoff parameters were required to obtain reasonable kinetic energies and Overlap matrices, the sums involved for the nonspherical contributions are related to the potential only. In practice this implies that smaller cutoffs can be used here. Note that the reduction of the $l$ cutoffs reduces the computational demands significantly.

In the Fleur input file the cutoff parameters $l_\text{nonsph}^\alpha$ are set for each atom species separately in atomSpecies/species/atomicCutoffs/@lnonsphr.