A thermo-electric model of material removal during electric discharge machining