A two-dimensional electromagnetic PIC particle simulation code in cylindrical mesh, with r- and z-coordinate dependence, has been simply introduced. The code is used to study penetration of the magnetic field in plasma of PEOS. For different boundary, the behaviors of magnetic field are found ,the reasonable explanations are given by physical analysis.