Docsity

CFD Separated-Flow: Simulating 2D Laminar and Turbulent Flow with Bluff Body Software, Study notes of Physics

Toggle sidebar
bg1
CFD Separated-Flow Example - 1 David Apsley
SEPARATED-FLOW EXAMPLE SPRING 2011
1. Notes on the program
2. Assigned exercises
1. NOTES ON THE PROGRAM
1.1 Accessing and Running the Program
The following files must be downloaded from Blackboard or the CFD web page:
bluff.exe (graphical user interface)
gridbluff.exe (grid generator)
streambluff.exe (CFD solver)
Start by double-clicking the graphical user interface. All files will be saved in the folder from
which you run the program.
1.2 The Flow Considered
The program simulates 2-d laminar or turbulent flow
over either a rectangular block or a semicircular
cylinder.
In either case the code uses a multi-block structured
mesh produced by the grid generator.
Fully-developed flow is assumed at inflow, which is
determined by an initial 1-d channel-flow calculation.
All variables are non-dimensionalised using the bulk (i.e., channel-average) velocity UB and
object height H. The Reynolds number is defined as UBH/.
1.3 Program Operation
The sequence of operations for a particular geometry (and, if used, turbulence model) is:
• generate a grid;
• solve 1-d (to get the inflow profile);
• solve 2-d;
• analyse/plot.
No logic is built in to ensure that this sequence is followed. It is your responsibility to ensure
that if, for example, you change or reset the grid or flow parameters then you re-run the 1-d
calculation to establish a new inflow profile.
Since all transfer between components is by reading and writing files it is possible to exit the
program at any stage and restart from the previous configuration.
pf3
pf4
pf5

Partial preview of the text

Download CFD Separated-Flow: Simulating 2D Laminar and Turbulent Flow with Bluff Body Software and more Study notes Physics in PDF only on Docsity!

SEPARATED-FLOW EXAMPLE SPRING 2011

  1. Notes on the program
  2. Assigned exercises

1. NOTES ON THE PROGRAM

1.1 Accessing and Running the Program

The following files must be downloaded from Blackboard or the CFD web page: bluff.exe (graphical user interface) gridbluff.exe (grid generator) streambluff.exe (CFD solver)

Start by double-clicking the graphical user interface. All files will be saved in the folder from which you run the program.

1.2 The Flow Considered

The program simulates 2-d laminar or turbulent flow over either a rectangular block or a semicircular cylinder.

In either case the code uses a multi-block structured mesh produced by the grid generator.

Fully-developed flow is assumed at inflow, which is determined by an initial 1-d channel-flow calculation.

All variables are non-dimensionalised using the bulk (i.e., channel-average) velocity UB and object height H. The Reynolds number is defined as UBH /.

1.3 Program Operation

The sequence of operations for a particular geometry (and, if used, turbulence model) is:

  • generate a grid;
  • solve 1-d (to get the inflow profile);
  • solve 2-d;
  • analyse/plot.

No logic is built in to ensure that this sequence is followed. It is your responsibility to ensure that if, for example, you change or reset the grid or flow parameters then you re-run the 1-d calculation to establish a new inflow profile.

Since all transfer between components is by reading and writing files it is possible to exit the program at any stage and restart from the previous configuration.

1.4 Main Buttons

Grid [Set up block] set default grid parameters – rectangular block [Set up cylinder] set default grid parameters – semicircular cylinder [Edit parameters] edit grid parameters [Run] generate the grid

Case [Set up] set test-case parameters (here, just a presentation grid) [Edit parameters] edit test-case parameters

Solver [Set up laminar] set parameters for a default laminar-flow calculation (Re = 10) [Set up turbulent] set parameters for a default turbulent-flow calculation (Re = 10^5 , with the k - ε eddy-viscosity model and wall functions) [Edit parameters] edit solver parameters [Run 1D] run a 1-d calculation to get the fully-developed inflow profile [Run 2D] run a full 2-d calculation

Plot [Set near] set parameters for a default plot focused on the object [Set far] set parameters for a default plot showing the whole domain [Edit parameters] edit individual plot parameters

[Grid] plot the grid [Blocks] plot the grid

