steady flow past a cylinder

12
Fluid Dynamics CAx Tutorial: Flow Around a Cylinder Guided Tutorial #1 Deryl O. Snyder C. Greg Jensen Brigham Young University Provo, UT 84602 Special thanks to: PACE, Fluent, UGS Solutions, Altair Engineering; and to the following students who assisted in the creation of the Fluid Dynamics tutorials: Leslie Tanner, Cole Yarrington, Curtis Rands, Curtis Memory, and Stephen McQuay.

Upload: kiran76100

Post on 27-Apr-2015

1.010 views

Category:

Documents


7 download

TRANSCRIPT

Page 1: Steady Flow Past a Cylinder

Fluid Dynamics

CAx Tutorial: Flow Around a Cylinder

Guided Tutorial #1

Deryl O. SnyderC. Greg Jensen

Brigham Young UniversityProvo, UT 84602

Special thanks to:

PACE, Fluent, UGS Solutions, Altair Engineering;

and to the following students who assisted in the creation of the Fluid Dynamics tutorials:

Leslie Tanner, Cole Yarrington, Curtis Rands, Curtis Memory, and Stephen McQuay.

Page 2: Steady Flow Past a Cylinder
Page 3: Steady Flow Past a Cylinder

3

Flow Around a Cylinder

2D FlowIn this tutorial, Gambit® is used to create and mesh the geometry. Once preprocessingis complete, Fluent will be used to solve the flow problem. Fluent will then be used toanalyze the solution.

This basic 2D tutorial should prepare you to model, mesh, define and analyze morecomplex fluid flow problems.

The methods expressed in these tutorials represent just one approach to modeling, defining andsolving 2D problems. Our goal is the education of students in the use of CAx tools for model-ing, constraining and solving fluids application problems. Other techniques and methods will beused and introduced in subsequent tutorials.

Water flows around a cylinder of radius 0.1 mat a Reynolds number of 20. Solve for pres-sure and viscous drag coefficients and displaythe vortcies in the wake of the cylinder.

Page 4: Steady Flow Past a Cylinder

4

Flow Around a Cylinder

Creating GeometryBegin the problem by creating geometry inGambit.

The computational domain will be a rectan-gle encompasing the 2-D cylinder in thecenter. At a Reynolds number of 20, vortexshedding will be present. It will be neces-sary to create a mesh with higher resolu-tion in the wake of the cylinder to betterresolve these vorticies.

First create the points that will be used tocreate the lines and then faces of thedomain.

Operation > Geometry > Vertex > CreateVertex

Create an arc centered at point G. Use thethird option under Method to specify acenter point and a sweep angle. Create thearc with the following dimensions:

Radius=0.15

Start Angle=90

End Angle=270

Name X Position Y PositionA -2 -1.5B 2 -1.5C 2 1.5D -2 1.5E 2 -0.15F 2 0.15G 0 0

Page 5: Steady Flow Past a Cylinder

5

Flow Around a Cylinder

Creating GeometryNow draw the straight lines that willcomplete the domain. Connect thepoints to create the following linesegments: AB, BE, EF, FC, CD, DA,and the horizontal lines connectingthe new verticies created at the endsof the arc and the points F and E.

Create two faces: a small slender facestretching from the center of the domain tothe far right edge of the rectangle contain-ing a fine mesh to resolve the wake and alarger face surrounding it that will containa rougher mesh.

Operation > Geometry > Face > Form Face

Select the four edges (including the arc)that make the long slender face and clickApply. Then create the larger face thatconsists of all the edges except the smallestvertical edge on the right vertical wall

Now make the cylinder by creating a circleface.

Operation > Geometry > Face > CreateFace

Create a circle of Radius=.05 and clickApply.Now subtract the circle face from the slen-der face. Do not retain the faces them-selves.

Operation > Geometry > Face > BooleanOperations

Page 6: Steady Flow Past a Cylinder

6

Flow Around a Cylinder

Meshing GeometryCreate edge meshes around the circle andright side vertical edges as shown to theright.

The circle edge should be meshed with aSucessive Ratio = 1 and an Interval Count= 40.

The two edges should be meshed with aLast Length = 0.2 and an Interval Count =17. The mesh should be finer moving clos-er to the X-axis.

Now make a boundary layer around thecylinder.

Operation > Mesh > Boundary Layer >Create Boundary Layer

Create the boundary layer with the follow-ing dimensions:

First Row = 0.0001

Growth Factor = 1.625

Rows = 10

