Simulation of the gasdynamic and electromagnetic processes in low voltage switching arcs