Classification of flow patterns in rectangular shallow reservoirs