Hi all,
I am trying to calculate segregation energy for an impurity atom X using its solution energies at grain boundary and in the bulk of an element Y. The problem is that the pure grain boundary cell of Y has 2 more atoms than its pure bulk cell. I can't make the number of atoms same in these supercells.
Eseg= E(X)+E(Y) - E(X+Y) - Eperfect cell
E(X) is the energy of perfect Y cell with one X atom at an interstitial site; 18 + 1 atoms
E(Y) is the energy of pure Y grain boundary(GB) cell; 20 atoms
E(X+Y) is the energy of the GB cell with one X atom; 20 + 1 atoms
Eperfect is the energy of perfect cell; 18 atoms
Would the segregation energy be erroneous as the cell energies have been computed for cells with different number of atoms ? If so, how should I rectify this error ?