Presentation is loading. Please wait.

Presentation is loading. Please wait.

Friction Flow in a Pipe Friction flow in a Pipe Finite Element Tutorial By Dr. Essam A. Ibrahim, Tuskegee University, Mechanical Engineering Dept., emeei@tuskegee.edu.

Similar presentations


Presentation on theme: "Friction Flow in a Pipe Friction flow in a Pipe Finite Element Tutorial By Dr. Essam A. Ibrahim, Tuskegee University, Mechanical Engineering Dept., emeei@tuskegee.edu."— Presentation transcript:

1 Friction Flow in a Pipe Friction flow in a Pipe Finite Element Tutorial By Dr. Essam A. Ibrahim, Tuskegee University, Mechanical Engineering Dept., Copyright 2006 Expected completion time for this tutorial: 45 minutes to 1 hour Companion tutorial for Fluid Mechanics Course Reference text: Fluid Mechanics, 5th Edition by Frank M. White

2 Table of Contents Educational Objectives Problem Description
Creating the parts Assembly of the parts Solving with FloWorks Viewing the Results of the FE Analysis Comparison of Analytical to Finite Element Analysis Conclusion Acknowledgment

3 Educational Objectives
Be familiar with the basis of FE theory for three-dimensional flow analysis. Understand the fundamentals of internal flow through the use of the COSMOS FloWorks finite element software. Be able to construct a correct solid model using the SolidWorks CAD and perform an accurate finite element analysis using COSMOS FloWorks. Learn to apply the appropriate ambient and boundary conditions and decide on the suitable size for the computational domain. 5. Know how to interpret and evaluate finite element solution quality including the process of validating the solution using the Moody Chart.

4 Problem Description 1 Case: Methods: Validation:
Ten liters per second of water at 25C is to flow through a horizontal pipe 10 m long. We need to estimate the pressure drop in a cast iron pipe of circular cross section of 10 cm diameter. Methods: We use SolidWorks to design the model; COSMOS FloWorks to determine the pressure drop in the turbulent pipe flow with non-zero inner surface roughness. Validation: Once the CFD solution is obtained, the results are to be compared with the analytic solutions using the Moody Chart.

5 Problem Description 2 Pressure Drop, P2 - P1 = ?
Inlet P1 Volumetric Flow Rate, Q= 10 liters/sec Water Temperature, T= 25C Ambient Pressure, P= 1.0 ATM Inner diameter = 10 cm Outer diameter = 12 cm Pipe Length, L= 10 meters Pressure Drop, P2 - P1 = ? P2 Exit A cast iron pipe with rough inner surface

6 Steps to Analysis Modeling of the system with SolidWorks CAD suites
Meshing and solving the flow with COSOMOS FloWorks CFD solver suites Calculating the analytic solution and validating the CFD results

7 Modeling with SolidWorks
Create a new SolidWorks working window by choosing ‘a 3D representaion of a single design component’ option

8 Designing the Pipe Click open the Circle drawing option in the Sketch menu.

9 Creating the cross section of the pipe 1
Enter Sketch mode 50 mm 60 mm x, y, z = (0, 0, 0) Creating the cross section of the pipe 1

10 Creating the cross section of the pipe 2
Create concentric circles for the inner and outer surfaces of the pipe 2 50 mm 60 mm x, y, z = (0, 0, 0) Creating the cross section of the pipe 2

11 Creating the cross section of the pipe 3
4 Confirm 50 mm Input radii for two circles Default SI unit is millimeters 60 mm x, y, z = (0, 0, 0) 3 Creating the cross section of the pipe 3

12 Extruding circles to form a 3-D pipe 1
Use these buttons to change the view, e.g., zoom in and out, move, and pan. Click Features, choose Extrude Extruding circles to form a 3-D pipe 1

13 Extruding circles to form a 3-D pipe 2
Confirm 2 Enter the length of the pipe. When 10.0 m is entered, it will show mm since the default SI unit is set in millimeters. Extruding circles to form a 3-D pipe 2

14 Creating Inlet and Exit lids
Once pipe is created and saved with a file extension of *.SLDPRT, then inlet and exit lids are to be modeled in new working windows. These imaginary lids are needed to impose both Initial and Boundary Conditions for the COSMOS FloWorks to solve the flow. The Inlet and Exit lid modeling procedure is identical to that of the pipe modeling. The Circle and Extrude radio buttons are used to enable the modes.

15 Creating and moving of the lids 1
Once Inlet lid is created and saved as a part (*.SLDPRT) the exit lid is copied from it and moved to the exit of the pipe. Creating and moving of the lids 1

16 Creating and moving of the lids 2
Select along which axis the body is to be moved. Creating and moving of the lids 2

17 Creating and moving of the lids 3
4 Confirm and save 3 Move/Copy of the Body function is selected from Insert – Features –Move/Copy menu buttons. Enter the distance the body has to translate. Creating and moving of the lids 3

18 Assembly of the parts So far three parts are modeled and saved separately: Pipe, Inlet lid, and Exit lid. Next step is to assemble parts to form a complete working model which will be used to in COSMOS FloWorks CFD Suite. Assembly of the parts are done using the Insert – Part menu. First open any part file and then insert parts one by one in one working window.

