I am trying to calculate the defect formation energy of ABX3 type perovskite. I don't understand how to calculate the charged defect formation energy.Suppose, I am creating a vacancy A by removing one A atom. will that be a neutral defect or charged? Also, how can I get the graph attached below. (See formation energy.png)
Please give me an elaborate explanation.
Thanks