# Cfd simulation of vortex shedding

(Difference between revisions)
 Revision as of 00:14, 10 October 2007 (view source)Slffea (Talk | contribs) (→Example of 2 Dimensional Problem: Added better results.)← Older edit Revision as of 00:48, 10 October 2007 (view source)Slffea (Talk | contribs) (→Example of 2 Dimensional Problem: Formatting)Newer edit → Line 12: Line 12:

[[Image:vortex_vy.jpg|thumb|200px|left|velocity y at 16s and 400 timesteps.]] [[Image:vortex_vy.jpg|thumb|200px|left|velocity y at 16s and 400 timesteps.]] -
-
[[Image:Vortex_streaklines-0ang.jpg|400px|thumb|center|[[streaklines]] at 8s and 200 timesteps for 0 angle of attack flow.]] [[Image:Vortex_streaklines-0ang.jpg|400px|thumb|center|[[streaklines]] at 8s and 200 timesteps for 0 angle of attack flow.]]

## Revision as of 00:48, 10 October 2007

To numerically simulate vortex shedding, CFD is used to calculate the unsteady flow that arises from a fluid moving past an obstruction. Downwind of the obstruction are regions of lower pressure which causes the fluid which initially was deflected around the obstruction to get sucked into these regions, begin to circulate, and form vortices.

For a Newtonian fluid, it is sufficient to use the Navier-Stokes equations as the governing equations, and choose either the finite element method, FEM, or finite differencing, FD, to do the simulation. Vortex shedding is more likely in incompressible fluids than compressible fluids, so the former is used when capturing this phenomenon. Although both types of fluids are represented by the Navier-Stokes equations, their methods of solution differ significantly. For instance, when using FD for incompressible fluids, it is common to have an explicit expression for the velocity as you integrate the equations in time. In compressible fluids, the governing equations are often written in terms of the conservative form of Euler's equation, with velocity and pressure extracted from the conserved quantities(e.g. mass, momentum, energy). Also, compressible flows usually involve the calculation of additional quantities such as density and temperature.

## Example of 2 Dimensional Problem

The images below were created for the case of 2-D flow past a square obstruction with a Reynolds number of 1000 and freestream boundary conditions on the top, bottom, and right boundaries. The quantities of the Navier-Stokes equations were non-dimensionalized and the QUICKEST finite differencing algorithm by B.P. Leonard was used. The grid was uniform with 102 points in the x direction and 45 points in y.

pressure at 16s and 400 timesteps.

velocity x at 16s and 400 timesteps.

velocity y at 16s and 400 timesteps.
streaklines at 8s and 200 timesteps for 0 angle of attack flow.

streaklines at 16s and 400 timesteps for 0 angle of attack flow.

streaklines at 16s and 400 timesteps for 15 angle of attack flow.

## Pressure Corrector

The incompressibility of the fluid is enforced through the continuity equation using pressure as a corrective quantity whose gradient in either the x or y direction is added to the velocity in the respective direction. Calculating the pressure correction involves solving the discrete Poisson equation for pressure.

## Staggered grid

Use of a staggered grid, where pressure and velocities in the x and y directions are calculated at alternating grid points, is commonly used with upwinding to avoid oscillatory behavior.