Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
h1. Computational Fluid Dynamics


h2. Flocculation Tank Simulation


h3. Overview

The FluentFLUENT analysis software used in the Fall 2008 and Spring 2009 semesters was changed over the summer of 2009. FluentFLUENT was integrated into the ANSYS software productpackage. This changed the procedure for constructing CFD simulations. The Gambit interface for building Fluent meshes was removed and mesh construction is now handled throughin Workbench. The sketching of geometries is handled in a Solidworks style environment and the sketches are transferred into a workbench meshing programtool. Analysis of fluid flow is a still handled by the Fluentclassic FLUENT solver.

The shift from Gambit to ANSYS for geometry sketching rendered the geometries and automated mesh generating journal files in Gambit, from Fall 2008 and Spring 2009, incompatible with ANSYS, unless the files were converted with MatlabMATLAB. New 2D sketches of Agua ClaraAguaClara baffle systems were created in ANSYS. Creation of lines from sketches and the line projection command are essential for creating systems of baffles in the new version of Fluent. In turbulent flow in Fluent the mesh must be refined enough for the solution of the simulation to stay out of the mixed boundary layer regime of turbulent Yplusy+  = 5 to 30. The turbulent Yplusy+ in the solution can be below 5 or above 30 if the cells at the walls of the mesh are made small enough to solve the turbulent boundary layer gradients near the wall. This is achieved with the biasing tool in the mesh creation interface. The mesh can be biased to have smaller cells near the wall than at the center of the pipe for example.

{center}
{center}
!mesh biasing.png|width=1000!

*Biasing of mesh toward the wall*

The investigation began with setting up simulations from Fall 2008 in the new FluentFLUENT. We ran these cases to verify the new version of FluentFLUENT. The most extensive investigation was in periodperiodic boundary conditions. This tool in the FluentFLUENT solver iterates the simulation until the values at the inlet and the outlet are the same. This tool is capable of performing this analysis strictly for symmetric geometries.  A two turn baffle model was used for the periodic analysis. Periodic solution allows the user to initialize the flow at the inlet with the mass flow rate (kg/s) or pressure drop/length traveled (Pa/m). Cases of 5, 10, and 15 baffles were modeled and simulated to compare with the converged periodic solution. The user defined functions (UDFs) were used to explore how to analysis the performance parameters in the said cases.

h3. Goals

The goals of the CFD work are fairly straightforward in scope. To properly form flocs, there needs to be an appropriate level of turbulent energy dissipation to enhance turbulent mixing. The levels throughout the flow need to be at a certain value to ensure that flocs are large enough that they will settle out in the sedimentation tank, while preventing any pre-sedimentation settling at the end of the flocculator or in the channels between the two sections. The rates also need to be such that turbulent eddies are strong enough to pull settled flocs off the bottom of the flocculator if they do end up settling. In order to ensure all these requirements, a full description of the flow through the length of the flocculator would be ideal, but the simulation time and processing power puts a limit on this ability. Thus, we look to model a certain number of baffles that will provide a reasonable description of the flow through the entire system. Work in previous years has been limited to simulations of five or less baffle turns meaning that analysis of the flow after significant development has not been examined. This was a primary goal for the fall of 2009. It was originally thought that a high level of turbulent energy dissipation at the beginning of the flocculator would lead to initial floc growth near the entrance with a tapering of levels to a much lower value near the end to prevent floc breakup. However, it was speculated that this particular distribution was leading to early settling of flocs before they ever entered the sedimentation tank. A more even dissipation of energy would ideally help break up flocs that become too large, but not be so high as to break up all reasonably sized particles. This scenario motivates the goal of modeling more of the flocculator and leads to two possible directions. One method involved increasing the number of baffles to greater than five and observe the outcome to see if after a certain number, the flow variables become steady between each turn. The other involved using a periodic condition where the fully developed case far from the entrance would be modeled using only one turn. The advantage of this method is less time to obtain a solution because the mesh has far fewer cells than a substantial number of baffles.

h3. FLUENT Updates

Recently ANSYS acquired FLUENT and integrated it with the more user-friendly Workbench software. While this makes new projects much easier to set up when compared to the previous GAMBITGambit interface, it required a good deal of work to adapt previous work to the new system. Workbench is not a new tool itself, and ANSYS has used it for a number of years for its structural finite element solver. It allows the user to step through the process of geometry creation and meshing, setting up the physics, solving the problem, and postprocessing the results. Work began immediately on reproducing results from past years with the goal of ensuring the new system did not fundamentally change any of the results that had previously been obtained. It was clear early on that, while better than building geometry and meshes in GAMBIT, the new system left something to be desired. Certain common sense tasks that someone would likely want to perform in any CAD style program required nonintuitive methods. For example, when creating a baffle turn in the flocculator, our 2D model was best served by having an infinitely thin wall where the fluid would flow in opposite directions on different sides. The software help documentation was useless for providing an answer, and only after consulting technical support did we find that lines had to be drawn, created as separate bodies, and then projected onto the surface through which fluid would flow. Another such issue occurred while creating the near-wall mesh. In order to properly resolve the viscous sublayer (i.e. y\+ values less than 5), cell size growth had to occur from an initial cell size (0.0003m) to the size used for meshing the flow's core that is "far" from the wall. This is implemented using a bias factor that governs the change in size of each cell when moving away from the wall. Unfortunately, there is no simple user input where first cell size, number of divisions, and total length are specified and the bias factor is simply computed from this information (GAMBITGambit actually had this ability which indicates ANSYS took this a step backwards in my opinion). Also the documentation doesn't provide this algorithm leaving it to the user to either figure it out independently or simply guess until the correct size is obtained.

h3. More Baffles

The motivation for more baffles came from the inability of the periodic solution to converge. To advance the project, it was essential to find the flow solution after enough baffles to achieve time independent conditions. While the simulations would take much longer, the decision was made to proceed with more baffles and look at the relative change in flow variables before and after successive turns. The solution took ~3000 iterations (6+ hours) to converge, but the process was worth the time since the results seem to indicate that after only about 5 to 10 baffles, the solution becomes steady. 

{center}
{center}
!15Baffle15BaffleVel.png|width=1000!

h6. *Contours of turbulentVelocity (m/s) over 15 Baffles*

Looking at turublent energy dissipation also revealed the same sort of constant values after 5 or so baffles.

{center}
{center}
!15Baffle.png|width=1000!

*Contours of Turbulent Energy Dissipation (m^2/s^3) over 15 bafflesBaffles*