Simulation study of discharge processes in thunderstorm