Geomechanics of fracture caging in wellbores