Hardware acceleration for fluid flow simulation