Self-Consistent Simulations of ICRH With the Background Equilibrium In Tokamaks and Stellarators