Flow measurement solution for partially filled pipes