Multi-scale modelling of coupled thermo-hydro-mechanical-chemical processes in fractured rocks