In order to calculate the effect on the beam caused by an irregular accelerator element, we have expanded and improved the Linear and Electrostatic Accelerator Dynamics Simulation (LEADS) code. To achieve better calculation precision, the element was divi