Professional Documents
Culture Documents
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 dont 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, well 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, well 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 its quite viscous and its properties are available in
the FLUENT Fluid Database.
Med Mahmoud
Operating Conditions
We set up the problem so that the inner cylinder rotates at 10 rad/s, and the outer rotates more slowly at
2 rad/s. In our model, they both rotate in the same direction.
Tutorial Stages
To set up and solve a problem with ANSYS/FLUENT, there is a standard workflow that the software guides
you 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.
Med Mahmoud
Geometry
The Geometry setup is done in ANSYS DesignModeler, where the fluid domain is sketched. (This can be
confusing at first... usually the solid parts are being designed, but its the negative space between these parts
that FLUENT will fill with fluid and analyze.) For a more complicated Geometry, its possible to draw the
Geometry 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 2D
object.
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.
Med Mahmoud
35
Meshing
Meshing is done with ANSYS Meshing. This step very much makes-or-breaks the simulation, because (as
I learned the hard way) tiny differences between two Meshes can make the simulation fail to converge to a
reasonable solution, let alone maintain comparable accuracy.
In ANSYS Meshing, the user specifies the Meshing algorithm and any embellishments, sets the parameters
for these choices, and Generates the Mesh. For our simple Mesh, we will essentially use the default Meshing
algorithm, but embellish it with Inflation, which increases the Mesh resolution near the boundaries of the
domain 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 in
DesignModeler)
Med Mahmoud
60
Med Mahmoud
90
Visualizing
The final step is to visualize the results of the computation. FLUENT provides tools for doing this in the
Results section of the Problem Setup pane.
First, the quality of the calculation should be checked by verifying physical constraints (like balance of
fluxes through surfaces). We use Mass Flow Rate across a fictitious Boundary separating the upper and
lower halves of the Geometry.
To find the Mass Flow Rate across an imaginary Boundary, we first need to specify that Boundary in
FLUENT. This is done (counterintuitively) in Graphics and Animations. The actual flux validation is done
under Reports.
Secondly, we should actually look at the flow pathlines to see if mixing is occurring. This is done by
plotting 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!
Med Mahmoud
106
Closing Remarks
Crappy Result
Our 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 mass
balance. (This table isnt a complete catalogue of my attempts-- only those attempts that I remembered to
write down.)
Notice the sad quality after I remeshed the Geometry.
Mixing
To 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 be
crucial. This could perhaps be implemented with a User-Defined Function for the oscillation.
References
1.
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).
First Mesh
Method Gradient
SIMPLEC Cell
SIMPLE
Cell
SIMPLEC Cell
SIMPLEC Cell
SIMPLEC Cell
PISO
Cell
Coupled Cell
SIMPLEC Cell
SIMPLEC Cell
SIMPLEC Cell
SIMPLE
Cell
SIMPLE
Cell
SIMPLE
Cell
PISO
Cell
SIMPLEC Node
PISO
LSQ
SIMPLE
LSQ
SIMPLEC LSQ