Carnegie Mellon

Mechanical Engineering

Self-paced learning on the Web
FEM/ANSYS

 

F2 Channel
Home Course Info Problems Test Problems Students Reference

Fluid #2: Velocity analysis of fluid flow in a channel USING FLOTRAN

 

Introduction:  In this example you will model fluid flow in a channel

Physical Problem:  Compute and plot the velocity distribution within the elbow. Assume that the flow is uniform at both the inlet and the outlet sections and that the elbow has uniform depth.

Problem Description:

 

bullet

The channel has dimensions as shown in the figure

bullet

The flow velocity as the inlet is 10 cm/s

bullet

Use the continuity equation to compute the flow velocity at exit

bullet

Objective:
bullet

To plot the velocity profile in the channel

bullet

To plot the velocity profile across the elbow

bullet

You are required to hand in print outs for the above

bullet

Figure:

         

IMPORTANT: Convert all dimensions and forces into SI units

 

STARTING ANSYS         

 

bullet

Click on ANSYS 6.1 in the programs menu.

bullet

Select Interactive.

bullet

The following menu comes up. Enter the working directory. All your files will be stored in this directory. Also under Use Default Memory Model make sure the values 64 for Total Workspace, and 32 for Database are entered.  To change these values unclick Use Default Memory Model

 

          

 

MODELING THE STRUCTURE

 

bullet

Go to the ANSYS Utility Menu (the top bar)

bullet

Click Workplane>WP Settings…

The following window comes up:

 

                        

 

o        Check the Cartesian and Grid Only buttons

o        Enter the values shown in the figure above

 

·         Go to the ANSYS Main Menu (on the left hand side of the screen) and click

Preprocessor>Modeling>Create>Keypoints>On Working Plane

Create keypoints corresponding to the vertices in the figure. The keypoints look like below.

 

         

Now create lines joining these key points.

bullet

Modeling>Create>Lines>Lines>Straight line

bullet

The model looks like the one below.

 

                                      

 

Now create fillets between lines L4-L5 and L1-L2.

bullet

Click Modeling>Create>Lines>Line Fillet.  A pop-up window will now appear.  Select lines 4 and 5.  Click OK.  The following window will appear:

 

 

bullet

This window assigns the fillet radius.  Set this value to 0.1 m.

bullet

Repeat this process of filleting for Lines 1 and 2.

bullet

The model should look like this now:

 

          

 

bullet

Now make an area enclosed by these lines.

bullet

Modeling>Create>Areas>Arbitrary>By Lines

bullet

Select all the lines and click OK. The model looks like the following

 

       

 

bullet

The modeling of the problem is done.

 

ELEMENT PROPERTIES

 

SELECTING ELEMENT TYPE:

·         Click Preprocessor>Element Type>Add/Edit/Delete... In the 'Element Types' window that opens click on Add... The following window opens.

 

 

·         Type 1 in the Element type reference number.

·         Click on Flotran CFD and select 2D Flotran 141. Click OK. Close the Element types window.

·         So now we have selected Element type 1 to be solved using Flotran, the computational fluid dynamics portion of ANSYS. This finishes the selection of element type.

 

DEFINE THE FLUID PROPERTIES:

·         Go to Preprocessor>Flotran Set Up>Fluid Properties.

·         On the box, shown below, set the first two input fields as Air-SI, and then click on OK.  Another box will appear.  Accept the default values by clicking OK.

 

 

·         Now we’re ready to define the Material Properties

 

 

MATERIAL PROPERTIES

 

bullet

We will model the fluid flow problem as a thermal conduction problem. The flow corresponds to heat flux, pressure corresponds to temperature difference and permeability corresponds to conductance.

bullet

Go to the ANSYS Main Menu

bullet

Click Preprocessor>Material Props>Material Models. The following window will appear

 

 

bullet

As displayed, choose CFD>Density. The following window appears.

 

 

bullet

Fill in 1.23 to set the density of Air. Click OK.

bullet

Now choose CFD>Viscosity. The following window appears:

 

 

bullet

Now the Material 1 has the properties defined in the above table so the Material Models window may be closed.

 

MESHING:

 

DIVIDING THE CHANNEL INTO ELEMENTS:

bullet

Go to Preprocessor>Meshing>Size Cntrls>ManualSize>Lines>All Lines.

bullet

In the window that comes up type 0.01 in the field for 'Element edge length'.

 

 

bullet

Now Click OK.

bullet

Now go to Preprocessor>Meshing>Mesh>Areas>Free. Click the area and the OK. The mesh will look like the following.

 

 

 

BOUNDARY CONDITIONS AND CONSTRAINTS

 

bullet

Go to  Preprocessor>Loads>Define Loads>Apply>Fluid CFD>Velocity>On lines. Pick the left edge of the outer block and Click OK. The following window comes up.

 

 

bullet

Enter 0.1 in the VX value field and click OK. The 0.1 corresponds to the velocity of 0.1 meter per second of air flowing from the left side.

bullet

Repeat the above and set the Velocity to ZERO for the air along all of the edges of the pipe.  (VX=VY=0 for all sides)

bullet

Once they have been applied, the pipe will look like this:

 

·         Go to Main Menu>Preprocessor>Loads>Define Loads>Apply>Fluid  CFD>Pressure DOF>On Lines.

·         Pick the outlet line.  (The horizontal line at the top of the area)  Click OK.

·         Enter 0 for the Pressure value.

·         Now the Modeling of the problem is done.

 

SOLUTION

 

bullet

Go to ANSYS Main Menu>Solution>Flotran Set Up>Execution Ctrl.

·         The following window appears.  Change the first input field value to 300, as shown.  No other changes are needed.  Click OK.

 

 

bullet

Go to Solution>Run FLOTRAN.

bullet

Wait for ANSYS to solve the problem.

bullet

Click on OK and close the 'Information' window.

 

POST-PROCESSING

 

bullet

Plotting the velocity distribution…

bullet

Go to General Postproc>Read Results>Last Set.

bullet

Then go to General Postproc>Plot Results>Contour Plot>Nodal Solution. The following window appears:

 

 

·                     Select DOF Solution and Velocity VSUM and Click OK.

·                     This is what the solution should look like:

 

 

·                     Next, go to Main Menu>General Postproc>Plot Results>Vector Plot>Predefined. The following window will appear:

 

 

·                     Select OK to accept the defaults.  This will display the vector plot to compare to the solution of the same tutorial solved using the Heat Flux analogy.  Note: This analysis is FAR more precise as shown by the following solution:

 

 

·                     Go to Main Menu>General Postproc>Path Operations>Define Path>By Nodes

·                     Pick points at the ends of the elbow as shown. We will graph the velocity distribution along the line joining these two points.

 

 

·         The following window comes up.

 

 

·         Enter the values as shown.

·         Now go to Main Menu>General Postproc>Path Operations>Map onto Path. The following window comes up.

 

 

·         Now go to Main Menu>General Postproc>Path Operations>Plot Path Items>On Graph.

·         The following window comes up.

 

 

·         Select VELOCITY and click OK.

·         The graph will look as follows:

 

 

 

 

Home Course Info Problems Test Problems Students Reference
Send mail to the Teaching Staff with questions or comments about this web site.