Docsity

Computational Fluid Dynamics - Fluid Flow - Lab Report, Study notes of Fluid Dynamics

Toggle sidebar
bg1
Procedure and Presentations of Results
A. Influence of the Extent of the Computational Domain
The first exercise in this lab involves calculation of turbulent flow over a two-dimensional rectangular block. Figure 7
of the Introduction illustrates the computational domain and the boundary conditions applied to this flow field. In this
exercise, FlowLab, the instructional version of FLUENT, is used to study the effect of the extent of the far field boundary
conditions on drag coefficient. You will run several cases, varying the value of R/D, calculating and recording the value of
drag coefficient CD for each case.
1. Start FlowLab from the CFD computer’s desktop, or from the Start menu at the lower left of the screen.
2. Do the following the first time you run FlowLab (this needs to be done only once per individual user):
(a) FlowLab will prompt you for a working directory. Enter “C:\temp\abc123” where abc123 is your PSU access
user ID. Set. All files you create with FlowLab will reside on this temporary directory.
(b) FlowLab will prompt you for a template directory. Use the default directory by hitting Set.
3. Choose the option Start a New Session, and select the template called Block domain and Start.
4. The procedure in FlowLab is fairly self-explanatory: select a value of R/D, create the geometry, create the grid or
mesh, solve (iterate towards a converged solution), compute the drag coefficient, and store the value of drag
coefficient into a table. For each case, write down the number of cells and the drag coefficient as a function of
R/D. For each case, use the FIT TO WINDOW button in the lower right portion of the screen (the button that
looks like two paper airplanes) to automatically zoom to fit the geometry into the view window.
(10) 5. Begin with R/D = 5. Repeat for R/D = 10, 20, 50, 100, 200, and 500. Fill in the table below:
R/D number of cells C
D
5
10
20
50
100
200
500
(5) 6. Plot CD as a function of R/D, with R/D on a log scale. (Excel is recommended). Explain your results.
See Figure ______ .
(5) 7. For the R/D = 500 case, zoom in and plot streamlines near the rectangular block. Use the middle mouse button
(click and drag the scroll wheel as if it were a mouse button) to move to the desired location in the view window,
and drag the right mouse button down to zoom in, up to zoom out. Ask your TA or instructor for assistance if you
mess up the view. To generate streamlines, do the following:
In the upper right corner, select POST, which launches the post-processing options of FlowLab.
Select Contour and Activate. The default is a pressure contour plot – pressure should be high (red) at the front
of the block, and low (blue) at the top of the block.
Select Modify to change the contour plot.
In the Contour portion under Attributes, select Edit to edit the contour plot.
Set “DOF” to stream-function, and set “Contour Type” to Wire-isosurfaces (this changes the filled colored
contours to line contours, which is more appropriate for plotting streamlines).
Set “Intervals” to 100, and set the minimum and maximum stream function values to 0 and 1 respectively.
Apply.
The picture looks nicer, and prints better on a printer if the background is white instead of black: File-Set
Background Color-Custom, and select the white background color. Apply, then OK.
When the streamline plot looks nice, and streamlines are clearly visible in the region of the block, generate a
TIF graphics file as follows:
o File-Print Graphics.
o Set the “Destination” to File, and select the “File Format” as TIFF.
docsity.com
pf3
Discount

On special offer

Partial preview of the text

Download Computational Fluid Dynamics - Fluid Flow - Lab Report and more Study notes Fluid Dynamics in PDF only on Docsity!

Procedure and Presentations of Results

A. Influence of the Extent of the Computational Domain

The first exercise in this lab involves calculation of turbulent flow over a two-dimensional rectangular block. Figure 7 of the Introduction illustrates the computational domain and the boundary conditions applied to this flow field. In this exercise, FlowLab, the instructional version of FLUENT, is used to study the effect of the extent of the far field boundary conditions on drag coefficient. You will run several cases, varying the value of R / D , calculating and recording the value of drag coefficient CD for each case.

  1. Start FlowLab from the CFD computer’s desktop, or from the Start menu at the lower left of the screen.
  2. Do the following the first time you run FlowLab (this needs to be done only once per individual user): (a) FlowLab will prompt you for a working directory. Enter “C:\temp\ abc123 ” where abc123 is your PSU access user ID. Set. All files you create with FlowLab will reside on this temporary directory. (b) FlowLab will prompt you for a template directory. Use the default directory by hitting Set.
  3. Choose the option Start a New Session, and select the template called Block domain and Start.
  4. The procedure in FlowLab is fairly self-explanatory: select a value of R / D , create the geometry, create the grid or mesh, solve (iterate towards a converged solution), compute the drag coefficient, and store the value of drag coefficient into a table. For each case, write down the number of cells and the drag coefficient as a function of R / D. For each case, use the FIT TO WINDOW button in the lower right portion of the screen (the button that looks like two paper airplanes) to automatically zoom to fit the geometry into the view window.

