D2Q9 LBM simulation of a lid-driven cavity. The top wall moves right, driving a primary vortex and corner eddies. Color shows velocity magnitude; streamlines trace the flow structure at different Reynolds numbers.