19 Inserting Components Assembly of the parts can be performed by using Insert Component menu. Selecting the biggest object first is recommended. Subsequently select all the remaining parts to the model that is being assembled. It is very critical to verify that each part is inserted intended location. Even If there is (are) mismatch(es) of the parts, it still can be saved as a whole assembly. This will cause errors in the COSMOS FloWorks later on.

20 1 Select Part sub menu in the Insert Function. Then select which part is to be inserted. Assembly of the parts 1

21 Before saving the assembly, confirm each part is inserted properly
Before saving the assembly, confirm each part is inserted properly. This diagram, for example, shows the pipe exit and the exit lid mated as designed. 2 Since parts already have proper locations to be placed, clicking in the yellow graphics area will suffice for insertion. Once all the parts are inserted, save the assembly with a file extension of *.SLDASM Assembly of the parts 2

22 Solving with FloWorks Once the model is designed and assembled, the turbulent pipe flow can be solved using the COSMOS FloWorks CFD Solver suite. Proper assigning of the solid and liquid properties is as important as accurate inputting of Initial and Boundary conditions. Solver sequence is as follows: Project Configuration – Units – Computational Domain- Initial & Boundary Conditions – Solve - Analyses

23 Project Configuration
This is the project labeling procedure. When the configuration has to be modified later on, one can use the previous configuration. Previous data will be overwritten. If testing for several flow conditions, a new configuration should be created.

24 Unit System The units used in the SolidWorks modeling process will be converted to the unit system that is selected in this process. For this tutorial, the SI is chosen.

25 Analysis Type internal is chosen for a pipe flow
Heat transfer is not occurring in this problem. However, solid inlet and exit lids have to be meshed to accommodate flow conditions. Although lids are invisible to flow, they still are considered as solids. If this box unchecked, lids will not be meshed i.e., the solver can not solve the flow.

26 Fluid Property Select Water for the working fluid
This flow has both Laminar and Turbulent region.

27 Wall Conditions Adiabatic Wall is selected since heat transfer is not involved in this flow. 300 micrometers of surface roughness for the cast iron is obtained from material property tables.

28 Initial Conditions Initial conditions are not required for this Steady state flow. However, providing known flow conditions help reducing time for solution convergence.

29 Results and Geometry Resolution
This slide bar will control the mesh size in the solution domain. Higher number setting, i.e., finer meshes may generate better solutions but it requires more CPU time and memory space. For the initial runs, it is recommended to set it near 3.

30 Symmetry Condition Since this model is symmetric, it is possible to “cut” the model in half or in quarter and use a symmetry boundary condition on the plane of symmetry. This procedure is not required but will significantly reduce CPU time and memory space thus more efficient analyses are possible.

31 Reduced Computational Domain
Applying the symmetry condition reduces the computational domain in half.

32 Specifying the Initial Conditions 1
Click FloWorks, Insert, Initial Condition. Specifying the Initial Conditions 1

33 Specifying the Initial Conditions 2
Select the Inlet lid that is in contact with the fluid. Specifying the Initial Conditions 2

34 Specifying the Initial Conditions 3
Specify known properties of the flow. Inlet Velocity is calculated form inlet volumetric flow rate. Specifying the Initial Conditions 3

35 Specifying the Inlet Boundary Conditions 1
Click FloWorks, Insert, Boundary Condition. Specifying the Inlet Boundary Conditions 1

36 Specifying the Inlet Boundary Conditions 2
Select the Inlet lid inner face that is in contact with the fluid Specifying the Inlet Boundary Conditions 2

37 Specifying the Inlet Boundary Conditions 3
Select, enter Inlet flow properties Specifying the Inlet Boundary Conditions 3

38 Specifying the Exit Boundary Conditions 1
Click FloWorks, Insert, Boundary Condition. Specifying the Exit Boundary Conditions 1

39 Specifying the Exit Boundary Conditions 2
Select the Exit lid inner face that is in contact with the fluid Specifying the Exit Boundary Conditions 2

40 Specifying the Exit Boundary Conditions 3
Click Pressure Openings and choose Static pressure. Enter ambient pressure and the fluid temperature Specifying the Exit Boundary Conditions 3

41 Running the Calculation
Click the FloWorks, Solve, Run. Above Run dialog box appears. Select Run to start the iteration process

42 Progress Report Window
Info window shows real time progress of the solution as well as domain information such as cell values. While FloWorks is solving the flow, this window logs time such as start and end time of the iteration. Any error in the solution scheme, reverse flow condition, etc., will be listed in this window.

43 CFD Solution Analysis Once iteration is converged, data files are stored with the file extension of *. fdl in the same working folder. The solution files can be loaded/unloaded by selecting FloWorks, Results, Load/Unload options. Results such as pressure, velocity, temperature values are shown in both numerical data and graphics form. Numerical data are useful to obtain local properties of the flow, e.g., pressure drop, while graphical plots show flow behavior in the entire computational domain.