(10) 5. Begin with R / D = 5. Repeat for R / D = 10, 20, 50, 100, 200, and 500. Fill in the table below:

R / D number of cells CD 5

10

20

50

100

200

500

(5) 6. Plot CD as a function of R / D , with R/D on a log scale. (Excel is recommended). Explain your results.

See Figure ______.

(5) 7. For the R / D = 500 case, zoom in and plot streamlines near the rectangular block. Use the middle mouse button (click and drag the scroll wheel as if it were a mouse button) to move to the desired location in the view window, and drag the right mouse button down to zoom in, up to zoom out. Ask your TA or instructor for assistance if you mess up the view. To generate streamlines, do the following:  In the upper right corner, select POST, which launches the post-processing options of FlowLab.  Select Contour and Activate. The default is a pressure contour plot – pressure should be high (red) at the front of the block, and low (blue) at the top of the block.  Select Modify to change the contour plot.  In the Contour portion under Attributes , select Edit to edit the contour plot.  Set “DOF” to stream-function, and set “Contour Type” to Wire-isosurfaces (this changes the filled colored contours to line contours, which is more appropriate for plotting streamlines).  Set “Intervals” to 100, and set the minimum and maximum stream function values to 0 and 1 respectively. Apply.  The picture looks nicer, and prints better on a printer if the background is white instead of black: File-Set Background Color-Custom, and select the white background color. Apply, then OK.  When the streamline plot looks nice, and streamlines are clearly visible in the region of the block, generate a TIF graphics file as follows: o File-Print Graphics. o Set the “Destination” to File, and select the “File Format” as TIFF.

o Type in a descriptive file name, e.g. “streamlines_Smith_Jones_group_C.tif” and Accept to create the file.  To print the file, you must first locate it using Windows Explorer: from the Windows toolbar, Start-Programs- Accessories-Windows Explorer. The file should be located in the directory c:/temp/UserID (your userID)/.scratch****. Double click on the file, and then print it by clicking on the printer icon.  Comment about the streamlines, e.g. is there flow separation? If so, where?

See Figure ______.

 In the upper right corner, select PHYS (Physics) to return to the main page.

B. Influence of the Choice of Turbulence Model

In this exercise, FlowLab is used to compare the drag coefficient CD on the same two-dimensional rectangular block as above, but predicted by three different turbulence models. In this exercise, R / D is fixed at 500.

(10) 1. Start a new session of FlowLab (File-Open-Open New Session), and choose the template called

Block_turbulence_model. Accept. Run three cases: realizable k -  turbulence model (“K-e Real”), k -  turbulence

model (“K-w standard”), and the Spalart-Allmaras turbulence model. For each case, calculate and record the drag coefficient CD , and calculate the percentage error compared to the published value for this body (2-D rectangular block, L/D=1.5). Show a sample calculation of the percentage error in the space below:

Sample calculations:

Turbulence model CD Percentage error

k - 

k - 

Spalart Allmaras

C. Calculation of a Laminar Flat Plate Boundary Layer

In the final exercise, you will generate your own computational domain and mesh, specify and apply boundary conditions, and iterate towards a CFD solution. Detailed instructions for this exercise are found on the Internet at Professor Cimbala’s web site: www.mne.psu.edu/cimbala, then select Teaching, then Professor Cimbala’s Learning Modules & Tutorials, & then, ANSYS Workbench Tutorials. Finally, locate the Tutorial called Flat Plate Boundary Layer Flow.

  1. Generate the grid using ANSYS following the instructions on the web page. Read these instructions slowly and carefully. You may find it easier to use the printed copy that should be in the lab at the computer station.
  2. Calculate the flow using FLUENT, following the instructions on the web page for the laminar case. (5) 3. Make printouts of the X-Y plots that you generated in FLUENT.

See Figures ______.

  1. Locate and open the velocity profile text file you created in FLUENT – the laminar boundary layer profile at the outlet (Note: outlet is at 0.5 m from leading edge of flat plate; it is at x=0.6 in the ANSYS coordinate system). Copy and paste the data into Excel. (10) 5. Plot the boundary layer profile in nondimensional (Blasius) similarity coordinates. On the same plot, include the published Blasius boundary layer profile for comparison (see Precalculations). In the space below, show some sample calculations. Make sure the figure is labeled and numbered, and attach it to your report.

Sample calculations:

See Figure ______.