Flow based grids for reservoir simulation