Dynamics of the photospheric vertical flow