moving wall fluent tutorial

107
Med Mahmoud CFD: Final Project 1 Introduction This tutorial will go step-by-step through the process of simulating flow in a mixing tank with rotating eccentric cylinders. This problem is relevant because it is a simplified model of an economical way to mix viscous fluids, which don’t readily exhibit turbulent mixing (the kind of mixing that makes it so easy to stir milk into coffee) [1]. Figure 1: Diagram of the fluid region. The outer boundary is the inner boundary of the large cylinder, and rotates with speed Ω 1 . The inner boundary is the outer surface of the small cylinder, and rotates with speed Ω 2 . In the original problem formulation, the angular speed of the small inner cylinder actually oscillates sinusoidally, providing better mixing. Since the goal of this tutorial is primarily to exhibit a use case for ANSYS rather than to solve the actual problem, we’ll skip that complication and assign constant angular speed to the small inner cylinder. Problem Statement The problem involves a fluid domain bounded by two nested rotating cylinders whose axes are not aligned. The inner cylinder rotates faster than the outer cylinder. Since the original problem formulation is an analytical one, we’ll have to select the parameters for the problem in order to actually perform the simulation. Dimensions Dimensions were chosen somewhat arbitrarily: Outside Cylinder Diameter: 3 m Inside Cylinder Diameter: 1.5 m Center-to-center Distance: -0.5 m Fluid Parameters We selected glycerin as the fluid to model with because it’s quite viscous and its properties are available in the FLUENT Fluid Database.

Upload: zahoor-hussain-rana

Post on 13-Apr-2016

94 views

Category:

Documents


3 download

DESCRIPTION

asd

TRANSCRIPT

Page 1: Moving Wall fluent tutorial

Med Mahmoud CFD: Final Project 1

IntroductionThis tutorial will go step-by-step through the process of simulating flow in a mixing tank with rotatingeccentric cylinders. This problem is relevant because it is a simplified model of an economical way to mixviscous fluids, which don’t readily exhibit turbulent mixing (the kind of mixing that makes it so easy to stirmilk into coffee) [1].

Figure 1: Diagram of the fluid region. The outer boundary is the inner boundary of the large cylinder, androtates with speed Ω1. The inner boundary is the outer surface of the small cylinder, and rotates with speedΩ2.

In the original problem formulation, the angular speed of the small inner cylinder actually oscillatessinusoidally, providing better mixing. Since the goal of this tutorial is primarily to exhibit a use case forANSYS rather than to solve the actual problem, we’ll skip that complication and assign constant angularspeed to the small inner cylinder.

Problem StatementThe problem involves a fluid domain bounded by two nested rotating cylinders whose axes are not aligned.The inner cylinder rotates faster than the outer cylinder.

Since the original problem formulation is an analytical one, we’ll have to select the parameters for theproblem in order to actually perform the simulation.

DimensionsDimensions were chosen somewhat arbitrarily:

• Outside Cylinder Diameter: 3 m

• Inside Cylinder Diameter: 1.5 m

• Center-to-center Distance: -0.5 m

Fluid ParametersWe selected glycerin as the fluid to model with because it’s quite viscous and its properties are available inthe FLUENT Fluid Database.

Page 2: Moving Wall fluent tutorial

Med Mahmoud CFD: Final Project 2

Operating ConditionsWe set up the problem so that the inner cylinder rotates at 10 rad/s, and the outer rotates more slowly at2 rad/s. In our model, they both rotate in the same direction.

Tutorial StagesTo set up and solve a problem with ANSYS/FLUENT, there is a standard workflow that the software guidesyou through.

• Set up the Geometry

• Mesh the Geometry

• Setup the solver parameters (boundary conditions, fluid properties, etc)

• Solve the actual problem

• Visualize the results

This tutorial will be divided into those stages as well.

Page 3: Moving Wall fluent tutorial

Med Mahmoud CFD: Final Project 3

