Hello everybody. I want to simulate the effect of Ag on the structure and electronic properties of CdTe. For this, I chose the cubic structure of CdTe and calculated the electronic properties in the Wien2k package. The band gap obtained is 1.51 eV (mBJ), which is in agreement with experiment. Then I replaced one Ag atom with Cd in the CdTe supercell with a size of 2 * 2 * 2. After optimization, I repeated the calculations, but at the same time I got a band gap of 0 eV. I thought that the problem was in optimization through Wien2k and decided to ask a friend from Russia for help to optimize the system on VASP, but after optimization on VASP nothing changed.
Please help me to properly optimize the structure and simulate the effect of Ag on the electronic structure of CdTe.
Thank you in advance