Numerical simulation of fluid - mineral interaction and reactive transport in porous and fractured media