determination of flow pattern