44 Results Summary Selecting FloWorks, Results, Results Summary will produce basic information about file structures, computational domain, and flow properties. From the summary, one can quickly calculate the pressure drop between inlet and exit: Pmax – Pmin =103, – 101,321.38 = 1, pa

45 Generating Plots Various flow properties can be shown on different types of plots Cut plots, Flow Trajectories, Surface plots, Iso-surface plots, Particle plots are most frequently used plot formats. Cut plot command window is shown by selecting cut plot icon on the main tool bars. Cut plane can be diagonal, horizontal, or vertical and it can be chosen by selecting a plane in the working window. Contours, Isolines, and Vectors can be plotted separately or in combinations on one plot.

46 Cut Plots Pressure contour is selected to be shown on the cut plot.
Velocity vectors will also be shown on the same cut plot.

47 Pressure Contour and Velocity Vector Cut Plot
Inlet Once Cut plot parameters are selected, combinations of flow properties are shown. Exit Pressure Contour and Velocity Vector Cut Plot

48 Velocity Profile Inlet Mid section Exit
Velocity profiles are shown on the cut plane at the center of the pipe, where Vmin = 0.0m/s, Vmax = 1.54m/s, Vinlet = 1.273m/s. The flow has not reached to the fully developed stage near the Inlet, while the velocity profiles are consistent along the X-axis: Fully Developed. Due to the coarseness of the grids near pipe’s inner surface, flow in the boundary layer is not resolved.

49 Pressure Drop, CFD The calculation of the pressure drop, the objective of this simulation, is performed by directly comparing the pressures at the Inlet and the Exit: DP = Pressure Drop = Pmin –Pmax = Pexit – Pinlet = 101, – 103, Pa = -1, Pa = kPa This result is to be compared with the analytic solution for the validation of the computational model.

50 Calculation of the Friction Factor f
Here L is the length of the pipe with the fully developed flow, along with pressure loss DP is obtained from the computation. Taking the absolute value of the pressure drop and by substituting the values, we calculate the value of the friction factor: f =

51 The Reynolds Number The water velocity in the circular pipe, V, is given by This is well over the critical Reynolds value of 2300, so the flow is a fully developed turbulent pipe flow.

52 Relative Roughness In order to obtain the value of the friction factor, f, from the experimental data such as the Moody Diagram, the relative roughness is calculated. Here e is the roughness of the pipe (300mm), and D is the diameter of the pipe.

53 Validation of the Solution
The results are to be validated by comparing with: Existing charts such as Moody Diagrams The moody chart relates the Friction factor for fully developed pipe flow to the Reynolds number and relative roughness of a circular pipe. The relative roughness being , the ratio of the mean height of roughness of the pipe to the pipe diameter. In 1944, L.F. Moody plotted the Darcy-Weisbach friction factor into what is now known as the Moody Diagram. The analytical solutions The Colebrook and Haaland Equations are implicit equations which combines experimental results of studies of laminar and turbulent flow in pipes. They were developed in 1939 by C. F. Colebrook, in 1983 by S. E. Haaland, respectively.

54 Moody Diagram for fully developed turbulent pipe flow
With the relative roughness and Reynolds number, the friction factor, f, can be obtained form this diagram. For this fully developed turbulent flow, the friction factor is f = Friction factor, f = 0.027 Relative roughness=0.003 Reynolds Number = x 105

55 Validation using Haaland Equation
The value of friction factor calculated from Haaland Equation is in an excellent agreement with the result obtained from Moody Diagram which is based on the Colebrook Equation.

56 Validation: Error Calculation
Results obtained from Moody Diagram and Haaland Equation: CFD Solution: Error:

57 Sources of Discrepancy
There is a 14.8% difference between Experimental and CFD solutions. The sources of this discrepancy can be: Coarse meshes which did not resolve turbulent boundary layers Lack of refinement / reiteration processes Inaccurate turbulence model and/or constants Inlet velocity profile not being fully developed in the CFD simulation (minor)

58 Coarse Meshes Above plots show the size of the grids and their placement Inlet, mid-section, and the inclined views from left to right. Resolution of Level 4 was chosen for the initial configuration, however, to successfully resolve the turbulent buffer and viscous sub-layers smaller grids are to be used near the surface. To resolve this problem, the automatic mesh generating scheme must be turned off; manually assign grid size and placement for the different flow zones.

59 Turbulence Solver Modules
To more accurately solve the flow, different Turbulent Kinetic Energy equations and parameters should be tested. Turbulence intrinsically has uncertainty and thus it is not possible to perfectly predict the turbulent flow as of now.

60 Conclusion Using SolidWorks CAD and COSMOS FloWorks CFD solver suites, a fully developed turbulent pipe flow has been successfully modeled and solved. The roughness of the pipe surface was also accounted for during the solution process. Although relatively large grids are used, the results obtained from analytic and CFD methods are in good agreement. Further grid and solver refining is required to obtain better solutions.

61 Acknowledgment This tutorial was developed under the NSF Grant DUE Number


Download ppt "Friction Flow in a Pipe Friction flow in a Pipe Finite Element Tutorial By Dr. Essam A. Ibrahim, Tuskegee University, Mechanical Engineering Dept., emeei@tuskegee.edu."

Similar presentations


Ads by Google