Computation of V-I characteristics in electrostatic precipitators