GeometryThe Geometry setup is done in ANSYS DesignModeler, where the fluid domain is sketched. (This can beconfusing at first... usually the solid parts are being designed, but its the negative space between these partsthat FLUENT will fill with fluid and analyze.) For a more complicated Geometry, it’s possible to draw theGeometry in SolidWorks or a less wonky modeling package than DesignModeler and import the Geometry.To do this, the Geometry should be saved in .STEP format.

In this project, however, the Geometry is quite simple, so we just draw it in DesignModeler as a 2Dobject.

Drawing the Geometry

The basic procedure for our eccentric cylinders is this:

• Sketch the two circles aligned along y = 0.

• Dimension (constrain) their radii, and dimension the distance along the y-axis between their centers.

• Convert the sketch to an actual surface bounded by the two circles.

Page 4: Moving Wall fluent tutorial
Page 5: Moving Wall fluent tutorial
Page 6: Moving Wall fluent tutorial
Page 7: Moving Wall fluent tutorial
Page 8: Moving Wall fluent tutorial
Page 9: Moving Wall fluent tutorial
Page 10: Moving Wall fluent tutorial
Page 11: Moving Wall fluent tutorial
Page 12: Moving Wall fluent tutorial
Page 13: Moving Wall fluent tutorial
Page 14: Moving Wall fluent tutorial
Page 15: Moving Wall fluent tutorial
Page 16: Moving Wall fluent tutorial
Page 17: Moving Wall fluent tutorial
Page 18: Moving Wall fluent tutorial
Page 19: Moving Wall fluent tutorial
Page 20: Moving Wall fluent tutorial
Page 21: Moving Wall fluent tutorial
Page 22: Moving Wall fluent tutorial
Page 23: Moving Wall fluent tutorial
Page 24: Moving Wall fluent tutorial
Page 25: Moving Wall fluent tutorial
Page 26: Moving Wall fluent tutorial
Page 27: Moving Wall fluent tutorial
Page 28: Moving Wall fluent tutorial
Page 29: Moving Wall fluent tutorial
Page 30: Moving Wall fluent tutorial
Page 31: Moving Wall fluent tutorial
Page 32: Moving Wall fluent tutorial
Page 33: Moving Wall fluent tutorial
Page 34: Moving Wall fluent tutorial
Page 35: Moving Wall fluent tutorial

Med Mahmoud CFD: Final Project 35

MeshingMeshing is done with ANSYS Meshing. This step very much makes-or-breaks the simulation, because (asI learned the hard way) tiny differences between two Meshes can make the simulation fail to converge to areasonable solution, let alone maintain comparable accuracy.

In ANSYS Meshing, the user specifies the Meshing algorithm and any embellishments, sets the parametersfor these choices, and Generates the Mesh. For our simple Mesh, we will essentially use the default Meshingalgorithm, but embellish it with Inflation, which increases the Mesh resolution near the boundaries of thedomain so that boundary effects can be modeled with greater fidelity.

Meshing Procedure

The basic procedure for our eccentric cylinders is this:

• Fix one parameter in the default Meshing algorithm (use a Fine Relevance Center)

• Insert an Inflation algorithm and tune its parameters

• Name some regions of the Geometry for use in FLUENT later (this could have also been done inDesignModeler)

Page 36: Moving Wall fluent tutorial
Page 37: Moving Wall fluent tutorial
Page 38: Moving Wall fluent tutorial
Page 39: Moving Wall fluent tutorial
Page 40: Moving Wall fluent tutorial
Page 41: Moving Wall fluent tutorial
Page 42: Moving Wall fluent tutorial
Page 43: Moving Wall fluent tutorial
Page 44: Moving Wall fluent tutorial
Page 45: Moving Wall fluent tutorial
Page 46: Moving Wall fluent tutorial
Page 47: Moving Wall fluent tutorial
Page 48: Moving Wall fluent tutorial
Page 49: Moving Wall fluent tutorial
Page 50: Moving Wall fluent tutorial
Page 51: Moving Wall fluent tutorial
Page 52: Moving Wall fluent tutorial
Page 53: Moving Wall fluent tutorial
Page 54: Moving Wall fluent tutorial
Page 55: Moving Wall fluent tutorial
Page 56: Moving Wall fluent tutorial
Page 57: Moving Wall fluent tutorial
Page 58: Moving Wall fluent tutorial
Page 59: Moving Wall fluent tutorial
Page 60: Moving Wall fluent tutorial

