The optical fiber sensor holds many advantages such as smaller volume, lighter weight, higher sensitivity, and stronger anti-interference ability, etc. It can be applied to oil exploration to improve the exploration efficiency, since the underground petroleum distribution can be obtained by detecting and analyzing the echo signals. In this paper, the cantilever beam optical fiber sensor was mainly investigated. Specifically, the finite element analysis method is applied to the numerical analysis of the changes and relations of the optical fiber rail slot elongation on the surface of the PC material fiber winding plate along with the changes of time and power under the action of sine force. The analysis results show that, when the upper and lower quality blocks are under the action of sine force, the cantilever beam optical fiber sensor structure can basically produce synchronized deformation along with the force. And the optical fiber elongation length basically has a linear relationship with the sine force within the time ranges of 0.2~0.4 and 0.6~0.8, which would be beneficial for the subsequent signal acquisition and data processing.