Iris Theophilou edited RDMFT1.tex  over 9 years ago

Commit id: 6e7bcffa0263b1a27c285babd944c334ed5c5651

deletions | additions      

       

\begin{eqnarray}  F_{ji}=\theta(i-j)(\lambda_{ji}-\lambda^{*}_{ij})+\theta(j-i)(\lambda^{*}_{ij}-\lambda_{ji}),\label{eqF}  \end{eqnarray}  where $\theta$ is the unit-step Heavside function.We initialize the whole matrix as $F_{ji}=(\lambda_{ji}+\lambda_{ij}^{*})/2$. In every iteration we diagonalize F keeping the diagonal elements for the next iteration while changing the off-diagonal ones to (\ref{eqF}). At the solution all off-diagonal elements of this matrix vanish, hence, the matrices $\mathbf{F}$ and $\gamma$ can be brought simultaneously to a diagonal form. Thus, the $\{\phi_i\}$ which are the solutions of Eq. (\ref{eqlambda}) can be found by diagonalization of $\mathbf{F}$ in an iterative manner (see \cite{Piris} for details). The overall convergence criteria is are  the convergence of the relative total energy and the matrix elements of $\mathbf{F}$ \label{eqF} \ref{eqF}  to be closeenough  to zero. As already mentioned above, one needs an initial guess for the natural orbitals both for the first step of occupation number optimization but also for the optimization of the natural orbitals. A rather obvious choice would be the occupied and a few unoccupied orbitals resulting from a DFT or HF calculation. Unfortunatelly, as we found out, there are unbound states among the HF (or DFT) unoccupied states which provide a very bad starting point for the weakly occupied natural orbitals. This is not surprising as especially the higher unoccupied HF or DFT orbitals see in practice no potential. In an implementation on a finite grid they act like particles in a box. In contrast to this the weakly occupied natural orbitals are localized around the atoms. As a result, using HF or DFT orbitals to start a RDMFT calculation, the natural orbitals did not converge to any reasonable shape (some of the weakly occupied natural orbitals were still unbound). In order to check that the only problem of the RDMFT implementation in octopus is the appropriate choice of an initial guess, we performed an RDMFT calculation using HF orbitals from a Gaussian basis set code as our starting point. This provides more localized unoccupied orbitals since they have to be linear combination of Gaussians. With this initial guess we found natural orbitals that looked reasonable. The process of finding an appropriate initial guess for the weakly occupied orbitals without having to rely on a different code is still ongoing. However, we are sure this is the only remaining problem in the implementation. In Fig. \ref{fig:rdmft_h2} we show the results obtained with the initial guess from the Gaussian implementation. It shows the energy curve for the hydrogen molecule as a function of the distance $R$ between the two hydrogen atoms. For this calculation we kept thirtheen natural orbitals with the weakest occupied having occupancy of the order of $10^-6$ after RDMFT had converged. The curve looks the same as in other implementations of RDMFT (cite..) keeping the nice feature of not diverging in the dissociation limit. Therefore, apart from the problem of the initial guess for the weakly occupied orbitals the RDMFT implementation is working. Hopefully, this last remaining problem will be solved in the very near future. In addition we plan to include an open-shell version of RDMFT and additional approximate functionals. Since many available functionals are of very similar form as the M\"uller functional, only differing in their dependence on the occupation numbers, their implementation will be rather straightforward.