In this thesis, in order to make our simulation program more accurate at the actual manufacturing process, we will use the C language to build the three dimensional cylindrical coordinate simulation program. It can help us improve the accuracy of arc junction and compare Cartesian coordinate system with Cylindrical coordinate system. We can validate our program by simulating a cylindrical resistor, and discuss the effect on depletion width, electric field and threshold voltage caused by the variation of R radius. Finally, we have further developed a special floating contact to solve the problem that the body cannot be contacted directly in a device with surrounding gates .