Professional Documents
Culture Documents
a Cylinder
Problem Specification
Consider the steady state case of a fluid flowing past a cylinder, as illustrated above.
Obtain the velocity and pressure distributions when the Reynolds number is chosen to
be 20. In order to simplify the computation, the diameter of the cylinder is set to 1 m, the
x component of the velocity is set to 1 m/s and the density of the fluid is set to 1 kg/m^3.
Thus, the dynamic viscosity must be set to 0.05 kg/m*s in order to obtain the desired
Reynolds number.
Boundary Conditions
First, we will specify a velocity inlet boundary condition. We will set the left half of the
outer boundary as a velocity inlet with a velocity of 1 m/s in the x direction. Next, we will
use a pressure outlet boundary condition for the right half of the outer boundary with a
gauge pressure of 0 Pa. Lastly, we will apply a no slip boundary condition to the cylinder
wall. The aforementioned boundary conditions are illustrated below.
Geometry
Strategy for Geometry Creation
In order to create the desired geometry we will first create a surface body for the
cylinder. Next, we will create a surface body for the outer boundary as a "frozen body",
so that it doesn't merge with the first surface body. Then, we will use a boolean
operation to subtract the small surface body from the large surface body. At this point,
we will have the surface body of the outer boundary with a hole in the middle where the
cylinder is. Lastly, we will project a vertical line on to the geometry, so that radial edge
sizing can be implemented in the meshing process.
Fluid Flow(FLUENT) Project Selection
Drag Fluid Flow(FLUENT) into the Project Schematic window.
Analysis Type
(Right Click) Geometry > Properties
Set Analysis Type to 2D
Launch Design Modeler
(Double Click) Geometry
Create Inner Circle and Dimension
Create a circle, centered around the origin in the xy plane. Set the diameter of the circle
to 1m.
Inner Circle Surface Body Creation
Concept > Surfaces From Sketches.
Set the Base Object to Sketch 1 (located underneath XYPlane in the Tree). You can
do this by clicking within the tree or you can click on the circle to select Sketch 1. Then
click Apply next to Base Object.
Click Generate
Create New Sketch in the XY Plane
In this step we will create a new sketch in the XY Plane. This step is required for the
boolean operation that we will carry out later in the geometry process. It allows us to
create two distinguishable geometries, in the xy plane.
Click on XYPlane in the Tree Outline and it should highlight blue. Then click on the
New Sketch button,
.
\
Then, click Generate
Lastly, click Generate. At this point if you zoom into the center of the circle you should
see the 1m diameter hole, as shown below.
outer circle. This, is carried out by using the Trim feature located in the Modify portion
of Sketching.
Line Body Creation
Concept > Lines From Sketches.
Set the Base Object to Sketch 3. (located underneath XYPlane in the Tree). Click
Generate
Projection
Tools > Projection.
Apply the two lines that you created to edge and apply the surface body to target. You
must do these steps by using the line selection filter and the surface selection filter. For
the two lines hold down control to select them both. Click Generate.
Save Project and Close Design Modeler
Mesh
In this section the geometry will be meshed with 18,432 elements. The geometry will be
given 192 circumferential divisions and 96 radial divisions. Mapped face meshing will be
used and biasing will be used in order to significantly increase the number of elements
located close to the cylinder.
Launch Mesher
(Double Click) Mesh
Mapped Face Meshing
(Right Click) Mesh > Insert > Mapped Face Meshing
Set Geometry to both portions of the surface body. You will have to hold down control
in the selection process in order to highlight both halves. Click Update.
Circumferential Edge Sizing
(Right Click) Mesh > Insert > Sizing
Set Geometry to both edges of the surface body. You will have to use the edge
selection filter and you will have to hold down control in the selection process in order to
highlight both halves. Set Type to Number of Divisions, set Number of
Divisions to 96 and set Behavior to Hard. Click Update to generate the new mesh.
Radial Edge Sizing 1 (Top Half)
(Right Click) Mesh > Insert > Sizing
Set Geometry to the top half of the bisecting line. Set Type to Number of
Divisions, set Number of Divisions to 96 and set Behavior to Hard. Then, set
Bias Type to the first option and set Bias Factor to 460. These selections are shown
in the image below.
Then, click Update to generate the new mesh. You should obtain the mesh, that is
shown below.
Save Project
Physics Setup
Your workbench project should look like this.
We are done with all the meshing steps but for some reason, a tick mark doesn't appear
next to Mesh in the project page. To get the tick mark next to mesh, right-click on it and
select Update as shown below.
Launch Fluent
(Double Click) Setup in the Workbench Project Page.
When the FLUENT Launcher appears change options to "Double Precision", and
then click OK as shown below.The Double Precision option is used to select the
double-precision solver. In the double-precision solver, each floating point number is
represented using 64 bits in contrast to the single-precision solver which uses 32 bits.
The extra bits increase not only the precision, but also the range of magnitudes that can
Twiddle your thumbs a bit while the FLUENT interface starts up. This is where we'll
specify the governing equations and boundary conditions for our boundary-value
problem. On the left-hand side of the FLUENT interface, we see various items listed
under Problem Setup. We will work from top to bottom of the Problem Setup items
to setup the physics of our boundary-value problem. On the right hand side, we have
the Graphics pane and, below that, the Command pane.
Check Mesh
(Click) Mesh > Info > Size
You should now have an output in the command pane stating that there are 18,432
cells.
Boundary Conditions
FarField1
Reference Values
Solution Setup > Reference Values.
Set the Density to 1 kg/m^3. The other default values will work for the purposes of this
simulation.
Save Project
Numerical Results
Open CFD-Post
We'll create a separate CFD-Post module, as this is the easiest way to load the results
for this project.
On the left of the main project window, expand Component Systems and double-click
Results.
Double click on the Results module that was just created to open CFD-Post.
Results
Now, we need to load the results of our FLUENT simulation.
After opening CFD-Post, click the Load Results button in the upper left corner of the
screen.
Next, browse to the location where you chose to save the FLUENT data files. Select the
.cas file that is in this folder, which should be named "FFF-1-0001.cas", or similar. In the
bottom right of this window, select Load complete history as: and Single Case.
Finally, click Open.
Select the first time step, and click Apply. Leave the Time Step Selector window open,
but continue to the next step.
h4. Create Vorticity Contour
Now, let's insert a contour of vorticity, in order to animate it.
While leaving the Time Step Selector window open, click Insert > Contour. Name it
"Vorticity Contour".
Under Details of Vorticity Contour, select symmetry 1 from Locations.
Next, ensure that Variable is set to Vorticity.
Change Range to User Specified. Set the Min to 0.01 s^-1 and Max to 2 s^-1.
Enter 25 for Number of Contours. You should now see the following:
Now let's zoom in to the are of interest. Select the zoom box tool from the upper toolbar.
Using the zoom box tool, click and drag a box that roughly encompasses the area
shown below to zoom in on it.
Now we're ready to animate the vorticity contour over this zoomed-in area.
h4. Create Animation
Return to the Time Step Selector Window, which should still be open. Click the Animate
Timesteps button.
Select Keyframe Animation, and click the insert new keyframe button,
. Change
the number of frames to equal the number of data files we saved to animate, in this
case 400. Your Animation window should look like this:
Keeping the Animation window open, click back to the Time Step Selector window.
Select time step #400, and click Apply. The Vorticity Contour on the right half of your
screen should now have changed. Click back to the Animation window, and insert
another new keyframe. This time, leave the number of frames set to 10.
We're now ready to set up the saving options for the animation. Click the arrow in the
bottom right of the window to expand the options.
Check the box labeled Save Movie, and use the folder icon to set the desired file
location and type.
Next, maximize your CFD-Post window, and click the play button in the Animation
window to create the animation!
Exercises
1. Base Case Unsteady Cylinder
a. How many steps were there per lift coefficient oscillation once the
oscillation reaches an apparently steady state? What do these oscillations
represent physically?
b. Why did you include the patched velocity found in the tutorial? What
happens when you dont include it in your calculated solution? Does
anything change if you increase the patch velocity?
2. Varying Timestep - Unsteady Cylinder
a. Plot the Strouhal number: the dimensionless frequency oscillation (f*d/U)
vs. the square of time step, and compare to the results in Fig. 5 of "Implicit
Multigrid Computation of Unsteady Flows with Applications to
Aeroelasticity" (Caughey 2001).
3. Altering Grid Unsteady Cylinder
a. Returning to a timestep of 0.2s, compare a mesh of 128 x 64 cells and a
mesh of your choosing to the original mesh. Maintain the same cell height
by altering the bias factor yourself.
b. Once the solution is computed, calculate the lift oscillation frequency, and
use Richardson extrapolation to compute the limiting frequency
corresponding to zero mesh spacing (similarly to the procedure done in
the paper by Caughey in part 2).
4. Altering Reynolds Number Unsteady Cylinder
a. Compare the results for Reynolds numbers of 60, 120, and 80 at a
timestep of 0.2s and mesh 192x96. Create a graph of the Strouhal number
(dimensionless frequency oscillation) as a function of these Reynolds
numbers.