Study of transfer and flow in porous media in nonequilibrium