Simulation for discharge circuit