Text this: Simulation of electrical discharge machines power generator