Text this: Thermal analysis of EDM discharge