Fluid flow and mineral reactions at high temperatures and pressures