In the last years, mid-infrared radiation emitted by CO2 lasers has become increasing popular as a tool in the development of long-period fiber gratings. However, although the development and characterization of the resulting sensing devices have progressed quickly, further research is still necessary to consolidate functional models, especially regarding the interaction between laser radiation and the fiber's material. In this paper, a 3D finite element model is presented to simulate the interaction between laser radiation and an optical fiber and to determine the resulting refractive index change. Dependence with temperature of the main parameters of the optical fiber materials (with special focus on the absorption of incident laser radiation) is considered, as well as convection and radiation losses. Thermal and residual stress analyses are made for a standard single mode fiber, and experimental results are presented.