Numerical solutions of chemically reacting flows in porous media