Stokes Flow

P2P1 triangles were used to discretize the Stokes Equations.

Lid Driven Cavity


The velocity magnitude and vectors for the Lid Driven Cavity problem. The top wall has a fixed velocity of 1 and the sides and bottom have no slip boundary conditions.

Flow Over a Cylinder


The velocity magnitude, vectors, and streamlines for Stokes Flow across a cylinder.

The code can be found here. Building the stokes.cpp executable and running:
./stokes.exe cavity
and
./stokes.exe flow
will generate the data for the plots shown above.

Leave a Reply

Your email address will not be published.