Abstract:Cementing quality defects in deep shale gas wells may weaken the constraint provided by the cement sheath and consequently induce local stress concentration in the casing. Based on the in-situ stress and wellbore pressure conditions of a deep shale gas well in the Weiyuan area of the Sichuan Basin, a three-dimensional casing–cement sheath–formation finite element model was established in ANSYS to investigate the effects of casing structural parameters, local loss of cement sheath bonding, casing–cement sheath interface debonding width, and eccentricity on casing Mises stress. The effects of typical combined defects were also analyzed, and a sensitivity analysis of the key parameters was conducted. The results show that local loss of cement sheath bonding has the most pronounced influence on casing stress. As the cement sheath loss angle increases, the casing Mises stress first increases and ?then decreases, reaching a relatively high level near 90°. Increasing casing wall thickness and cement sheath elastic modulus can reduce casing stress, whereas increases in casing–cement sheath interface debonding width and the degree of eccentricity aggravate the nonuniform stress distribution in the casing. Under combined defect conditions, local casing stress increases further. Sensitivity analysis indicates that, within the investigated parameter ranges, the cement sheath loss angle and casing wall thickness have relatively significant effects on the mechanical response of the casing. These results demonstrate that cement sheath integrity and its spatial distribution directly affect wellbore load transfer and casing stress state, and can provide a reference for cementing quality control and casing integrity evaluation in deep shale gas wells.