Loading the engineShared by all simulations, so the next one opens instantly.
The physics

Push a viscous fluid through a straight channel and it settles into the simplest flow there is: a parabola, fastest in the middle and at rest on the walls. Gotthilf Hagen (1839) and Jean Poiseuille (1840) measured it in pipes, Poiseuille to understand blood flow in capillaries. It is one of the few exact solutions of the Navier-Stokes equations, and it says that the flow through a channel grows with the cube of its width (in a round pipe, the fourth power of its radius).

What you see

A channel 300 cells long and 98 cells high, walls at the top and bottom, ends wrapping around so the fluid circulates forever. A uniform force, standing in for a pressure drop, pushes it to the right. The display shows vorticity (red and blue for spin of opposite sense), or the speed or pressure.

Equation

The lattice Boltzmann method evolves populations moving along the nine directions of a square lattice, relaxing toward a local equilibrium; their moments obey the Navier-Stokes equations with viscosity ν=(τ−12)/3. The force enters by Guo’s scheme, which adds exactly its momentum each step (measured to 10−6). In steady state it balances the friction of the walls:

u(y)=F2νy(H−y),Umax=FH28ν.

The force is set so that Umax=0.05 for every Reynolds number Re=UmaxH/ν. The developed profile matches the parabola within 2% of Umax in every row (measured). A frame is 20 lattice steps.

Presets

Poiseuille flow: Re = 50, empty channel, starting at rest. Friction from the walls spreads inward by diffusion, so the profile takes the viscous time H2/(π2ν) to form: the center reaches 95% of its final speed after about 25 seconds.

Cylinder in the channel: Re = 100 with a cylinder a fifth of the channel high. The same force now carries less than half the flow (measured 44%), since the cylinder adds its drag, and the wake behind it is steady.

Cylinder, slow shedding: Re = 600, the top of the slider. The flow through the channel is a third of the empty channel’s, and the wake swings slowly, about once every 6 seconds.

Parameters

Reynolds number Re: 10 to 600, for the empty channel. Applies live.

Obstacle: none or a cylinder. Applies on Reset.

Display: vorticity, speed or pressure; streamlines can be drawn on top.