Page 7: Steady Flow Past a Cylinder

7

Flow Around a Cylinder

Meshing GeometryMesh the two faces with tri elements.

Operation > Mesh > Mesh Face

The slender face should be meshed with anInterval Size = 0.02. The larger face withan Interval Size = 0.2. The mesh shouldresemble the image shown below.

Finally, specify the solver type and bound-ary conditions.

Solve > Fluent 5/6

Operation > Zones > Specify BoundaryTypes

Create boundary conditions as follows:

Top, bottom, left vertical wall = VelocityInlet

Cylinder = Wall

Right vertical wall (all three edges) =Outflow

Save the Gambit file and export theFluent mesh.

If problems are encountered in creating themesh, the completed mesh with boundaryconditions specified can be loaded from thefile “Cylinder1_meshed.dbs” into Gambitand “Cylinder1_meshed.msh” into Fluent

Page 8: Steady Flow Past a Cylinder

8

Flow Around a Cylinder

Starting in FluentLoad the mesh into Fluent.

File > Read > Case...

Check the mesh for errors.

Grid > Check

For this problem, the default Solver set-tings will be sufficient. Ensure that theproper viscous model is selected.

Define > Models > Viscous...

Ensure that Laminar is selected.

Now recall liquid water from the materialsdatabase so that it can be specified in theboundary conditions.

Define > Materials...

Enter the database by clicking on Database.Select water liquid (h2o<l>) in the FluidMaterials list. Click Copy and then Close.

Now move the reference pressure into theflow domain.

Define > Operating Conditions...

Set the Y location to 1 m.

Page 9: Steady Flow Past a Cylinder

9

Flow Around a Cylinder

Defining the ProblemBoundary conditions can now be set.

Define > Boundary Conditions...

Select fluid in the selection menu on theleft and then click on Set... ChangeMaterial Name to water-liquid.

Now click on inlet in the Zones menu andenter the velocity-inlet window. ChangeVelocity Specification Method toComponents and enter a velocity of 2.01e-4 m/s (liquid water at Re = 20) next toX-Velocity.

Change the discretization method to ahigher order scheme.

Solve > Controls > Solution...

Change the Discretization for Momentumto 2nd Order Upwind.

The flow domain can now be initialized.

Solve > Initialize > Initialize...

Initialize the flow with the inlet conditions.

Page 10: Steady Flow Past a Cylinder

10

Flow Around a Cylinder

Solving the ProblemEnable the plotting option for residuals andturn off automatic convergence checking.

Solve > Monitors > Residual...

Now change the reference values Fluentuses to calculate coefficients and forces.

Report > Reference Values...

Modify the following fields with the corre-sponding values:

Area = 0.1 m^2

Density = 998.2 kg/m^3

Velocity = 2.01e-4 m/s

Viscosity = 0.001003 kg/m-s

The problem is ready to be iterated.

Solve > Iterate...

Start with 2000 iterations.

If problems are encountered in setting up thisproblem in Fluent, the solved problem can beread in as a “Case & Data...” from the file“Cylinder1_solved.cas”.

Page 11: Steady Flow Past a Cylinder

11

Flow Around a Cylinder

Analyzing the SolutionOnce Fluent has stopped iterating, theforces and force coefficients on the cylindercan be calculated.

Report > Forces...

Select the cylinder under Wall Zones andthen click Print. In the main Fluent win-dow a readout of the forces on the cylindershould appear. Use the horizontal scrollbar to pan to the right. Fluent reports thePressure Coefficient is 1.262 and theViscous Coefficient is 0.818. These valuesare in very good agreement with coeffi-ceints obtained experimentally which werefound to be 1.25 and 0.8 respectively.

Now display contours of stream functions.

Display > Contours...

Change Contours Of to Velocity... andselect Stream Function in the pull-downmenu just below.

Uncheck Auto Range at the top left of theContours window.

Change Levels to 50.

Enter 0.3006 in the Min field and 0.3012 inthe Max field.

Click Display.

Page 12: Steady Flow Past a Cylinder

12

Flow Around a Cylinder

Analyzing the ResultsStream functions directly around the cylin-der should be displayed. Zoom in on thecylinder. Two vorticies can be seen in thewake. If desired, re-display more contoursby increasing the Levels in the Contourswindow. It can be seen that these streamlines are very similar to the experimentalimage of a cylinder at a similar Reynoldsnumber (Re = 24.3) shown below.

Photo by Coutanceau & Bouard 1977, from Van Dyke,Milton, An Album of Fluid Motion.