[Inflow] plot the inflow mean-velocity profile [Profiles] plot velocity profiles (streamwise component) along the channel [Streamlines] plot streamlines [Pressure] plot pressure contours [Turbulent KE] plot turbulent-kinetic-energy contours

[Vectors (all)] plot velocity vectors at all grid nodes [Vectors (regular)] plot interpolated velocity vectors on a regular grid

Hard Copy [Save plot] save the current view as a plot file (png format) [Quit] does what it says on the can

The [Edit parameters] buttons launch menus for grid, solver and plot parameters. The program carries out some checks to exclude unreasonable values, but it is not foolproof!

Most field data is available for plotting whenever the CFD solver backs up intermediate results. However, the inflow profile, velocity profiles and vectors on a regular grid are only computed on completion of the CFD calculation.

What is under-relaxation and why is it used?

What is the effect of under-relaxation on (i) the rate of convergence of the solution; (ii) the final solution itself?

(L5) Grid Dependence Edit the grid parameters file to increase grid density in each direction by a factor of 2 (i.e. double all the cell-number parameters NXupstream etc.). Re-run the grid generator. Reset the default laminar-flow parameters and change the output interval to 1. Run 1-d and 2-d calculations.

Using the default differencing scheme, under-relaxation factors and residual tolerance, how many iterations are required to get the 2-d solution on the finer grid?

What is the length to downstream reattachment on the finer grid? Are there any significant differences between the computed flows on coarser and finer grids?

As well as increasing the total number of cells, what other grid parameters could one consider adjusting in this problem?

(L6) Change of Reynolds Number Using the fine grid from (L5), edit the solver parameters to use a Reynolds number of 100. Recompute the 1-d and 2-d solutions. Plot streamlines and velocity profiles and include the plots in your report. (As in (L2) you should use plot regions which illustrate the important features of the flow. You must also edit the streamline levels file to plot representative streamlines in the reversed-flow region.)

State and explain the differences made by the change of Reynolds number on the length of downstream recirculation and the maximum backflow velocity.

(L7) Flow Around Curved Body Set up and generate the default grid for a semi-circle. Set up the default laminar flow. Compute the 1-d inflow profile and 2-d solution. Plot streamlines and velocity vectors (on the computational mesh) in the vicinity of the object and include the plots in your report. Determine all separation or reattachment points on the channel boundary and comment upon the nature and extent of separation for this curved body compared with that for a rectangular block.

2.2 Turbulent Flow

(T1) Inflow Set up and generate the default grid for a rectangle. Set up the default turbulent flow. Run the 1-d simulation to compute the inflow velocity profile. Plot the inflow profile and include it in your report. Compare with the laminar inflow profile and give reasons for the differences.

(T2) Advection scheme Change the output interval to 1. Run the 2-d simulation to convergence with the default UMIST advection scheme. Record the downstream reattachment point and the number of iterations required for convergence.

Change the advection scheme for both momentum and turbulence scalars to UPWIND. (You do not need to re-run the 1-d calculation, which doesn’t depend on advection). Run the 2-d calculation from scratch and record the downstream reattachment point and the number of iterations required for convergence.

Now create a finer grid by doubling the number of grid cells in each direction as in L5 and run a 1-d calculation (with either advection scheme). For each of the UMIST and UPWIND schemes record the downstream reattachment point and the number of iterations required for convergence.

Which scheme requires less iterations for convergence? Why might you expect this?

Which scheme is less sensitive to the mesh size? Why?

(T3) Flow Pattern Using the converged ( UMIST ) solution from the default grid about the rectangular block, plot the streamlines and velocity profiles and include the plots in your report. (As usual, edit the graphics parameters to include a plot region which illustrates the important features of the flow and doesn’t distort the block.)

Does the flow separate at the upstream top corner of the block? If so, does it reattach on the top of the block?

(T4) Turbulent Diffusion This flow is at a Reynolds number of 10^5. Why is the ratio of reattachment length to block height smaller than for a laminar flow at much smaller Reynolds number (e.g. Re = 100)?

(T5) Turbulent Kinetic Energy Using the converged ( UMIST ) solution from the default grid about the rectangular block, produce one sensible plot of the turbulent kinetic energy and include the plot in your report.

What is the maximum non-dimensional turbulent kinetic energy k in this flow domain?

What features of the mean flow correlate with regions of high turbulence intensity?