Med Mahmoud CFD: Final Project 60

Setup and SolveThis is where we finally open FLUENT and set up the problem.

Like ANSYS as a whole, FLUENT also has a workflow that it tries to guide the user along. Each stepappears in order in the Problem Setup pane on the left side of the FLUENT window. This process is dividedinto two sections of its own (omitting steps that aren’t relevant to the cylinder problem):

Problem Setup

• General, where the type of solver is selected and units are set

• Models, where the specific equations to be used are selected (we just use the defaults in this paper)

• Materials, where materials and their properties are made available to the later steps

• Cell Zone Conditions, where coordinate systems, materials, and other properties are assigned to“Zones” of the Mesh

• Boundary Conditions, where, obviously, the Boundary Conditions are specified

Solution

• Solution Methods, where the type of integrator is selected (the overall method was specified in theGeneral step, but precisely what variation on the method is selected here)

• Monitors, where required information about the computation as it occurs is requested

• Solution Initialization, where the Mesh is initialized with a guess at the solution (a requirement forevery iterative method of solving differential equations)

• Run Calculation, where computational parameters like Time Step Size are selected, and the compu-tation is actually started

Page 61: Moving Wall fluent tutorial
Page 62: Moving Wall fluent tutorial
Page 63: Moving Wall fluent tutorial
Page 64: Moving Wall fluent tutorial
Page 65: Moving Wall fluent tutorial
Page 66: Moving Wall fluent tutorial
Page 67: Moving Wall fluent tutorial
Page 68: Moving Wall fluent tutorial
Page 69: Moving Wall fluent tutorial
Page 70: Moving Wall fluent tutorial
Page 71: Moving Wall fluent tutorial
Page 72: Moving Wall fluent tutorial
Page 73: Moving Wall fluent tutorial
Page 74: Moving Wall fluent tutorial
Page 75: Moving Wall fluent tutorial
Page 76: Moving Wall fluent tutorial
Page 77: Moving Wall fluent tutorial
Page 78: Moving Wall fluent tutorial
Page 79: Moving Wall fluent tutorial
Page 80: Moving Wall fluent tutorial
Page 81: Moving Wall fluent tutorial
Page 82: Moving Wall fluent tutorial
Page 83: Moving Wall fluent tutorial
Page 84: Moving Wall fluent tutorial
Page 85: Moving Wall fluent tutorial
Page 86: Moving Wall fluent tutorial
Page 87: Moving Wall fluent tutorial
Page 88: Moving Wall fluent tutorial
Page 89: Moving Wall fluent tutorial
Page 90: Moving Wall fluent tutorial

Med Mahmoud CFD: Final Project 90

VisualizingThe final step is to visualize the results of the computation. FLUENT provides tools for doing this in theResults section of the Problem Setup pane.

First, the quality of the calculation should be checked by verifying physical constraints (like balance offluxes through surfaces). We use Mass Flow Rate across a fictitious Boundary separating the upper andlower halves of the Geometry.

To find the Mass Flow Rate across an imaginary Boundary, we first need to specify that Boundary inFLUENT. This is done (counterintuitively) in Graphics and Animations. The actual flux validation is doneunder Reports.

Secondly, we should actually look at the flow pathlines to see if mixing is occurring. This is done byplotting the pathlines in the Graphics and Animations section.

Validation

The validation procedure is as follows:

• Set up a Boundary line in Graphics and Animations

• Report the Surface Integral of Mass Flow Rate across the Boundary; it should be near zero

Pathlines

The procedure for plotting the Pathlines is straightforward:

• Set up a Pathlines graphic under Graphics and Animations

