Geomechanics modeling for better drilling performance