Reactive flow and permeability prediction — numerical simulation of complex hydrogeothermal problems