• Display it!

Page 91: Moving Wall fluent tutorial
Page 92: Moving Wall fluent tutorial
Page 93: Moving Wall fluent tutorial
Page 94: Moving Wall fluent tutorial
Page 95: Moving Wall fluent tutorial
Page 96: Moving Wall fluent tutorial
Page 97: Moving Wall fluent tutorial
Page 98: Moving Wall fluent tutorial
Page 99: Moving Wall fluent tutorial
Page 100: Moving Wall fluent tutorial
Page 101: Moving Wall fluent tutorial
Page 102: Moving Wall fluent tutorial
Page 103: Moving Wall fluent tutorial
Page 104: Moving Wall fluent tutorial
Page 105: Moving Wall fluent tutorial
Page 106: Moving Wall fluent tutorial

Med Mahmoud CFD: Final Project 106

Closing Remarks

Crappy ResultOur validation step revealed the crappiness of our result. I actually obtained better mass balance earlier,but upon repeating the procedure to document the steps, I was somehow unable to reproduce the Mesh!

Appended to this report is a table listing different solver parameters in attempts to get better massbalance. (This table isn’t a complete catalogue of my attempts-- only those attempts that I remembered towrite down.)

Notice the sad quality after I remeshed the Geometry.

MixingTo say a few words about the actual application at hand-- our crappy simulation fidelity notwithstanding--the mixing quality was exremely poor compared to the mixing quality with an oscillating inner cylinder.The constant speed inner cylinder is a gross simplification of the model, since the oscillating appears to becrucial. This could perhaps be implemented with a User-Defined Function for the oscillation.

References1. B. Y. Ballal & R.S. Rivlin. Flow of a Newtonian Fluid Between Eccentric Rotating

Cylinders: Inertial Effects. Archive for Rational Mechanics and Analysis,Volume 62, Issue 3. (1976).

Page 107: Moving Wall fluent tutorial

First MeshMethod Gradient Pressure Momentum Time Iters/Step Tstep Steps Mass FluxSIMPLEC Cell Presto 2 2 300 0.1 20 0.0047SIMPLE Cell Presto 2 2 300 0.1 20 0.068SIMPLEC Cell Presto 2 2 300 0.2 20 0.27SIMPLEC Cell Presto 2 2 400 0.2 20 0.278SIMPLEC Cell Presto 2 2 500 0.2 20 0.278PISO Cell Presto 2 2 300 0.2 20 0.29Coupled Cell Presto 2 2 300 0.2 20 0.297SIMPLEC Cell Presto 2 2 300 0.1 40 0.31SIMPLEC Cell Presto 2 1 300 0.2 20 0.37SIMPLEC Cell Presto 2 1 400 0.2 20 0.371SIMPLE Cell Presto 2 1 300 0.2 20 0.408SIMPLE Cell Presto 2 1 400 0.2 20 0.41SIMPLE Cell Presto 1 1 300 0.2 20 0.46PISO Cell Presto 1 1 300 0.2 20 0.46SIMPLEC Node Presto 2 1 300 0.2 20 0.84PISO LSQ Presto 2 2 300 0.2 20 1.44SIMPLE LSQ Presto 2 1 300 0.2 20 1.6SIMPLEC LSQ Presto 2 1 300 0.2 20 1.66

Failed Attempt at Reproducing the First MeshMethod Gradient Pressure Momentum Time Iters/Step Tstep Steps Continuity Mass FluxSIMPLEC Cell Presto 2 2 300 0.2 20 0.0001 8.32PISO Cell Presto 2 2 200 0.2 20 0.0001 8.44SIMPLEC Cell 2 2 2 300 0.2 20 0.0001 9.43SIMPLEC LSQ 2 2 2 300 0.2 20 0.0001 4.43PISO LSQ 2 2 2 300 0.2 20 0.0001 4.43Coupled LSQ 2 2 2 300 0.2 20 0.0001 4.42Coupled LSQ 2 2 2 60 0.2 20 0.00001 4.44