CFD Lab1-Exercise Note PDF
CFD Lab1-Exercise Note PDF
CFD Lab1-Exercise Note PDF
1. Purpose
The Purpose of CFD Lab 1 is to teach students how to use the CFD Educational Interface (FlowLab 1.2), practice more options in each step of CFD Process, and relate simulation results to EFD and AFD concepts. Students will simulate turbulent pipe flow following the CFD process by an interactive step-by-step approach. The flow conditions will be the same as they used in EFD Lab2. Students will have hands-on experiences using FlowLab to compute axial velocity profile, centerline velocity, centerline pressure and friction factor. Students will compare simulation results with their own EFD data, analyze the differences and possible numerical/experimental errors, and present results in CFD Lab report.
Geometry Physics Mesh Solve
Report
Post-processing
Heat Transfer? Incompress -ible? Flow Properties Viscous Models Boundary Conditions Initial Conditions
Unstructured Structured
Automatic Manual
Total pressure drop Wall friction force XY plot Verification Validation Contours Vectors Streamlines
Density and viscosity Laminar Turbulen t Inviscid Single Double k-e k-w 1st order upwind 2nd order upwind Quick
SA
Pipe
Flow chart for ISTUE teaching module for pipe flow (red color illustrates the options you will use in CFD Lab 1)
2. Simulation Design
In EFD Lab 2, you have conducted experimental study for turbulent pipe flow. The data you have measured include centerline pressure distribution and fully developed axial velocity profile. These data will be used in this Lab for comparisons with CFD predictions. The problem to be solved is that of turbulent flows through a circular pipe. Reynolds number based on pipe diameter and inlet velocity should be computed from your own EFD data and is much higher than the Reynolds number used in CFD Prelab1.
Inlet
Symmetry Axis
Outlet
Pipe Wall The problem formulation is similar to that in CFD PreLab1 and will not be repeated here. The Reynolds number is much higher and students need specify turbulence model, and thus more variables need to be specified in boundary conditions, as will be discussed in details later.
3. CFD Process
Step 1: (Geometry)
1. Radius of pipe (pipe radius in your EFD Lab2, use 0.02619 m if not available) 2. Length of pipe (6.096m) NOTE: The actual length of the pipe is 30 feet (9.144m), However, in CFD simulation, we need specify outlet pressure, and we dont have pressure transducer at the pipe outlet. So we choose the outlet of the pipe we will simulate to be the location of the last pressure transducer, that is 6.096 meters from the pipe inlet. Click <<Create>>, after you see the pipe geometry created, click <<Next>>.
Step 2: (Physics)
1. With or without Heat Transfer? Since we are dealing only with the flow and not with the thermal aspects of the flow like heat transfer etc, switch the <<Heat Transfer >> button off, which is the default setup. 2. Incompressible or compressible Choose Incompressible, which is the default setup. 3. Flow Properties
use the flow property values in your EFD Lab2. If you only know the room temperature when you conducted EFD Lab2, you can use the following website to easily get the corresponding density and dynamic viscosity for air: http://www.mhtl.uwaterloo.ca/old/onlinetools/airprop/airprop.html
H
If the room temperature is 24, the density and viscosity are the values shown in the above panel. NOTE: viscosity used in FlowLab is the dynamic viscosity ( kg m s ), NOT kinematic viscosity ( m2 s )
H
4. Viscous Model
In CFD Lab 1, two equation k-epsilon (k-e) model will be applied. 5. Boundary Conditions At Inlet, we use zero gradient for pressure and default values for turbulent intensity and length scale. You must calculate the inlet velocity u, which is uniform, based on the flow rate Q (m3/s) you computed in EFD Lab2, and cross section area of the pipe D 4 , i.e. u 4Q D . Since inlet flow is parallel to the x axis, magnitude of v velocity is 0. Use default values for turbulence quantities and click <<OK>>.
2 2
At Axis, FlowLab uses zero gradient for axial velocity and Pressure and specify the magnitude for radial velocity to be zero. Read all the values and click <<OK>>
At Outlet, FlowLab uses magnitude for pressure and zero gradients for axial and radial velocities. You need transform the four pressure tap pressure values from feet water to Pascal and input pressure tap #4 value as the outlet pressure. For example, if the pressure tap #4 has value of 0.2502 feet water, you need input 747 Pascal.
At Wall, no-slip boundary conditions are fixed for both axial and radial velocity, gradient for pressure is zero. Input the pipe roughness of the pipe you used in EFD Lab2 and choose the convenient unit you need. For example, user inputs 0.025 mm for smooth pipe.
6. Initial Conditions Use the outlet pressure for P (Pa), inlet velocity for u (m/s) and default values for turbulent quantities.
After specifying all the above parameters, click <<Compute>> button and FlowLab will automatically calculate the Reynolds number based on the inlet velocity and pipe diameter you input. Click the <<Next>>, this takes you to the next step, Mesh.
Step 3: (Mesh)
For CFD Lab 1, Structured meshes will be generated using Automatic fine option. Click <<Create>>, FlowLab will automatically create the Fine mesh and display the grid intervals NR, NX.
Step 4: (Solve)
The flow is steady, so turn on the Steady option. Specify the iteration number and convergence limit using different values, as shown above. Use 10, 20, 40, 60, 100 for radial profile x/D positions and choose Double precision with 2nd order scheme. Use New calculation for this Lab. Then click <<Iterate>> and FlowLab will begin the calculation.
The iterative history of residuals for continuity equation, X and Y momentum equations, k equation, and epsilon equations will be shown automatically.
Step 5: (Reports) Plot the XY plot for wall friction factor distribution and record the wall friction factor in the developed region (near outlet) and compare its value with your EFD data. XY plots for axial velocity profile and centerline pressure distribution need to be compared with EFD by import EFD data you collected in EFD Lab2. For procedures of how to import data to XY plot, please refer to CFD PreLab1.
In this Lab, you need put your own EFD data for developed turbulent pipe flow in FlowLab format and put in your directory created under: H: \myflowlab\SESSION-NAME \ *.xy. (Example: H: \myflowlab\CFDlab1\wall-friction-factor-EFD.xy) Experimental data include: 1. fully developed axial velocity profile; 2. centerline pressure distribution The following is an example of EFD data for turbulent pipe flow: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (title "Velocity Magnitude") (labels "Position" "Velocity Magnitude") ((xy/key/label "experimental") 0.00 41.7763 0.005 40.9734 0.01 39.5572 0.015 37.4582 0.02 34.0642 0.023 31.3114 0.024 29.8924 0.026 0.0 ) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ You may copy this into NOTEPAD and replace the data in blue with your own data. You can use similar procedures to create the centerline pressure distribution of your EFD data. The following figures are examples for comparison between CFD and EFD for axial velocity profile and centerline pressure distribution.
Step 6: (Post-processing)
Procedures on how to plot contours, velocity vectors have been described in details in the CFD PreLab 1 and FlowLab quick user guide and will not be repeated here.
4. Exercises
You need to complete the following assignments and present results in your lab reports following the lab report instructions 9