Professional Documents
Culture Documents
Submitted for the degree of Masters of Science In Environmental Engineering And Project Management
A Computational Fluid Dynamic validation study for the prediction and analysis of free surface flow over a Broad crested weir
August 2010
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
Abstract
This study described an investigation into the computational fluid dynamic capabilities of the ANSYS FLUENT and Blender in numerically simulating and modeling free surface flows over a broad crested weir in a rectangular open channel, for the purpose of validating these applications. The predicted CFD results from a series of simulations are compared against an existing experimental data. In FLUENT, by fixing the upstream and downstream heads, pressure, velocity, downstream discharge and surfaces profiles are all predicted. The analysis in fluent adopted the Volume of fluid (VOF) model while the investigations were conducted varying the turbulence model, solution methods, boundary conditions and pressure heads at upstream. In Blender, by replicating the computational domain and visually observing the flow characteristics within the rectangular channel, the comparison with experimental results and real time flow has been documented.
ii
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
Table of Contents
Abstract ................................................................................................................................. ii Table of Contents.................................................................................................................. iii List of Tables ......................................................................................................................... vi List of Figures....................................................................................................................... vii List of Abbreviations .............................................................................................................. x List of Symbols ...................................................................................................................... xi Acknowledgment ................................................................................................................. xii 1. INTRODUCTION............................................................................................................. 1
1.1. The Theory of Fluid Simulation ............................................................................................... 1 1.2. The Navier-Stokes Equations .................................................................................................. 2 1.2.1. 1.2.2. 1.2.3. 1.2.4. 1.2.5. External Forces ................................................................................................................ 2 Advection......................................................................................................................... 3 Diffusion .......................................................................................................................... 3 Pressure ........................................................................................................................... 4 Incompressibility ............................................................................................................. 4
1.3. Weir applications in Hydraulic Structures ............................................................................... 4 1.4. Flow over a Broad Crested Weir ............................................................................................. 6 1.5. Free Surface Flow idealisation ................................................................................................ 7 1.6. Numerical method for modelling free surfaces ...................................................................... 8 1.6.1. 1.6.2. 1.6.3. The Lagrangian grid method ........................................................................................... 8 The Marker-and-Cell (MAC) method............................................................................... 9 The Volume of Fluid Method .......................................................................................... 9
1.7. The Problem Statement ........................................................................................................ 11 1.8. Project Scope ......................................................................................................................... 12 1.9. Aims and Objectives .............................................................................................................. 12 iii
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
2.
2.1. Computational fluid Dynamics .............................................................................................. 14 2.2. CFD Analysis with ANSYS FLUENT ......................................................................................... 16 2.3. CFD Analysis with Blender 2.49 ............................................................................................. 17 2.3.1. 2.3.2. Lattice Boltzmann Numerical Method .......................................................................... 18 Smooth Particle Hydrodynamic Numerical method ..................................................... 20
2.4. Multiphase Flow .................................................................................................................... 21 2.4.1. 2.4.2. Real-time Multiphase Flows .......................................................................................... 21 Multiphase flow models ................................................................................................ 22
2.5. Methodology of the VOF Method ......................................................................................... 23 2.5.1. 2.5.2. 2.5.3. 2.5.4. The Basic Theory ........................................................................................................... 24 The VOF Concept ........................................................................................................... 25 Details of the VOF Technique ........................................................................................ 26 Illustration of Free-Surface Tracking by VOF Technique ............................................... 28
2.6. Review of Relevant Papers .................................................................................................... 29 2.6.1. 2.6.2. 2.6.3. 3. Hager and Schwalts Experimental study of flow over weir ......................................... 29 CFD Validation of the Hager and Schwalts Experiment ............................................... 30 Prototype CFD Simulation of Flow over a drop............................................................. 31 TEST CASE METHODOLOGY ......................................................................................... 34
3.1. Computational Domain ......................................................................................................... 35 3.2. Methodology for ANSYS FLUENT Simulations ....................................................................... 37 3.2.1. Domain Adjustments and Mesh Refinements in Gambit ............................................. 37
3.2.1.1. Specifying Continuum ................................................................................................... 38 3.2.1.2. Mesh Adaptation ........................................................................................................... 39 3.2.2. 3.2.3. Grid Independency Test ................................................................................................ 43 Summary of Simulations Conducted ............................................................................. 45 iv
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
3.3. Simulation Methodology in Blender ..................................................................................... 48 3.3.1. 3.3.2. 3.3.3. Lights and Camera ......................................................................................................... 48 Geometry modelling in Blender .................................................................................... 49 Geometric Refinements to Computational Domain ..................................................... 52
3.3.3.1. Setting transparency ..................................................................................................... 52 3.3.3.2. Light Refraction (IOR) .................................................................................................... 53 3.3.4. 4. Summary of methodology in Blender ........................................................................... 53 RESULTS PRESENTATION AND DISCUSSION.................................................................. 55
4.1. ANSYS FLUENT Results .......................................................................................................... 55 4.1.1. 4.1.2. 4.1.3. 4.1.4. 4.1.5. 4.1.6. 4.1.7. 4.1.8. 4.1.9. 4.1.10. Effect of Turbulence Model........................................................................................... 56 Effects of Specifying Zones of Continuum .................................................................... 60 Varying Mesh topology (Structured or Unstructured) .................................................. 60 Effect of mesh adaptation and Grid independence results .......................................... 61 Velocity Inlet Simulation ............................................................................................... 62 Pressure Inlet Simulation .............................................................................................. 63 Flow Characteristics downstream ................................................................................. 63 Velocity Predictions. ...................................................................................................... 64 Pressure Predictions ...................................................................................................... 67 Pressure Predictions ...................................................................................................... 68
4.2. Blender Results...................................................................................................................... 70 4.3. Result discussion ................................................................................................................... 71 5. 6. 7. SUMMARY AND CONCLUSION ..................................................................................... 75 RECOMMENDATIONS .................................................................................................. 77 REFERENCES................................................................................................................ 78
APPENDIX ............................................................................................................................ 81
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
List of Tables
Table 2.1: Results from the H&S Experiments and D.M. Hargreaves et al. CFD Simulations .....31 Table 2.2: Comparisons between experiment and simulation ...................................................33
Table 3.1: Summary show characteristic parameters of all simulations ....................................41 Table 3.2: Varying Mesh Sizes for Grid Dependency Test (a) 15 Size Mesh (b) 25 Sized Mesh (c) 40 Sized Mesh (d) 50 Sized Mesh Spacing ...................................................................................44
Table 4.1: Initial simulation to investigate appropriate solution methods ................................56 Table 4.2: Results from the study of the effect of turbulence model. .........................................57 Table 4.3: Results from test on the effects of mesh topology ....................................................61 Table 4.4: Results from the grid independence test ...................................................................61 Table 4.5: Result summary of simulations showing Contour Profiles at Drop (weir fall) ...........69
vi
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
List of Figures
Figure 1.1: Three Broad Crested Weir Setup at the Bedford Ouse Watercourse (EA, 2008) ........5 Figure 1.2: Measuring Flows with Weir (Source: Michigan State University Archives) ................6
Figure 2.1: Fundamental Steps of CFD Analysis ..........................................................................14 Figure 2.2: The Blender working environment ............................................................................18 Figure 2.3: A Typical Lattice structure in (a) 2D and (b) 3D ........................................................19 Figure 2.4: Surface in 2d Grid of Elements. .................................................................................26 Figure 2.5: Fluid Fraction Values in Elements, Showing Sharpness of Surface Definition. .........28 Figure 2.6: Close Up Of Fluid Fraction Values Where The Overflow Hits Bottom. ......................28 Figure 2.7: Simulation of Flow over a .........................................................................................32
Figure 3.1:Schematics of the broad crested weir and notations ................................................35 Figure 3.2: Computational Domain (a) With Dimensions (b) With Boundary conditions ..........36 Figure 3.3: Computational Domain Showing Boundary Conditions ...........................................37 Figure 3.4: Computational Domain Showing Boundary Conditions With Assigned Faces .........38 Figure 3.5: Three Computational model types tested (a) with no assigned zone (b) with two zones separated by but no defined interface (c) with three defined zones and two interfaces. 39 Figure 3.6: Illustrating the H-refinement sub-division ................................................................40 Figure 3.7: Illustrating the hanging node ...................................................................................40 Figure 3.8: Mesh region showing non conformal meshes at the interface ................................42 Figure 3.9: Mesh region shown structured meshes across the domain......................................42 Figure 3.10: The geometric model as assembled in Blender ......................................................49 Figure 3.11: Presets for Inflow and outflow definitions (Source: Blender.org) ...........................50
vii
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
Figure 3.12: The different volumes initialize types. (a) Volume Initialize (b) Shell Initialize (c) Initialize both shell and volume (Source: Blender.org) ................................................................51 Figure 3.13: Presets for Domain definition (Source: Blender.org) .............................................52 Figure 3.14: (a) Wire frame view of the computational domain as modeled in Blender.(b) Camera view of the rendered domain in Blender........................................................................54
Figure 4.1: Plots of the velocity magnitude for a standard - run............................................57 Figure 4.2: Contours of velocity vector depicting velocity magnitude (a) RNG - model, Implicit scheme (b) RNG - model Explicit scheme, (c) Standard - model (d) RSM model ...58 Figure 4.3: Contour plots showing the separation curve (drops).(a) with a RNG - (b) with a standard - ................................................................................................................................59 Figure 4.4: Plot of velocity magnitude for a RNG - run. ..........................................................59 Figure 4.5: The Computational Domain (Type B) Showing the Velocity inlet Boundary Condition assigned to the lower third of the Upstream
........62
Figure 4.6: Sequence of flow in the velocity inlet upstream boundary condition .......................63 Figure 4.7: Series of short wave formation as then ....................................................................64 Figure 4.8: Plot of mass flow rate versus successive ..................................................................64 Figure 4.9: Non-dimensional horizontal component of ..............................................................66 Figure 4.10: Non dimensionalised Horizontal component of the velocity at x/Ho .....................66 Figure 4.11: Non-dimensionalised (a) Horizontal component of the .........................................67 Figure 4.12: Contour plots of Computational Domain type 2 with the lower position pressure inlet at the upstream region........................................................................................................68 Figure 4.13: Render images (a) flow over submerged weir (b) unrealistic propagation of fluid flow towards downstream of channel.........................................................................................70 Figure 4.14 (a) Rendered view showing flow towards outlet (b) Rendered image of the flow as seen through channel set to transparent ....................................................................................71 Figure 4.15: Views of the wireframe of the computational Domain ..........................................71
viii
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
Figure 4.16: Rendered View (a) Time = 5secs, Velocity = 10m/s, Real well size 0.030secs, with bake resolution of 50 (b) Time = 5secs, Velocity = 10m/s with bake resolution of 50, Real well size 0.030secs, .............................................................................................................................72 Figure 4.17: Rendered Images obtained from animation of flow over.......................................73 Figure 4.18: Rendered image at stream wise velocity of -0.5 and real world size of 0.030 .......74
ix
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
List of Abbreviations
ALE CFD CSOs CSs FSH FSI FSM H&S H, W&M LBM MAC NITA NS PDEs SPH TH UIDs UWWTD Arbitrary-Lagrangian-Eulerian Computational Fluid Dynamics Combined sewer overflow systems Combined sewers Free Surface Height Fluid-structure interaction Fractional Step Hager & Schwalts D. M. Hargreaves, N. G. Wright and H. P. Morvan Lattice Boltzmann Method Marker-and-Cell Non-Iterative Time Advancement option Navier-Stokes Partial Differential Equations Smoothed Particle Hydrodynamics Total Height Unsatisfactory intermittent discharges Urban Wastewater Treatment Directive
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
List of Symbols
b C g Ho ho ht hw k l wl p p0 Q t u v V y 0y a i w w w - channel width stress tensor discharge coefficient gravitational acceleration upstream energy head upstream water level tailwater height weir height turbulence kinetic energy distance around the weir weir length pressure total pressure discharge time horizontal component of velocity velocity upstream stream wise velocity height above datum datum height volume fraction of air volume fraction of the i th phase volume fraction of water turbulence dissipation rate relative weir length density air density water density stress tensor dynamic viscosity K-epsilon xi
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
Acknowledgment
To God my creator, my advocate and ever present help, for being a still small voice. To my father, for from him I learnt the values of responsibility to self, family and society. To my mother, from whom I learnt the virtues of perseverance, patience and Godliness.
xii
1. INTRODUCTION
The design of hydraulic structures has reached such a level of sophistication that details of the flow through the components can be predicted with reasonable accuracy. In the past, such information depended largely upon experimental work, with designs relying heavily on empirically based methods. Advances in computer technology have provided high speed computing tools for solving approximations to the Navier Stokes equations. This has resulted in the emergence of the new technology, computational fluid dynamics (CFD) as a complementary tool to earlier design methods. This technology now enables designers to carry out a large numbers of computations in a shorter time thus providing more reliable designs. In the past, the design verification required extensive testing of model hardware. With the CFD technology, almost all the testing can be performed numerically. Thus, the costly and time consuming exercise of building and testing the hardware can largely be avoided. Before I progress into this research work, it is important that the characteristics of fluids be explained with a short introduction of why the prediction of its motion is important to Engineering.
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
application, the idea is to achieve fluid-like effects in real-time. Hence the understanding of the Navier-Stokes equations is the first step in the grasp of CFD.
density of the fluid, which describes the mass of a unit cube of fluid. is a vector quantity.
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
There are four equations and four unknowns: u, v, w, p. the four terms on the right-hand side of Equation (1) represent accelerations. (Jiyuan, T. et al., 2008)
1.2.2. Advection
The second term in the Navier-Stokes equations represents advection. This describes the force of the fluid motion working on itself or in simple term the interaction between molecules of fluid bouncing into each other and distributing inertia on collision with other particles. The contribution of advection is described by:
A test of Advection is an effective way of verifying and validating fluid simulation, particularly with high graphically displayed simulations, and as will be introduced latter should be a convenient validation test for Blenders CFD capabilities.
1.2.3. Diffusion
Diffusion occurs when part of the fluid passes by an obstacle, or another part of the fluid with a different velocity. The fluid is slowed down and vortices appear. The contribution of diffusion is described by the term:
v is the kinematic viscosity of the fluid, simply describes how thick the fluid is, because this affect the easy of fluidity of the fluid. This resistance, results in the diffusion of the momentum (and therefore velocity), and hence the term diffusion.
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
1.2.4. Pressure
Fluid moving in and out of the observed unit cube causes the pressure to change. Differences in pressure between the unit cube and its surroundings affect the velocity as described given by
Where
is the density of the fluid and p is the pressure. Because the molecules of a fluid
have freedom of interaction with their environment and each other, they tend to Squish and Slosh. So any applied force to a fluid does not instantly propagate through the entire volume. Instead, the molecular particles in close proximity to the force push on those farther away, building up pressure with the fluid. This is immediately visible as the fluid accelerates obviously from the inverse proportional relationship between pressure and area. A phenomenon explained in Newtons second law.
1.2.5. Incompressibility
To ensure that the volume of the fluid is kept constant, the net flow of the unit cube should be zero, indicating that the amounts of fluid entering and leaving the cube should be equal. This is described by the incompressibility constraint:
What is most important in when simulation fluids is to correctly determine the current velocity field at each step in time. Therefore solving the Navier-Stokes equations for incompressible flow acquires the velocity field that can be utilized to move fluids, objects and other quantities through space and time.
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
controlled way and at specified and managed locations. Combined sewers (CSs) are responsive to rainfall. The heavier the rain, the greater the flow the sewer has to carry therefore wet weather or intense storms persisting over a long period of time makes the combined sewers particularly vulnerable because combined sewers are known to carry municipal wastewater and rainfall in the same pipes prior to discharge. It is inevitable in heavy rainfall or equivalent weather events that some of these sewers will be overwhelmed. The overloading, if not relieved by combined sewer overflow systems (CSOs), would lead to storm sewage flooding homes, gardens, streets, highways, open spaces and surface waters at discharge locations. CSOs are therefore essential structures in many combined sewer systems. When the system is full, they act as release valves designed to carry any excess flow by underground pipes to an outfall point, often a local watercourse. The discharge from the sewer is substantially diluted by rainwater and joins a watercourse swollen by rainfall. In July 2009 the UK recorded the heaviest rainfalls since 1888 in England and Wales hence the concern for the improvements in the design of CSOs (B. Thompson, 2006). In the UK the development of sewerage systems has been based on the conveyance of domestic and industrial effluents and the surface runoff from catchment surfaces in underground conduits.
Figure 1.1: Three Broad Crested Weir Setup at the Bedford Ouse Watercourse (EA, 2008) Three types of system are used: 1. Combined systems, where foul and surface waters are conveyed in the same conduit 2. Separate systems, where foul and surface waters are conveyed in different conduits 5
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
3. Partially separate systems, which are a combination of the combined and separate systems.
Figure 1.2: Measuring Flows with Weir (Source: Michigan State University Archives) However, the most common type of sewerage system utilised in the UK is the combined system. Combined sewerage systems incorporate combined sewer overflow systems (CSOs) to divert excess flows received during storm events into discharge surface waters, thus relieving other hydraulic structures within the system and reducing the risk of flooding in urban areas. Discharges from CSOs, known as intermittent discharges, contain both foul sewage and storm water and therefore contain large amounts of pollutants, including gross solids and finely suspended solids in solution. THE UK Environment Agency also identified a total of over 4,500 unsatisfactory intermittent discharges (UID) which required improvement and it is anticipated that approximately 2000 more will require attention over the next five years (Thompson, 2006).
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
Thus, the developments of CFD applications have made immense contributions to solving a vast range of engineering challenges. Once the results obtained can be validated, (i.e. a test of whether the backend equations used give a solution that is a true representation of the physical situation), its use can be relied on to give accurate interpretations of true behaviours (Fach et al., 2009).
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
many programs are able to accurately solve equations involving free surfaces in their simulations. The challenge is a traditional numerical one often referred to as the freeboundary problem. A free boundary poses the difficulty that on the one hand the solution region changes when its surface moves, and on the other hand, the motion of the surface is in turn determined by the solution. Changes in the solution region include not only changes in size and shape, but in some cases, may also include the coalescence and break up of regions (Hou, 1995). This VOF method is especially applicable to flows having free surfaces and in this review, I will attempt to illustrate the logic behind the VOF method.
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
If we know the amount of fluid in each cell it is possible to locate surfaces, as well as determine surface slopes and surface curvatures. Surfaces are easy to locate because they lie in cells partially filled with fluid or between cells full of fluid and cells that have no fluid. Slopes and curvatures are computed by using the fluid volume fractions in neighboring cells. It is essential to remember that the volume fraction should be a step function, i.e., having a value of either one or zero. Knowing this, the volume fractions in neighboring cells can then be used to locate the position of fluid (and its slope and curvature) within a particular cell (Hirt and Nichols, 1998). Free-surface boundary conditions must be applied as in the MAC method, i.e., assigning the proper gas pressure (plus equivalent surface tension pressure) as well as determining what velocity components outside the surface should be used to satisfy a zero shearstress condition at the surface. In practice, it is sometimes simpler to assign velocity gradients instead of velocity components at surfaces. Finally, to compute the time evolution of surfaces, a technique is needed to move volume fractions through a grid in such a way that the step-function nature of the distribution is retained. The basic kinematic equation for fluid fractions is similar to that for the height-function method, where F is the fraction of fluid function:
A straightforward numerical approximation cannot be used to model this equation because numerical diffusion and dispersion errors destroy the sharp, step-function nature of the F distribution. It is easy to accurately model the solution to this equation in one dimension such that the F distribution retains its zero or one values. Imagine fluid is filling a column of cells from bottom to top. At some instant the fluid interface is in the middle region of a cell whose neighbor below is filled and whose neighbour above is empty. The fluid orientation in the neighbouring cells means the interface must be located above the bottom of the cell by an amount equal to the fluid fraction in the cell. Then the computation of how much fluid to move into the empty cell above can be modified to first allow the empty region of the surface-containing cell to fill before transmitting fluid on to the next cell (Hirt and Nichols, 1981).
10
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
In two or three dimensions a similar procedure of using information from neighboring cells can be used, but it is not possible to be as accurate as in the one-dimensional case. The problem with more than one dimension is that an exact determination of the shape and location of the surface cannot be made. Nevertheless, this technique can be made to work well as evidenced by the large number of successful applications that have been completed using the VOF method. The VOF method has lived up to its goal of providing a method that is as powerful as the MAC method without the overhead of that method. Its use of volume tracking as opposed to surface-tracking function means that it is robust enough to handle the breakup and coalescence of fluid masses. Further, because it uses a continuous function it does not suffer from the lack of divisibility that discrete particles exhibit (Nichols and Hirt, 1980).
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
Blenders accurate definition of free surfaces makes it effective in potentially idealising both free surfaces and fluid structure interactions and thus a greater advantage over FLUENT. However, since initially not developed to carryout computational fluid simulations, this project is aimed at verifying and validating its effectiveness as a CFD package using flow over a broad crested weir. It is expected that results and finding from this dissertation will aid in optimising the design of combined sewer overflow systems.
12
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
To investigate the capabilities of the FLUENT application in accurately predicting and providing the true physical representation of the free surface flow phenomena using the volume of fluid method.
To investigate the capabilities of the Blender application in accurately predicting and providing the true physical representation of the free surface flow phenomena. To compare and evaluate the performances of both applications in idealising the free surface flow phenomena. To validate the effectiveness of the Blender applications as an efficient CFD application.
13
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
The advantages of CFD are: It supplements results obtained from physical modeling and gives results above the limits of the experimental stage. It provides data which cannot be achieved in the experimental stage. It is less expensive than the laborious experimental stage with many repetitions. It shortens the time of innovative development of a new product or water industry technology. It is more flexible to implement any changes and bring new options and strategies of solutions. It explains reasons not effects.
Some notable disadvantages of CFD are: It requires a CFD specialist and expert in fluid problems as well. As computations are intensive the computer performance required must be very high. It is generally known that the dynamics of a simple fluid is described in the most general form, by the Navier-Stokes equations (Chirila, 2010)
Where: Is the fluid velocity Is the density of the fluid Is the pressure Is the kinematic viscosity of the fluid and Is the acceleration due to external forces acting upon the fluid element After writing down the initial equations, we may employ a series of order-of-magnitude estimates and manipulations to simplify the equations for the particular system (e.g. 15
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
ocean, atmosphere, industrial flow problem and several others. In most practical situations, the system is too complex to be reduced to a system of equations which are analytically tractable, especially if we are asking detailed questions (e.g. will it be a sunny day tomorrow in Leeds?) instead of more general questions (e.g. what is the average humidity of the earths atmosphere?). One way of making further progress in such complex situations is to integrate the model equations numerically. This approach is not devoid of dangers (as additional issues like accuracy of the computers floating-point representations come into play). However, it is, quite often, the best we can do. Perhaps one of the first properties of numerical models that the beginner may realize is their diversity (D. B. Chirila, 2010). Essential to every such approach is the way physical space is discretized or, more exactly, none which kind of space sub-division is the numerical integration performed. Our exact partial differential equations are then ultimately translated to algebraic difference equations, which are then solved locally at each space sub-division. The specific solution algorithms are also themselves adapted to the type of space sub-division (also known as mesh types), so one generally assigns a name to the pairs of mesh and algorithm (Chirila, 2010).
2.2.
The FLUENT application has been around for close to 5 decades and was first introduced in the late 70s. This ANSYS fluid dynamics software offers unparalleled breadth and depth in the modeling of fluid flow related physics phenomena. Viscous and turbulent, internal and external flows and a broader list of physical phenomena such as modeling multiphase flows, chemical reaction, and combustion can be calculated with ease. A variety of solver methods and numerical schemes are available. This includes finitevolume solvers using both coupled and segregated methods for general fluid flow modeling, and a finite-element solver for viscous flows of complex fluids. Fully unstructured grids can be used with all common cell-types, including polyhedral meshes. ANSYS FLUENT software contains the broad physical modeling capabilities needed to model flow, turbulence, heat transfer, and reactions for industrial applications ranging from air flow over an aircraft wing to combustion in a furnace, from bubble columns to oil 16
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
platforms, from blood flow to semiconductor manufacturing, and from clean room design to wastewater treatment plants. Special models that give the software the ability to model in-cylinder combustion, aero-acoustics, turbo-machinery, and multiphase systems have served to broaden its reach. Perhaps the most intriguing capability is the applications interactive solver set-up, solution, and post-processing capabilities which make it easy to pause a calculation, examine results with integrated post-processing, change any setting, and then continue the calculation within a single application.
2.3.
Blender is a 3D graphics application used predominantly for animation and movie making. It has a convincing 3 dimensional modeling prowess that has amazed CFD experts and defiles most present technology with regards to computing accuracy and capabilities of todays computers. An open source application, Blender has been able to product simulations that compete with most present day industrial and academic CFD applications. This modeling and animation program also competes with much more expensive commercial products such as Autodesk Maya, yet, unlike other free and lowcost alternatives, Blender runs fast, never crashed, and offers a wealth of deep features. Blender was developed as an in-house application by the Dutch animation studio NeoGeo and Not a Number Technologies. It was primarily authored by Ton Roosendaal. Thuerey (2007) developed a fluid simulation capability for it, called El'Beem, from his work in modeling metal foams using the Lattice Boltzmann Method (LBM) for fluid flow. Blender Fluid Simulation is meant primarily for animation graphics and is not physically rigorous. However, it contains gravity, mass, inertia, and viscosity and has often been said to have surface tension capabilities as well. Viscosity choices are listed in the program for water, honey, oil and "manual". According to Thuerey (2007), the "realworld-size" variable, which is listed as the longest dimension of the solution domain in meters, is primarily used to adjust the visual viscosity of the fluid. So all one can say is that when it is set to water, it models a fluid that behaves similarly to water in a domain of loosely know scale. In some cases, It looks exactly and even better than water.
17
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
Figure 2.2: The Blender working environment The algorithm used for Blenders fluid simulation is the Lattice Boltzmann Method (LBM); other fluid algorithms include Navier-Stokes (NS) solvers and the Smoothed Particle Hydrodynamics (SPH) methods. Therefore, a review of this computational method is necessary.
18
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
(a)
(b)
Figure 2.3: A Typical Lattice structure in (a) 2D and (b) 3D (Source: D. B. Chirila, 2010). LGCA and LBM are both sub-classes of Cellular Automata. Common characteristics for all of these models include: Set of connected sites (the lattice) Some state-variables defined at each site (several Boolean variables for LGCA or several real variables for LBM, as will be explained in next section) An update rule, based on local and neighbour information (for LGCA and LBM, we have a composite update rule, namely collision and streaming) Perhaps the most important characteristic of the models was the discretization of velocity space, which means that particle velocities were restricted to a finite set of orientations. Denote by the discretized probability distribution functions , thereby eliminating the
need for ensemble averaging (D. B. Chirila, 2010). At each time-step, the particles move along their corresponding directions, approaching the next lattice point. If more than one of these Boolean particles arrive simultaneously at the same lattice point, a collision rule is applied, which re-distributes the particles such that the conservation laws (for mass and momentum) are satisfied. The lattice Boltzmann method is a powerful technique for the computational modeling of a wide variety of complex fluid flow problems including single and multiphase flow in complex geometries. It is a discrete computational method based upon the Boltzmann equation (D. B. Chirila, 2010). It considers a typical volume element of fluid to be composed of a collection of particles that are represented by a particle
19
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
velocity distribution function for each fluid component at each grid point. The time is counted in discrete time steps and the fluid particles can collide with each other as they move, possibly under applied forces. The rules governing the collisions are designed such that the time-average motion of the particles is consistent with the Navier-Stokes equation (D. B. Chirila, 2010).
20
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
Finally, because of the SPH method has large similarities with molecular dynamics, complex physical theories can easily be included However, one often reoccurring argument regarding this method is the uncertainty and prior identification of which particles during interactions would reproduce the equations of fluid dynamics or continuum mechanics. (Monaghan, 2005)
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
namely disperse flows and separated flows. By disperse flows we mean those consisting of finite particles, drops or bubbles (the disperse phase) distributed in a connected volume of the continuous phase. On the other hand separated flows consist of two or more continuous streams of different fluids separated by interfaces (Brennen, 2005).
22
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
In disperse flows, two types of models are prevalent, trajectory models and two-fluid models. In trajectory models, the motion of the disperse phase is assessed by following either the motion of the actual particles or the motion of larger, representative particles. The details of the flow around each of the particles are subsumed into assumed drag, lift and moment forces acting on and altering the trajectory of those particles. The thermal history of the particles can also be tracked if it is appropriate to do so. Trajectory models have been very useful in studies of the rheology of granular flows primarily because the effects of the interstitial fluid are small. In the alternative approach, two-fluid models, the disperse phase is treated as a second continuous phase intermingled and interacting with the continuous phase. Effective conservation equations (of mass, momentum and energy) are developed for the two fluid flows; these included interaction terms modeling the exchange of mass, momentum and energy between the two flows. These equations are then solved either theoretically or computationally. Thus, the two-fluid models neglect the discrete nature of the disperse phase and approximate its effects upon the continuous phase. Inherent in this approach, are averaging processes necessary to characterize the properties of the disperse phase; these involve significant difficulties. The boundary conditions appropriate in two-fluid models also pose difficult modeling issues. In contrast, separated flows present many fewer issues. In theory one must solve the single phase fluid flow equations in the two streams, coupling them through appropriate kinematic and dynamic conditions at the interface.
23
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
2. No special provision is necessary to perform reconnection or breakup of the interface and in this sense the change of topology is implicit in the algorithm. 3. They can be relatively simply extended from two-dimensional to three dimensional domains.
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
goal is to use enough elements to resolve the phenomena of interest, and no more, so that computing times are kept to a minimum. Arithmetical operations associated with an element generally involve only simple addition, subtraction, multiplication and division. For instance, the change of mass in an element involves the addition and subtraction of mass entering and leaving through the faces of the element over a fixed interval of time. A simulation requires that these operations be done for thousands or even millions of elements as well as repeated for many small time intervals. Computers are ideal for performing these types of repetitive operations very rapidly. Simulating fluid motion with free surfaces introduces the complexity of having to deal with solution regions whose shapes are changing. A convenient way to deal with this is to use the Volume of Fluid (VOF) technique described next (Flow science Inc., 2005)
25
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
Figure 2.4: Surface in 2d Grid of Elements. (Source: Flow science Inc. 2005).
26
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
As in the one-dimensional case, it is first necessary to find the approximate orientation of the surface by testing the neighbouring elements. In Fig. 2.4 the outward normal would be closest to the upward direction because the difference in neighbouring values in that direction is larger than in any other direction. Next, local heights of the surface are computed in element columns that lie in the approximate normal direction. For the twodimensional case in Fig. 2.4 these heights are indicated by arrows. Finally, the height in the column containing the surface element gives the location of the surface in that element, while the other two heights can be used to compute the local surface slope and surface curvature. In three-dimensions the same procedure is used although column heights must be evaluated for nine columns around the surface element. Although a little more computation is needed, it consists primarily of simple summations in the columns and then sums and differences of column heights for evaluating the slope and curvature. Based on this discussion, the reader should now see how the fractional fluid volume can be used to quickly and easily evaluate all the information needed to define free surfaces. The region occupied by fluid in the flow over a step problem is much less than half of the open region in the computational grid. If it were necessary to also solve for the flow of gas surrounding the liquid, then considerably more computational time would be required. In order to perform solutions only in the liquid, however, it is necessary to specify boundary conditions at free surfaces. These conditions are the vanishing of the tangential stress and application of a normal pressure at the surface that equals the pressure of the gas. It is important to note that movement and deformation of a free surface must be computed by solving for the fraction of fluid variable, F, as it moves with the fluid. Because the variable F is discontinuous (i.e., primarily 0.0 or 1.0) some care must be taken to maintain this discontinuity as it moves through a computational grid. In the VOF method, special advection algorithms are used for this purpose.
27
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
Figure 2.5: Fluid Fraction Values in Elements, Showing Sharpness of Surface Definition. (Source: Flow science Inc. 2005).
Figure 2.6: Close Up Of Fluid Fraction Values Where The Overflow Hits Bottom.(Source: Flow science Inc. 2005).
28
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
29
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
crested weir of height 401mm and length 500mm placed in a horizontal rectangular channel which was 499mm wide and 700mm high. Although their experiment was basically to proposed the use of broad crested weirs as an additional standard structure for hydraulic measurements and overflow structures against the general conception at the time suggesting them to be poor overflow structures and not accurate in discharge measurements. Hager and Schwalt, in their experiment were able to proffer conditions in which if followed would render the broad crested weir efficient as a measuring structure and an overflow structure. These conditions were documented as follows; I. II. III. IV. V. VI. Sharp-crested upstream weir corner. Vertical upstream face. Smooth and horizontal weir surface. Weir length Lw such that 0.1 < ~ < 0.4. Minimum overflow depth ho = 50 mm. Rectangular and straight approach and tail water channels.
30
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
The use of second-order discretization scheme for the momentum, turbulence kinetic energy and dissipation equations. The use of the PISO pressure velocity coupling algorithm A time step of 2.0 x 10-4 was used throughout to keep the simulation stable owning to the demands of the VOF model
To successfully reach steady state, the team conducted close to two hundred and seventy thousand time steps to arrive at a solution. The results revealed a slightly lowering of the free surface upstream of the weir relative to the experimental results in the Hager and Schwalts experiment. From this research D.M. Hargreaves et al. successfully validated CFD applications in the modeling of free surface flows over hydraulic structures Table 2.1: Results from the H&S Experiments and D.M. Hargreaves et al. CFD Simulations
Run 1 6 7 8 9 10 11 11b 11c 11d Notes 2D, RNG 2D, RNG 2D, RNG 2D, RNG 2D, RNG 2D, RNG 2D, RNG 2D, Standard - 2D, RSM 3D, RNG Ho (mm) 50.9 60.7 84.4 108.4 139.2 178.0 204.7 Q2(m3 s-1 x 10-3) H&S 8.25 10.90 17.81 25.98 37.59 54.83 68.07 CFD 8.27 10.84 17.65 25.74 37.49 54.42 67.38 69.38 66.96 68.37
31
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
Figure 2.7: Simulation of Flow over a Step Showing Pressure Contours (Source: Flow science, 2005) Because some turbulence was expected to develop in the pool to the left of the overflow, a turbulence model (the Renormalization Group or RNG model) was used in the simulation. Subsequent simulations without a turbulence model produced very similar results, which is not too surprising since most of the important elements of the flow are smooth (i.e., non-turbulent) inflow, overflow and outflow streams. To summaries a description of the CDF modeling, the left boundary was a specified velocity boundary (also with a specified fluid height). The right boundary was an outflow boundary where all flow quantities have a zero gradient normal to the boundary to encourage a uniform outflow. The top and bottom boundaries are rigid walls, while in the third direction the boundaries were treated as planes of symmetry (i.e., walls with zero viscous drag). The surface of the step was also treated as a free-slip boundary. Initial conditions could have been set to roughly approximate the expected flow arrangement. Because a transient flow simulator was used, a simple initial condition was defined that consisted of just a block of fluid on top of the step, Fig. 6 with the same horizontal velocity and height assigned to the left boundary. The overflow (sheet of liquid or nappe) leaving the top of the step has both an upper and lower free surface. At the bottom of the overflow a pool has formed between the overflow and the face of the step, while downstream, liquid is flowing to the right with a flat, steady surface. Strictly speaking, the flow conditions in the pool region are not steady because turbulent mixing is generated in the pool by the impinging fluid. There is, however, an average configuration and that is what is reported in the experiments. As 32
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
expect with VOF iterations, considerable amount of computational time was required to achieve such accuracy. The Flow 3D team stated a total CPU time on a desktop Pentium 4, 3.20GHz computer was 88s. Table 2.2: Comparisons between experiment and simulation
Comparison Table Outflow Height/Step Height Pool Height/Step Height Angle of Nappe at Bottom Energy Loss/Initial Energy Experimental Results 0.094 0.41 57 0.29 Simulation Results 0.094 0.41 59 0.296
33
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
34
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
Figure 3.1: Schematics of the broad crested weir and notations (Hargreaves et al., 2007) It is important to note that in the hydraulics of a broad crested weir the discharge coefficient is related to the approach energy head and not to the approach flow depth. Thus, the effect of velocity of approach is completely contained since the discharge coefficient is related to the approach energy head and not to the approach flow depth. In summary, the effect of velocity of approach is a function of the approach flow depth and the weir height. The weir configuration at the upstream should have a domain which extends as least thrice the energy head (Ho) a requirement stated as a requirement by Boiten (2002) in his study of weir discharge measurement. For water, the typical limit head is some 30-50 mm. A distinct feature of the broadcrested weir is the corner separation, which was analyzed by Moss (1972). Its length was found to be 0.77ho, and its maximum height is 0.15ho. Tracy (1957) was able to generalize the surface profile using ho as normalizing parameter, provided 0.1 0.4. Further, a number of limits concerning the approach flow depth, channel width, weir height, and crest length were specified. Crabbe (1974) expanded the application limits as proposed by Singer (1964) in terms of weir length and weir height, and Sreetharan came up with limits as wide as 0.08 < 5.6 and 0.006 < Ho/w < 4. 35 <
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
According to Ramamurthy et al. (1987) the upstream corner of a broad crested weir may be considered sharp provided the radius of curvature is smaller than R < 0.094w. Thus, extreme sharpness of corner radius on the flow is not necessary. For the validation study, a vertical slice 2D model was used. The use of a 2D model can be justified on the grounds that Hager and Schwalts indicated their experiments were essentially 2D in nature and only took measurements on the centerline in the channel. With a 2D model it is possible to produce a grid that resolves the vertical and stream wise directions with sufficient accuracy. Adding a third dimension severely limits the accuracy of the simulations because of the necessarily reduced refinements in the 3 coordinate directions. Flow features over a broad crested weir are to be investigated in a modeled horizontal rectangular channel 500mm wide, 3500mm total length and 800mm high. A broad crested weir of height 400mm and length 500mm is placed in the channel. Figure 3.1a shows the dimensions of the domain used in the modeling.
3500mm
500mm
800mm
400mm
(a)
2500mm
1000mm
Symmetry
Pressure Outlet
Pressure Inlet
Nappe
(b)
Figure 3.2: Computational Domain (a) With Dimensions (b) With Boundary conditions
36
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
Pressure Outlet
Pressure Inlet
37
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
Pressure Outlet
Figure 3.4: Computational Domain Showing Boundary Conditions With Assigned Faces
A zone-type specification defines the physical and operational characteristics of the model at its boundaries and within specific regions of its domain. Continuum-type specifications, such as FLUID or SOLID, define the characteristics of the model within specified regions of its domain. The importance of specifying zones in the computational domain was highlighted in the various investigated simulations. The research study tried out a number of different modeling adjustments to the domain such as adopting all three differently modified computational domains in figure 3.4 and observing the accuracy of the results obtained. Fig.3.4 shows the various computational domains iterated. Fig.3.4a represents a computational domain with no assigned zone continuum type while Fig. 3.4c shows the preferred (zoned and with interfaces defined) computational domain used for final validation and comparison with experiment and previously simulated data. SIM A to D was run using the domain in fig 3.4a while the domain in fig 10b was used for SIMs 1 and 2.
Symmetry
Pressure Inlet
Pressure Inlet
Face 2
Interface
Pressure Outlet
Nappe
Face 1
(a)
Symmetry
Face 1
Pressure Outlet
Pressure Inlet
Nappe
Face 2
38
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
(b)
Symmetry Interface Nappe
Face 3 Face 1
Pressure Outlet
Figure 3.5: Three Computational model types tested (a) with no assigned zone (b) with two zones separated by but no defined interface (c) with three defined zones and two interfaces.
Mesh adaptation, also known as Adaptive Mesh Refinement (AMR), refers to the modification of an existing mesh so as to accurately capture flow features. Generally, the goal of these modifications is to improve resolution of flow features without excessive increase in computational effort. There are three main mesh adaptation strategies and combinations of these three have lead to other new strategies in recent times. These main three include R-refinement, H-refinement, or P-refinement. In this study however, the H-refinement strategy was adopted. H-refinement is the modification of mesh resolution by changing the mesh connectivity. Depending upon the technique used, this may not result in a change in the overall number of grid cells or grid points. The simplest strategy for this type of refinement subdivides cells, while more complex procedures may insert or remove nodes (or cells) to change the overall mesh topology. In the subdivision case, every "parent cell" is divided into child cells. For every parent cell, a node is added on each face. For 2D quadrilaterals, a node is added at the cell centre also. If these nodes are joined, we get 4 new "child cells" from the parent cells. Therefore, every quadrilateral parent cell will give rise to four new child cells. The advantage of such a procedure is that the overall mesh topology remains the same with the child cells taking the place of the parent cell in the connectivity arrangement. The subdivision process is similar for a triangular parent cell, as shown below. It is easy to see that the subdivision process increases both the number of points and the number of cells.
Pressure Inlet
Face 2
Interface
(c)
39
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
Figure 3.6: Illustrating the H-refinement sub-division The H-refinement mesh adaptation often leads to the development of hanging nodes. The hanging node occurs in 2D when one of the cells sharing a face is divided and the other is not, as shown below. For two quad cells, one cell is divided into four quads and other remains as it is. The highlighted node is the hanging node.
Figure 3.7: Illustrating the hanging node This leads to a node on the face between the two cells which do not belong to both of the parent cells. The node "hangs" on the face, and one of the cells becomes an arbitrary polyhedron. In the above case, the topology seemingly remains same, but the right (undivided) cell actually has five faces. The simplest refinement anyone can think of is to divide all cells in the domain. This is referred to as "Uniform Refinement". Although it does improve the solution vastly, it is easy to realise that we are going for a huge unwanted effort in doing so. Therefore, to achieve the goal of mesh adaptation, the refinement is done at "selected" regions alone based on certain criterion. This is referred to popularly as AMR or Adaptive Mesh Refinement.
40
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
The geometry formation in Gambit were refined and redefined on a number of occasions during the analysis. FLUENT provides additional refinement one of which is the smooth and swap tool. During the course of the study Initial geometries produced were void of zones or continuum type specifications however having understood the effects of specifying zones within a domain to the accuracy of predictions, they were subsequently included. To further ensure realization of a replicate physical phenomena, mesh refinements in form of assigning boundary layers to walls is utilized. This is a local refinement technique that is widely used in many CFD applications and it involves the concept of a stretched grid in the near vicinity of domain walls. In a real physical flow, there will be a developing boundary layer that will grow in thickness as the fluid enters the left boundary and migrates downstream along the bottom wall of the domain. In contrast, the coarse stretched grid at the very least catches some of the essential features of the actual physical boundary layer. It is therefore not surprising that the accuracy of the computational solution is greatly influenced by the grid distribution inside the boundary layer region. For the modeled geometry in this report, Gambit allows for this refinement by allowing near wall mesh refinements in form of assigning boundary layers. In simple terms, a boundary layer is that layer of fluid in the immediate vicinity of a bounding surface. Because the shear stress is maximum in the boundary layer, there is need to use a much smaller mesh size in this region. This is to reduce the numerical errors resulting from the discretisation of the governing equations in this region. At this point, it becomes expedient to list a summary of the simulations conducted. Hence tables 3.1 give a summary of the mesh topology and other simulation parameters used for the conducted simulations. Table 3.1: Summary show characteristic parameters of all simulations SIMULATIONS No. 1 2 3 4 5 6 Mesh Type Structured Non conformal Structured Non conformal Structured Structured 41 NOTES 2D - RNG 2D - RNG 2D - RNG 2D - RNG 2D - RNG 2D - RNG Ho (mm) 50.90 60.70 84.40 108.40 139.20 178.00
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
7 8 9 10 11 12 13 14 A B C D
Structured Structured Non conformal Structured Non conformal Non conformal Non conformal Structured Structured Structured Structured Structured
2D - RNG 2D - RNG 2D - RNG 2D - RNG 2D - RNG 2D - RNG 2D - RNG 2D - RNG 2D - RNG 2D - RNG 2D - RNG 2D - RNG
204.70 50.90 60.70 84.40 108.40 139.20 178.00 204.70 50.90 60.70 84.40 108.40
Generating a good mesh is a large part of the CFD problem and a good quality mesh is usually the first step in achieving good results. What is a satisfactory mesh for a problem will not automatically be so when another model option is enabled and the real effect of the mesh type is further researched in this study. Hargreaves, Morvan and Wright in the paper, the Validation of the volume of free method for free surface calculations, utilised non conformal meshes resulting in a reduction of overall cell count. In this study, both structured meshes and non conformal meshes are adopted in the investigation.
Figure 3.8: Mesh region showing non conformal meshes at the interface
Figure 3.9: Mesh region shown structured meshes across the domain 42
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
The Topology of a structured mesh is rectangular and this means that the mesh volume is a quadrilateral in 2d or a hexahedron in 3d. Each mesh volume is linked only to its immediate neighbours but the edges can be mapped around curves. In addition, mesh volumes may not be the same size. The use of a structured mesh often reduces storage and CPU requirements. Unstructured grid or non conformal grid on the other hand can have their mesh volumes linked to any other volume in the domain and can be any shape. There is less computationally efficient than a structured grid but can still read a structured grid topology. Non conformal grids introduce flexibility but this flexibility creates problems with computation such as numerical diffusion and skewness and therefore they are regarded as inefficient. It is often known that because the faces are not automatically aligned with the flow you can get false diffusion. The general perception is that quadrilateral mesh often give better results when utilised in a simulation, therefore part of the investigations conducted in this research is to study the effect of the use of structured and unstructured mesh in a CFD computation. To investigate this, simulations SIM 1, 2, 3, 4, 5, 6, 9 and 11 were conducted alternating between structured and non conformal mesh respectively. Table 11 shows the results of the simulations.
(a)
43
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
(b)
(c)
(d) Table 3.2: Varying Mesh Sizes for Grid Dependency Test (a) 15 Size Mesh (b) 25 Sized Mesh (c) 40 Sized Mesh (d) 50 Sized Mesh Spacing
44
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
The examination of the spatial convergence of a simulation is a straight-forward method for determining the ordered discretization error in a CFD simulation. The method involves performing the simulation on two or more successively finer grids. For the computational domain in this study, we are bound to determine the error band for the engineering quantities obtained from the finest grid solution and likewise, to determine the error on the much coarser grids. Grid independence test conducted were on energy pressure heads 50.9, 60.7 and 84.4 where grid sizes 15, 25, 40 and 50 were iterated and results described in SIM 14, 15, 16 and 17. Table 12 shows the results for these simulations.
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
Iterative Time Advancement option (NITA)) Fractional Step (FSM). These schemes are referred to as the pressure-based segregated algorithm. Spatial discretization specifications of momentum, pressure, turbulent Kinetic energy and turbulent dissipation rate were all ran initially in first order upwind with the implicit formulation scheme. This was until simulations showed some semblance of stability (refrained from diverging) subsequently, the second order upwind solver was adopted. The model geometry has a profound impact on the accuracy of the simulation and therefore a number of modifications to the geometry were made to study its impact on the simulation. The general dimension of the geometry was maintained however, the impact of zone specification was investigated alongside the effects of using specifying and meshing interfaces. Gambit provides the options of introducing zones in the domain continuum, however FLUENT requires that in the case where two or more zones are specified in the under the continuum type, interfaces must introduced and meshed. At the unset of this research, no continuum type specification was made and the need to introduce zones was later discovered as the owning to a series of failed simulations. Geometry adjustments were made to the domain and at the onset two zones continuum types were assigned. The continuum types, water and air were then separated by duplicating the interface edge and assigning the interface boundary condition. Subsequently when this is exported to FLUENT, new mesh interfaces must be specified and their zones defined. Simulations conducted using this zoned and interface models are displayed in figure 9 (Appendix A). An additional simulation was performed by changing the inlet geometry and boundary condition. The effect of a slice gate was replicated by assigning a velocity inlet to the third of the inlet as shown in figure 10 (Appendix A). The results of this simulation are discussed in the following chapter. The numerical model used was transient owing to the use of the geometric reconstruction surface tracking algorithm. The re-normalised group theory (RNG) - Turbulence model of Yakhot and Orsag (1986) was used with standard wall functions. This is one of the ranges of turbulence models classes as Reynolds-Average Navier-Stokes (RANS) model as defined by Ferziger and Peric (1997). They are timed average approximations that are widely used in industrial applications. The RNG - has known advantages when there are strong curvatures in the streamlines as is the case with 46
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
the acceleration flowing over the weir. The standard - model is known to be of limited accuracy when used to model flow bluff bodies such as weir. The sensitivity of the results to the turbulence model was tested in the present work, by using the standard - model and the Reynolds stress model (RSM) of launder et. al (2005) in addition to the RNG - model. For the purpose of comparison with the Blender simulation the generalized description of the CFD modeling setup can be described as follows; The pressure discretisation scheme was force-weighted because of the presence of gravity. Second-order discretization scheme was used for the momentum, turbulence kinetic energy and dissipation equations. The PISO pressure velocity coupling algorithm was use, purely because it is designed specifically for transient simulations. A time step of 2.0x10-4 was used throughout to keep the simulation stable because of the demand of the VOF model. The domain extends as least 3HO upstream of the weir which was stated as a requirement by Boiten (2002). The types and position of the boundary conditions used are shown in figure 7(b). Pressure inlets was assigned to the upstream boundary however the free surface heights, total heights and bottom levels are specified under the flow specific methods. The values used are dependent on the geometry build up in Gambit. The intensity and hydraulic diameters are also specified for momentum. With these specified, FLUENT internally calculates the volume fraction and static pressure at the inlet based on the position of the face, relative to the free surface position. The energy head, HO, is also required in order to take into account the dynamic pressure of the flow. Subsequently FLUENT applies the appropriate static pressure outlet, only the free surface height (or tail water) height was required. A tail water level of 0.1m was adopted representing 25% of the weir height. This ensures subcritical flow at the outlet of the domain for the various cases simulated. The important of maintain subcritical flow study show that in the absence of any topographic downstream control, the horizontally moving radial flow (after impingement) attains a critical the total rate entrainment into 47
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
the near field mixing zone of an impinging, buoyant jet is strongly influenced by the presence of a downstream control. In the absence of any downstream control, the flow attains a critical flow state of maximum entraining type. This condition can be expressed as the sum of the upper and lower densi-metric Froude Numbers being approximately equal to one (Ulasir and Wright, 2003). The upper boundary above air phase was specified as a symmetry condition, which enforces a zero normal velocity and a zero shear stress. Use of a symmetry boundary condition in this way is a standard practice for such distant, open boundaries. All other unmarked boundaries are set as walls. On the walls, the no-slip condition was applied and the walls were assumed to be smooth. Fig. 3(b) also shows a small pressure outlet. This is to allow air into the model so that the nappe can separate from the weir and allow the weir to function correctly, rather than having the flow dribble down the face of the weir. Finally after several iterative simulations, the best solutions for displaying the VOF method, SIMs A, B, C, and D were run to compute flow characteristics. These results are displayed in table 4.1.
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
room to accentuate the character and place character in the centre of the picture. For a good multipurpose setup, three lights in a classic arrangement know as three point lighting is employed as follows. (Howcast Media, 2009) One light in front of and slightly above the subject at a 45-degree angle. This is the key light. A second light behind and above the subject. This is the backlight, and it helps separate the subject from the background. A third light on the opposite side of the key light. This is the fill light. The light from this source should be indirect or diffuse, so consider reflecting it, or shining it off a wall or at the ceiling
INFLOW
INLET
WEIR
CHANNEL BOUNDARY
OUTLET
Figure 3.10: The geometric model as assembled in Blender There are six geometry objects that need to be assembled in Blender to represent the computational domain;
49
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
1. The main structure the rectangular channel built to hold as a single entity the broad crested weir. 2. The Broad crested weir, through which fluid flow is to be observed. 3. The inflow water source that allows for the specification of flow direction and velocity. The need to assign inflow rather than a volume specification is inherent in the fact that for setup constant flow of water over the weir is the desired output. 4. A domain and a source of fluid. Blender requires the computational domain to be embedded in virtual domain (being the rectangular mesh structure) that defines the limits of the simulation. The domain will act as an invisible wall for the fluid. 5. The outflow required to take fluid out the domain. Once the geometry is setup the tasks of assigning a fluid simulation follows subsequently. This defines the behavioural characteristic of each geometric element. It simply tells each geometric element how to behave during simulation. The inflow is enabled and set to initialization volume as shown below. Inflows will inject water inside the domain. Extreme care is taken not to fill up the entire domain, or the calculations will be severely downgraded. The difference between inflow and volume specifications in Blender is that the volume specification defines a fixed amount of water. A volume of water can move around but has a contact quantity that remains the same. An inflow, on the other hand, is a never ending source of fluid. It will begin with that volume of fluid, but will keep pumping out more. In the inflow's options, Inflow velocity magnitude needs to be predetermined iteratively. The velocity direction is also required to set the inflowing fluid in its path. (Blender.org 2010)
Figure 3.11: Presets for Inflow and outflow definitions (Source: Blender.org) The outflow is assigned and enabled to control the fluid exiting the domain. The amount of water put inside the domain is defined by both the area of the cross section perpendicular to the flow and the velocity set. Volume Initialize will instruct the 50
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
simulation to initialize the inner part of the object as fluid and this is preferred for this setup. Figure shows all three optional volume initialize types. Init Shell if assigned will only initialize a thin layer for all faces of the mesh, this also works for non closed meshes. Init both if assigned, combines volume and shell, this requires that the mesh be closed. The open channel and the solid weir are specified as obstacles. As the name implies, is an object that is placed in the fluid simulation to obstruct the flow.
(a)
(b)
(c)
Figure 3.12: The different volumes initialize types. (a) Volume Initialize (b) Shell Initialize (c) Initialize both shell and volume (Source: Blender.org) Blender requires a domain for the simulation to be done, this is not to be mistaken as the computational domain explained above. The domain of the simulation is a box where the fluid calculation will be done. The dialogue boxes below illustrate the required elements to be specified. The resolution specified is essential to the simulation and this is a very important property to be selected. It will determine the extent of graphical detail the rendered results will show. A resolution of 50 was initially set and as a better understanding of this parameter was finally understood, the resolution was subsequently increased to 250. The higher the resolution, the better the graphic detail but also the more memory is used (both RAM and HD) and baking time.
51
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
Figure 3.13: Presets for Domain definition (Source: Blender.org) Figure 3.7(b) below show the render image of the modelled computational domain. To ultimately study the flow feature as generated in Blender, this study made a few adjustments to the model.
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
raytracing. Ray tracing involves sending a ray of light from the camera and when it reaches a transparent surface, instead of showing what is exactly behind it on the same trajectory, the ray will be deflected by the curves of the transparent surface according to its density, thereby showing a slightly different part of the environment. Z depth transparency on the other hand allows the glass object to show the objects standing behind it, and not anymore the background set in the World menu. The density values of the material needs to be specified to accurately achieve transparency.
53
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
Figure 3.14: (a) Wire frame view of the computational domain as modeled in Blender.(b) Camera view of the rendered domain in Blender. Firstly, in creating and assigning the domain (rectangular channel) care is taken to ensure it encompasses the entire setup. All other element of the scene must lie within the specified domain. We want the domain to be just small enough to contain only what is necessary, but not smaller than the walls. The weir is assigned as an obstacle within the fluid simulation this allows the water to flow around the walls and over the weir. Setting the obstacle to Init Shell instructs Blender to consider the outer surfaces. In other words, the water is outside the object and stays out. In this case water is enabled to flow over the weir and not through the weir.
54
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
55
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
Since the upstream and downstream total energy head are fixed during simulation, the main measures of accuracy are the predicted discharge and the free surface profile. Therefore a greater part of the results obtained compared discharge values and free surface profiles with experimental results obtained in the Hager and Schwalts research. At the onset of the study, several simulations where performed to pre-determine the most appropriate (closely matching experimental) turbulence model, initializations solutions, iteration parameters that best yield the comparable results to physical flow patterns expected for flow over a broad crested weir. Table 4.1 gives a summary of a few experimental simulations conducted and results obtained. Table 4.1: Initial simulation to investigate appropriate solution methods SIM No. T1 T2 T3 T4 T5 T6 T7 SUMMARY SOLUTION METHODS Explicit, RNG, 2nd Order, Geo-Reconstruct Explicit, RNG, 2nd Order, Geo-Reconstruct 2D, Implicit, 1st Order Momentum and Turbulence & Volume Fractions Explicit, RNG, 2nd Order, Geo-Reconstruct 2D, Explicit, Standard -, 1ST Order Momentum and Turbulence, Geo2D, Explicit, Reconstruct RNG, 2nd Order Momentum and Turbulence Geo-Reconstruct Explicit, RNG, 2nd Order, Geo-Reconstruct ho(mm) 50.7 50.7 60.5 84.1 84.1 84.1 138.4 Ho (mm) 50.9 50.9 60.7 84.4 84.4 84.4 139.2 *Discharge (Q) (X103m/s-1) 12.718 9.743 16.217 23.076 17.819 18.960 31.842
Comparing these results to the Hager and Schwalts experimental results show large variations in particular with the implicitly run simulations. The standard - solver gave much closer values. In addition, simulations T1, T2 and T3 show huge variations in discharge reading with the experimental values from H&S experiments shown in the table 1.2.
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
the flows of the same upstream and downstream pressure head conditions. By keeping the pressure heads at 138.4mm above the datum (weir crest) and 100mm above the base of the channel at the downstream region, the sensitivity of the RNG -, RSM and Standard - turbulence models well all investigated. Table 4.2: Results from the study of the effect of turbulence model. SIM No. TURBULENCE MODEL AND MODEL SOLVERS 2D, Explicit, Standard -, 1ST Order Momentum and Turbulence, GeoReconstruct 2D, Explicit, RNG, 2nd Order Momentum and Turbulence Geo-Reconstruct 2D,RSM Explicit, 1st Order Momentum and Turbulence & Volume Fractions *Discharge (Q) (X103m/s-1)
ho(mm)
Ho (mm)
1 2 3
Results from the H&S experiment revealed a physical discharge of 37.59m3s-1 and from the table above, the RNG - turbulence gave the closest results. To further understand the discrepancies in the results, the velocity vectors as generated for the turbulence model was investigated as well as the velocity magnitude plots.
Figure 4.1: Plots of the velocity magnitude for a standard - run The velocity magnitude plot for the standard - initialized solution depicts a drop in the velocity after peak values of 0.5 was attained (as shown in fig 4.2), the RNG run revealed a 57
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
fairly constant velocity value after peak values at a distance of 0.5m. No subsequent drops after peak values. (see figure 4.4).
(a)
(b)
(c)
(d)
Figure 4.2: Contours of velocity vector depicting velocity magnitude (a) RNG - model, Implicit scheme (b) RNG - model Explicit scheme, (c) Standard - model (d) RSM model
The RNG approach, attempts to account for the different scales of motion through changes to the production term. The RNG model was developed using Re-Normalisation Group (RNG) methods by Yakhot et al to renormalize the Navier-Stokes equations and account for the effects of smaller scales of motion. Fig 4.2 and 4.4 show the different vector flow at the drop for both the - RNG and Standard turbulence models. In the standard k-epsilon model, the eddy viscosity is determined from a single turbulence 58
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
length scale, so the calculated turbulent diffusion is that which occurs only at the specified scale, whereas in reality all scales of motion will contribute to the turbulent diffusion.
(a)
(b)
Figure 4.3: Contour plots showing the separation curve (drops).(a) with a RNG - (b) with a standard - It is quite interesting to note the predicted separation curve from tests of varying the turbulence models. The standard - model in 4.3b shows almost no existing separation curve. This corroborate results from the H,W&M validation study in which the drawbacks of the - model in predicting separation was highlighted. The closest to experimental results of separation curve produced by any of the turbulence models simulated was the RNG - model. This, along with closeness of discharge values to experimental (discussed earlier) resulted in the adoption of the RNG - model chiefly in the course of this study.
1 0.9 0.8 0.7 0.6 Velocity Magnitude 0.5 (m/s) 0.4 0.3 0.2 0.1 0 0 0.2 0.4 Position 0.6 0.8
59
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
For the RNG turbulence model the prediction of constant velocity magnitude are slightly closed to existing experimental values than the standard - (K-epsilon) turbulence model. It is often documented that the RNG k - epsilon model offers a significant improvement on the standard k - epsilon model, this is verified with respect to the case study and subsequently, the study adopted the explicitly solved, RNG - model, 2nd Order, Geo-Reconstruct as best practice for simulations adopting the volume of fluid method.
60
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
Table 4.3: Results from test on the effects of mesh topology SIMULATIONS No. 1 2 3 11 4 6 5 9 Mesh Type Structured Non conformal Structured Non conformal Non conformal Structured Structured Non conformal NOTES 2D - RNG 2D - RNG 2D - RNG 2D - RNG 2D - RNG 2D - RNG 2D - RNG 2D - RNG Ho (mm) 84.40 84.40 60.70 60.70 50.90 50.90 108.40 108.40 Discharge (Q) (m3 s-1 x 10-3) CFD 18.12 18.05 9.45 11.03 8.99 9.17 29.91 25.33 *H,M&W 17.65 10.84 8.27 25.74
These extra calculations lead to run time of approximately 2 to 2.5 times that of the structured mesh. In all results however non conformal (non-structurally) meshed domains recorded results closest to results obtained from the H,W&M validation study. This is important to note since structured meshes are often considered to give more accurate final results. Table 4.1 show results from the analysis.
SIM No. 14 15 16 17 18
61
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
Figure 4.5: The Computational Domain (Type B) Showing the Velocity inlet Boundary Condition assigned to the lower third of the Upstream The RNG k - epsilon model is used at a time step size of 0.0002sec, the solution is control by setting the non-iterative solver relaxation factors for pressure and momentum to 0.3 and 0.7 respectively. Since volume fractions are set and patched at the onset, the lower zone of continuum at initialization is filled. As the simulation progresses in channel turbulence is observed as shown in fig 4.5(c) (a)Time =2.46sec
(b)Time=4.14secs
62
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
(c)Time=5.59secs
Figure 4.6: Sequence of flow in the velocity inlet upstream boundary condition
63
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
Figure 4.7: Series of short wave formation as then flow moves towards outlet.
30 20 Mass flor rate (kg/s) 10 0 0 -10 -20 -30 -40 Mass Flow Rate 2000 4000 6000 8000 10000 12000
Figure 4.8: Plot of mass flow rate versus successive increase in time step
64
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
Where
is the friction velocity at the closest wall (in this being the
case being the weir wall at the upstream end of the weir) and
dimensionless velocity, this is commonly used in boundary layer theory. The Local velocity can be obtained from FLUENT and is denoted as Vx under the velocity plots. The frictional velocity at the closest wall, for the domain consider, is a function of the upstream pressure head and can thus be computed as (2gHo) 1/2. FLUENT allows the creation of virtual lines and rakes and as such the non dimensionless velocity can be plotted as well. Fig. 4.8 below shows these plots for simulations 10 and 11. It is interesting to note that while the trends in non dimensional velocities are similar, their magnitudes differ. This is however expected since the upstream pressure head for SIM 10 is much greater than for SIM 11 and these pressure heads are inversely proportional to the dimensionless velocities. The results are as expected with the H&S experimental results but vary slightly in magnitude. Fig. 4.9 shows the results for rakes drawn at -0.5m and 0m from the face of the upstream weir wall. These predicted results vary considerable from the H&S experiment however are a perfect match with the H,W&M predicted results. The result show that velocity increases steadily towards the upstream weir wall and subsequently increases rapidly away from the wall as shown in fig 4.9. At the nappe or recirculation zone, although the results shows similar characteristics as portrayed by the shape of the curve, this predicted results shows much larger recirculation than both the experimental and H,W&M predicted results.
65
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
1.572 Vx/(2gHo)1/2
1.574
1.576 u/(2gHo)1/2
1.578
1.58
Figure 4.9: Non-dimensional horizontal component of velocity at upstream for SIM 10 & 11
0.8 0.75 0.7 0.65 0.8 0.75 0.7 0.65 Ho 0.6 x/Ho @ Rake 0.0
Ho
0.6
Vx/(2gHo)1/2
Figure 4.10: Non dimensionalised Horizontal component of the velocity at x/Ho (a) -0.5, (b) 0.0 both for SIM 11 Reasons for this discrepancy is obviously as a result of small upstream pressure head values (67.38mm) adopted in both studies as against 108.4mm adopted in this investigation. There is very little expectation of errors in the predicted simulations (apart from discretized errors or physical approximation errors), however that mention, the use of physical measuring instruments like the propeller meter adopted in the experimental study could introduce errors in the experimental data.
66
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 -2 -1 0 1 2 3 0 SIM 11 p/gHo y/Ho
1.6 1.4 1.2 1 0.8 0.6 0.4 0.2 0 0.5 1 1.5 2 x/Ho 2.5 3 3.5 SIM 11
Vx/(2gHo)1/2
(a)
(b)
Figure 4.11: Non-dimensionalised (a) Horizontal component of the velocity at the recirculation zone (b) Pressure Head profile at the interface above the weir.
67
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
(a) t=1.01secs
(b) t=1.51secs
(c) t=2.01secs
(d) t=4.01secs
Figure 4.12: Contour plots of Computational Domain type 2 with the lower position pressure inlet at the upstream region
4.1.10.
Pressure Predictions
Unsuccessful attempt were made to extract the free surface profiles in FLUENT and failure to achieve this led to the compilation of contour plots showing the surface profiles in Table 4.5 below.
68
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
Table 4.5: Result summary of simulations showing Contour Profiles at Drop (weir fall)
SIMS No. Mesh Type NOTES Ho (mm) Contour Plot
2D RNG, Explicitly Run, 2nd Order Momentum, TDR &TKE, Volume Structured Fraction (GeoReconstruct), k - epsilon model. 2D RNG, Explicitly Run, 2nd Order Momentum, Non TDR &TKE, Volume conformal Fraction (GeoReconstruct), k - epsilon model. 2D Standard k - epsilon model, Explicitly Run, 1st Structured Order Momentum, TDR &TKE, Volume Fraction (Geo-Reconstruct) 2D Standard k - epsilon model, Explicitly Run, 1st Order Momentum, TDR &TKE, Volume Fraction (Geo-Reconstruct)
50.90
60.70
84.40
Non conformal
108.40
2D Standard k - epsilon model, Explicitly Run, 1st Structured Order Momentum, TDR &TKE, Volume Fraction (Geo-Reconstruct) 2D Standard k - epsilon model, Explicitly Run, 1st Structured Order Momentum, TDR &TKE, Volume Fraction (Geo-Reconstruct) 2D Standard k - epsilon model, Explicitly Run, 1st Order Momentum, TDR &TKE, Volume Fraction (Geo-Reconstruct)
139.20
178.00
Non conformal
60.70
2D Standard k - epsilon model, Explicitly Run, 1st Structured Order Momentum, TDR &TKE, Volume Fraction (Geo-Reconstruct)
108.40
69
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
Figure 4.13: Render images (a) flow over submerged weir (b) unrealistic propagation of fluid flow towards downstream of channel. To improve on this image the study adopted utilised the Raytracing tool in blender to give the channel a transparent material property, similar to experimental chambers used for the study of flow characteristics. In addition, blender provide an optional tool known as onlycast which allow faces of pipes or channels to cast shadows only without being viewing the rendered image. Applying this allows the flow to be monitored without visually observing the channel.
70
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
Transparency was then assigned to the channel and the camera angle repositioned as shown in figure 4.13. The resulting image showed short fluid flow over the weir towards the downstream region of the channel.
Figure 4.14 (a) Rendered view showing flow towards outlet (b) Rendered image of the flow as seen through channel set to transparent
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
my way down to visually observed results. A bulk of the modeling sequence is filmmaking. The fact that blender provides a domain that needs to encompass the entire setup is a source of concern. It appears the domain controls the amount of fluid as again the set parameters at the inflow. First with respect to realism, this study observed the key characteristics and flow patterns depicted by Blender in simulating a fluid flow over a broad crested weir. Fig. (4.15) show simulations set to a real world size 0.030 at a flow start time of 5 seconds, velocity of 10m/s and a bake resolution of 50, even with all the cinematographic effects of lights and cameras, blender failed to apply the real world size consistently with regards to fluid simulation and fills the entire channel with the fluid. It is difficult to associate the scalar values of 1 or lower values of 0.030 to represent a dimension or scale of reference. There is therefore the need to rectify this flaw in Blender.
(a)
(b)
Figure 4.16: Rendered View (a) Time = 5secs, Velocity = 10m/s, Real well size 0.030secs, with bake resolution of 50 (b) Time = 5secs, Velocity = 10m/s with bake resolution of 50, Real well size 0.030secs, Apart from the absence of a physical scaling factor of the kind used in hydraulic research models, the turbulence from this defined inflow looks unrealistic, coarse and violent. In Fig. 4.16, the inflow mesh was scaled to reduce its turbulence nevertheless; the resulting horizontal flow produced other noticeable horizontal flows along the edges and less in an x-directional shape between the corners. Also obvious are visible lumpy triangular air pockets in between the flow particles irrespective of the shape or size of the inflow object as seen in Fig. (4.17). The spurts of water leaping up out of the leading edge of high flow 72
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
(in figure 4.17) was initially thought to be a resultant of the velocity value assigned but a reduction in velocity from 1.2 to 0.5 showed very similar fluid motion. To reduce the speed of the flow, the directional of flow was changed to the negative z direction giving the flow a downward fluid path that eventually accumulates and flows over the weir.
Figure 4.17: Rendered Images obtained from animation of flow over The total absence of air bubbles as should be the case with normal fluid motions is noticeable in Fig 4.18 below. Note the almost perfect stream line of fluid motion even at
73
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
contact with weir. This property, advection, as explained earlier and describe by expressions in the Navier-Stokes equations is not particularly visible in this simulation. While the rendered flow images in Fig 4.17 have a more realistic look, their patterns of fluid motion are flawed with respect to interactions with objects in its part. The accuracy of the results for simulating free surface flow however shows certain limitations from a visual or graphical perspective. The effect of velocity used might be responsible for this anomalies, however in real time fluid motion show no correlation with the rendered images shown in Fig 4.18.
Figure 4.18: Rendered image at stream wise velocity of -0.5 and real world size of 0.030 This is not to say that the application is incapable of actual and realistic fluid simulations but from this investigation, the use of cinematographic effects or in other words animation and camera effects are obvious to a very large extent. Therefore while elements of computational fluid dynamics are utilised by blender much of the results are reflections of camera, lights and animation.
74
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
explained the importance of the application of CFD in optimizing design. To then ensure that predicted results are inconformity with physical real time behaviour of the interactions of fluid in any environment, it is expedient that the verification and validation of CFD applications be done before their use as commercial or industrial applications. The aim of the study was therefore tailored to the verification and validation of two CFD applications, one already in use commercially and the other a recent addition to numerical computation. To attempt a verification and validation, flow over a broad crested weir was successfully simulated in ANSYS FLUENT and Blender, both to varying degrees of accuracy. This report then critically discussed the accuracy of the results obtained in both applications. The study started off by explaining the characteristics of fluids in motion and proceeded to explain with the use of basic mathematical equations the expected physical representation of fluid motion as stated by Navier-Stokes. The concept of free surface flow was then highlighted and the challenges and complexities inherent in the simulation of multiphase flows such as the fluid flow over a broad crested weir were critically described. Relevant literatures to this study were reviewed and physical experimental data from the Hager and Schwalts experiment was selected as a base for comparison. In addition, the validation study by Hargreaves, Wright and Morvan were frequently used to cross check predictions from this study. The study proceeded to simulate the flow of water over a broad crested weir and investigated the simulation capabilities of the both application in representing and predicting free surface flows. ANSYS FLUENT show remarkable predictions of free surface flows using the volume of fluid (VOF) method. In the test on the effect of the turbulence model, the RNG k-epsilon model showed almost perfect similarities with experimental data obtained in the H&S experimental result with slight differences in pressure and velocity predictions. Discharge at the downstream of the channel was a source of concern as values fluctuated rapidly; the study however associated this with formation of waves at the downstream zone of the channel as evident in the contour plots from selected runs. It 75
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
was thought that if the channel length at this downstream region was extended, discharge values would ultimately results in non fluctuating values. While Blender showed more graphical prowess, the results showed flaws in scalar quantification and realism to some extent. Although the study showed that the application is capable of performing CFD simulation, it was discovered that much of this simulations are enhanced by light effects and camera refinements as typical of the animation industry. In general, filmmaking techniques have been adopted to show a resemblance of actually performing CFD and as such cannot be validated for used a CFD application.
76
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
6. RECOMMENDATIONS
The inability to extract raw velocity, pressure and other scalar quantitative data from Blender has limited the comparison of the capability of the blender application. An effective comparison can be achieved with this extracted data in hand. To achieve this, there is the need to develop script capable of identifying first and foremost the relevant data file and subsequently developing a post processing suite capable of displaying the data for ease of interpretation. In addition, Blender is without doubt a powerful application and considering the fact that the developers have incorporated solvers of fluid dynamic equations says a a lot as to what the future holds for CFD and the industry. If an industrial variant of the application is develop, one that incorporates the analytical aspects as expected of any CFD application but in addition, incorporates the visual prowess of Blender in solving engineering problem. While Blender may be discarded by the CFD industries and academics, its potentials remain to be tapped and thus opening a new field to post-processing of CFD data. One would easily agree that basing engineering design for industrial or commercial purposes on the effectiveness of the interpretation of numerical data (a bunch of numbers), appears a technological era behind actual visual (in real-time) representation of data for design purpose. With regards to fluid dynamics and the weir case study, there is a need to further investigate the flow characteristics at the downstream region. As well as numerous validation and verification exercises of the prediction accuracy of CFD application in general.
77
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
7. REFERENCES
Acheson, D.J. (1990). Elementary Fluid Dynamics. Oxford: Oxford University Press. Aliabadi S . et. al, (2003). Parallel finite element simulation of mooring forces on floating objects. International Journal of Numerical Methods in Fluids 41 809822. Available at http://onlinelibrary.wiley.com/doi/10.1002/fld.459/pdf (accessed on 1 August 2010) Blender.org (2010). Fluid simulation tutorial. Available at http://wiki.blender.org/index.php/Doc:Tutorials/Physics/BSoD/Fluid (accessed on 1 July 2010) Boiten W. (2002). Flow measurement structures. Flow Measurement and Instrumentation 13 (5-6) pp.203207. Available at http://www.sciencedirect.com/science?_ob=ArticleURL (accessed on 12 June2010) Brennen, C. E. (2005). Fundamentals o f Multiphase Flows. New York: Cambridge University Press. Available at http://assets.cambridge.org/97805218/48046/excerpt/9780521848046_excerpt.pdf (accessed on 24 June 2010) Chirila, D. B. (2010). Introduction to Lattice Boltzmann Methods. Available at http://www.awi.de/fileadmin/user_upload/Research/Research_Divisions/Climate_Scien ces/Paleoclimate_Dynamics/Modelling/Lessons/Einf_Ozeanographie/lecture_19_Jan_2 010.pdf (accessed on 5 July 2010). Chung, T.J. (2002). Computational Fluid Dynamics. UK: Cambridge University Press. Crabbe, A.D. (1974), Some Hydraulic Features of Square-Edged Broad- Crested Weir. Water and Water Engineering 78 (10), PP. 354358. Fach S. et. al, (2009). Determining the spill flow discharge of combined sewer overflows using rating curves based on computational fluid dynamics instead of the standard weir equation. Water Science Technology 60 (12), 303543. Available at: http://www.ncbi.nlm.nih.gov/pubmed/19955626 (accessed on 13 July 2010). Ferziger J. and Peric .M, (1997). Computational Methods for Fluid Dynamics. Springer, Verlag, Berlin. Flow science Inc. (2005). CFD-101: The basics of computational fluid dynamics (CFD): Modeling simulating fluid flows with free Surfaces. . Available at: http://www.flow3d.com/cfd-101/cfd-101-free-surface-fluid-flow.html (accessed on 5 June 2010). Hager, W.H. and Schwalt, M. (1994). Broad Crested Weir. Journal of Irrigation and Drainage Engineering ASCE 120 (1), pp. 1326. Available at: 78
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
http://scitation.aip.org/getpdf/servlet/GetPDFServlet?filetype=pdf&id=JIDEDH0001200 00001000013000001&idtype=cvips&prog=normal (accessed on 15 June 2010) Hargreaves, D. M. et al, (2007). Validation of the volume of fluid method for free surface calculation: The broad crested weir. Engineering Applications of Computational Fluid Mechanics 1 (2), pp. 136146 Harlow F.H and J.E Welch, (1965). Numerical calculation of time-dependent viscous incompressible flow. Journal of Computational Physics 3 (1), 80-93. Hirt C.W. and Nichols B.D. (1998). Methods for Calculating Multidimensional, Transient Free Surface Flows Past Bodies, Journal of Computational Physics 141 (2), 112152. Hirt C.W. et al. (1970). A Lagrangian method for calculating the dynamics of an incompressible fluid with free surface. Journal of Computational Physics 5 (1) 103124. Hirt, C.W. and Nichols, B.D. (1981). Volume of fluid (VOF) method for the dynamics of free boundaries. Journal of Computational Physics 39, pp. 201225. Hirt, C.W. and Nichols, B.D. (1981). Volume of fluid method for the dynamics of free boundaries. Journal of Computational Physics 39 201225. Hou Y. (1995). Numerical solutions to free boundary problems. Acta Numerica 4 (1), 336415. Howcast Media, (2009). How to make your first movie Phase 5 Lights. Available at: http://www.howcast.com/videos/62602-How-To-Make-Your-First-Movie-Phase-5Lighting (accessed on 5 July 2010). Ibrahim R. A. (2005). Liquid sloshing dynamics: theory and applications. UK: Cambridge University Press. Available at: http://www.cambridge.org/catalogue/catalogue.asp?isbn=9780521838856&ss=exc (Accessed on 13 July 2010) Jiyuan, T. et al., (2008) Computational fluid dynamics: A practical approach. USA: Elsevier Inc. Kantor, M. (2007). Project No. 1M0579: Computational fluid dynamics A useful tool in the Research of hydraulic structures. Prague: Author. Monaghan J. J, (2005). Smoothed particle hydrodynamics. Available at: http://iopscience.iop.org/0034-4885/68/8/R01/pdf/rpp5_8_R01.pdf (accessed on 5 July 2010).
79
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
Moss, W.D. (1972). Flow Separation at the Upstream of a Square-Edged Broad-Crested Weir, Journal of Fluid Mechanics 52 (2), pp.307320. Murat, U. and Wright S.J. (2003). Influence of downstream control and limited depth on flow hydrodynamics of impinging buoyant jets. Environmental Fluid Mechanics 3: 85 107. Available at: http://www.springerlink.com/content/v170322h5l454437/fulltext.pdf (accessed on 25 August 2010). Paterson, A.R. (1997). First course in fluid dynamics. Cambridge: Cambridge University Press. Petrila, T. and Trif, D. (2005). Basics of fluid mechanics and introduction to computational fluid dynamics. United States: Springer business media, inc. Ramamurthy et al. (1988). Characteristics of Square-Edged and Round-Nosed BroadCrested Weir. Journal of Irrigation and Drainage Engineering. 114 (1). PP. 61-73. Rao, S.S. and Shukla, M.K. (1971). Characteristics of Flow over Weirs of Finite Crest Width. Journal of Hydraulic Division ASCE. 97 (11), PP.18071816. Available at: http://alrafidain.engineering-coll-mosul.com/files/no2/E/EF-2-A-2009.pdf (accessed on 2 August 2010) Sarker M.A. and Rhodes D.G. (2004). Calculation of Free-Surface Profile over a Rectangular Broad-Crested Weir. Flow Measurement and Instrumentation 15 (4), pp.215219 Thompson B.T. (2006). Combined sewer overflows, Stockton on Tees-UK: ThompsonRPM Tracy, H.J. (1957). Discharge Characteristics of Broad-Crested Weirs. U.S Geological Survey Circular 397 pp. 115. Versteeg, H.K. and Malalasekera, W. (2007). An introduction to computational fluid dynamics: The finite volume approach. London: Pearson Education Limited. Yakhot V. and Orsag S. (1986). Renomalisation group analysis of turbulence. Journal of Science and Computing 1 (1), 751. Available at: http://www.springerlink.com/content/t265g570w4737g23/fulltext.pdf (accessed on 25 August 2010).
80
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
APPENDIX
Table A.1: Main characteristics of simulations
Channel Width (b) (mm) 0.5 0.5 0.5 0.5 0.5 Weir Height (w) (mm) 0.4 0.4 0.4 0.4 0.4
SIMs No. A B C D E
Ho (mm)
Ho (mm)
Note: * Values are read off from the mass flow rate and converted to Volumetric flow rates.
The main flow characteristic where also recorded and compared with those computed in the Hager and Schwalts experiment. These flow parameters are computed for selected simulations as listed in Table A.1. The Froude number Fo is based on the approach velocity Vo given as
1/2
. And is computed as
..................................................................... Equation 9 The Froudes Number is also computed from, ..................................................................... Equation 10 With = 1.15x10-6m2s - 1 as kinematic viscosity for water of 15o temperature.
81
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
Figure A.1: Contour plot of Volume Fractions (air) at time step size = 0.0002 (RSM turbulence Model)
Figure A.2: Monitor plot showing convergence history of mass flow rate at upstream for a RNG K-epsilon run
82
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
83
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
Figure A.4: Phase contour plot for a RNG turbulence run, explicit and Geo-reconstruct and all second order, upstream TH:0.48, FSH:0.38, Downstream FSH:0.35, Reference value at 0.45,
(a)
(b)
(c)
(d)
84
A CFD validation Study for the Prediction of Free Surface Flows Adeolu Adegbulugbe
(e)
(f)
Figure A.5: Pathline plots of particle( water and air) at upstream and downstream surfaces, showing the surfaces of interaction (a) SIM 1 (b) SIM3 (c) SIM 8 (d) SIM 9 (e) SIM 10 (f) SIM 11
85