Vortex Shedding
14. 0 Release
Introduction to ANSYS
FLUENT
1 © 2011 ANSYS, Inc. January 19, 2012 Release 14.0
I Introduction
Workshop Description:
The purpose of this workshop is to introduce good techniques for
transient flow modeling.
Learning Aims:
This workshop teaches skills for running FLUENT for time‐dependant
(transient) simulations. Topics covered include:
– Selecting a suitable timestep ‐ using custom‐field‐functions (CFF)
– Auto‐saving results during the simulation ‐ generating fast‐Fourier Transforms (FFT)
– Generating images during the simulation ‐ Transient post‐processing in CFD‐Post
Learning Objectives:
To show how to set up, run and post‐process a transient (time‐
dependant) simulation, as well as additional skills in using custom field
functions and Fast‐Fourier‐Transforms.
Cylinder D1 2 m (dia.)
Inlet Length D2 20 m = 10 D
Outlet Length D3 30 m = 15 D
Width D4 40 m = 20 D
Final domain
extent
• Close the scale panel and Check the Mesh
‐ General > Check
‐ General > Report Quality
• Display the grid again once scaling has been performed
‐ General > Display
Introduction Model Setup Solving PostProcessing Summary
8 © 2011 ANSYS, Inc. January 19, 2012 Release 14.0
Solver & model
• Keep the steady‐state pressure‐based solver
• Keep laminar model
• The properties to be used for the material ‘air’ need to be set
‐ For Density, enter 1 kg/m3
‐ For Viscosity, enter 0.01 kg/m‐s Later on we will compare the
‐ Select Change/Create FLUENT results with those from a
literature search. We have
changed the default material
properties for air to aid that
comparison.
• Solution Methods
‐ Select ‘QUICK’ scheme for Momentum equation
• Create points to monitor quantity
‐ Surface (top menu) > Point
• Specify coordinates (2 , 1)
• Activate point tool to check location on the grid
• (check out point tool before closing panel)
• Create, then close
• Surface monitor on point
‐ Monitors > Surface Monitors > Create
• Select “Vertex‐Average” on report type and “Velocity” “Y‐velocity” in field variable
• Select point‐6 (the point created above at co‐ordinates [2,1])
• Options: Print to Console & Plot, then OK
Introduction Model Setup Solving PostProcessing Summary
11 © 2011 ANSYS, Inc. January 19, 2012 Release 14.0
Solution Initialization
• Initialize the flow field based on the far‐field boundary
‐ Select Standard Initialization
‐ Compute from > “in” (inlet zone)
‐ Initialize
• Save the case file
‐ File > Write Case
You can write case and data files with extension .gz – the files will be compressed automatically
We have tried to solve this vortex‐
shedding problem in a steady‐state
manner. Note that solution is not
converging and monitor shows a
regular periodic behavior
Steady state
solution is
asymmetric
Introduction Model Setup Solving PostProcessing Summary
14 © 2011 ANSYS, Inc. January 19, 2012 Release 14.0
Save the Case&Data Files and make transient
• Save the Case&Data files
- File > Write Case&Data
• You can write case and data files with extension .gz – the files will be compressed automatically
To obtain a more realistic solution to this problem we will solve it again, but in a
transient (time dependant) manner
• Under Problem Setup > General, change the time option to ‘Transient’
Use this option to
change the display to
show both output
Windows
• Although we now have simulated a couple of oscillations, in order to obtain a true
representation of the vortex shedding we need to simulate many more cycles. With each
cycle, the ‘starting position’ converges with time until eventually all cycles are identical.
• It will take many cycles to achieve this, so we have provided case and data files that has
already been converged (simulation time of 84secs). You will then run this on for a further
couple of cycles to extract the detail of the fluctuating flow patterns.
• So, read in the supplied Case and Data file:
vortex‐shedding‐converged.cas.gz and .dat.gz
‐ NITA is an algorithm used to speed up the
transient solution process
‐ NITA runs about twice as fast as the ITA scheme
2
‐NITA scheme reduce the splitting error to O(Δt2)
by using sub‐iterations per time step
Overall time-discretization Truncation Splitting error (due
error for 2nd-order scheme: = error: O(t2)
+ to eqn segregation):
O(t2) O(tn)
‐ Two flavors of NITA schemes available
‐ PISO (NITA/PISO)
‐ Fractional‐step method (NITA/FSM) 1
About 20% cheaper than NITA/PISO on a per
time‐step basis
1) Saving the results data every (n) timesteps to disk. This will give a collection of files
that can be post‐processed at a later date, either using FLUENT or CFD‐Post. However
having to load in a large number of files can be time consuming.
2) The alternative is to extract the required result (like an image from which to build an
animation) from FLUENT during the solution process. Since all the data is in memory at
that instant, this is very quick to perform.
We will do both in this example.
The peak Strouhal number is 0.171, which is close to the 0.165
that was suggested by the literature search. To extract the exact
peak value from this graph, enable ‘Write FFT to file’ and look at
the text file on disk. The second peak is a harmonic as the input
signal is not perfectly sinusoidal.
• Pick a time value from
the list then Apply to
see the result at that
timestep
• Click on the film icon,
then the play button,
for a quick animation
of all saved timesteps.
Recall that in FLUENT, we
generated a contour plot
every 2 timesteps. We
saved the data files used
here every 5 timesteps
Introduction Model Setup Solving PostProcessing Summary
36 © 2011 ANSYS, Inc. January 19, 2012 Release 14.0
Optional Further work
• There are many ways the simulation in this tutorial could be extended.
• Mesh independence
– check that results do not depend on mesh
– re‐run simulations with finer mesh(es)
• generated in Meshing application, or
• from adaptive meshing in FLUENT
You can investigate other
• Reynolds number effects flow pattern by changing
the Reynolds number.
– For lower Reynolds number, steady state analysis with laminar model is possible.
– For higher Reynolds numbers, unsteady transitional turbulent models (k‐kl‐omega,
SST) have to be considered.
– While for Reynolds number higher than 3.5×106 , RANS k‐omega approach would be
used.
In this case we were interested in calculating flow around a cylinder, and assessing
the vortex shedding frequency. We checked with FFT analysis that predicted
frequency is in good agreement with results from literature.
Knowing your aims from the start will help you make sensible decisions of how
much of the part to simulate, the level of mesh refinement needed, and which
numerical schemes should be selected.
Introduction Model Setup Solving PostProcessing Summary
38 © 2011 ANSYS, Inc. January 19, 2012 Release 14.0
References
Braza, M., Chassaing, P., and Minh, H.H., Numerical Study and Physical Analysis of
the Pressure and Velocity Fields in the Near Wake of a Circular Cylinder, J.
Fluid Mech., 165:79‐130, 1986.
Coutanceau, M. and Defaye, J.R., Circular Cylinder Wake Configurations ‐ A Flow
Visualization Survey, Appl. Mech. Rev., 44(6), June 1991.
Williamson, C.H.K, “Vortex Dynamics in The Cylinder Wake,” Annu. Rev. Fluid
Mechanics 1996. 28:447‐539