A continuum mechanics approach to streamflow modeling