Javier Chico Vázquez
← Back to projects

INTERACTIVE / FLUID FLOW

Wind tunnel

Place a shape in the flow, drag and turn it, and watch its wake develop. Compare blunt and streamlined shapes across Reynolds numbers.

Loading…
Your browser does not support the canvas element.
tU/L 0.0
Flow times L/U per second —Object held still

Drag the object to move it. Focus the canvas and use the arrow keys (Shift moves faster) and [ ] to turn it. Press Space to pause or resume.

2D / GPU / LIVE

01 / GEOMETRY

Object

Changing shape resets the flow.
0°
−180°180°

Positive angles raise the upstream end. The object turns smoothly and keeps the flow. L is the diameter, 32 cells.

02 / FLOW

Conditions

100
20200
4
SlowFast
16,000
2,00040,000
6
OffLong
About this model

The flow is two-dimensional, time-dependent and incompressible in the low-Mach-number limit, computed live on the graphics card with a lattice Boltzmann method (D2Q9, two-relaxation-time collision). The lattice is uniform, 640 × 320 cells. The circle is 32 cells across (D), so the tunnel is 20D long and 10D high. The other shapes are drawn at a similar size; the aerofoil and shark are longer. The inlet supplies uniform flow, the top and bottom are slip boundaries, and the moving object imposes no-slip through a staircase bounce-back surface. The last three object lengths before the outlet are a sponge whose viscosity rises smoothly, absorbing vortices before they reach the open outlet; the object is kept upstream of it.

Reynolds number is Re = UL/ν, with U the inlet speed and L the usual length for each shape. L is the diameter for the circle and D-section, the length for the ellipse, rectangle and shark, the height for the plate, the length along the flow for the triangle, the outer diameter for the trefoil, and the chord for the aerofoil. L does not change when the object turns. The slider changes ν with U and L fixed. Time is shown in flow times L/U. The speed control only sets how many flow times are computed per real second, and the simulation slows down if the graphics card cannot keep up.

Dragging prescribes the object’s motion. It accelerates smoothly towards the pointer at no more than the inflow speed, so the solid and its wake respond physically rather than teleporting; the faint ring marks the target when the object is still on its way. Turning works the same way: the object rotates as a rigid body, its surface moving with the rotation, and no point of it moves faster than half the inflow speed.

The aerofoil is a NACA four-digit section with 4% camber and 24% thickness: thick, to be resolved by about 11 cells. The shark is a simplified outline. All surfaces are staircase approximations on the grid, so thin features such as fin tips are only a few cells wide.

Reset starts from uniform flow with a small, smooth sideways disturbance, about 10% of the inflow speed, one object length behind the body. Without it a perfectly symmetric start delays the onset of shedding for a long time; below the onset Reynolds number the disturbance simply decays.

Particles are passive tracers advected with the computed velocity (midpoint rule, every four lattice steps). Their trails are recent pathlines, not streamlines, and display settings do not change the fluid.

This is a qualitative, exploratory simulation: finite domain, two-dimensional, coarse near the surface. It does not report forces or boundary-layer thickness. See the notes below for what can and cannot be read from it.

Moving boundaries in lattice Boltzmann methods ↗

READING

Ideas behind the flow