hello everyone,
i have made supercell of tio2 and doped with non metal and i want to calculate formation energy for ti -rich and o-rich condition. for that i need to specify chemical potential of ti and o. so how to specify ti and o chemical potential in order to get ti or o rich condition using charge point defect.