Numerical simulation of anomalous infiltration in porous media