I'm new to DFT. I'm trying to figure out how projected density of states (PDOS) is built in solid state physics software package.
I understand the basics of the density functional theory method: each orbital of each substance is described by basis functions, the concept of electron density $\rho$ is introduced and there is a one-to-one correspondence between the wave functions and the introduced electron density. However, I do not fully understand the principles of computer calculations.
According to the initial position of the atoms, the initial value of $\rho_0$ is specified. The pseudopotential and the exchange-correlation potential are set. Then the Kohn-Sham equations are solved, where $\rho_0$ is specified as the initial approximation, until the next value of $\rho_{i+1}$ differs from the previous $\rho_i$ by the allowable error $\varepsilon$.
How is the PDOS determined further? Indeed, in the compound there are common orbitals, as the algorithm determines from the electron density a specification of the electrons ($s, p ,d, f$) and the energy that they can occupy? (How is the PDOS determined for each individual kind, if the orbitals are common?)
Perhaps I do not fully understand the principles of DFT itself, please explain.