Thermoporoelastic modelling of wellbore stability in non-hydrostatic stress field