0% found this document useful (0 votes)
9 views

Computer Exercise 2

Uploaded by

Jessie Dong
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

Computer Exercise 2

Uploaded by

Jessie Dong
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Computer exercise 2

The goal of this computer exercise are:


 to get familiar with Fluent
 to do simple post-processing in Fluent and CFD-Post
 to duplicate a case
 to compare two cases
 to change the order of discretization
This exercise is a continuation of Computer Exercise 1, the geometry is identical and a mesh is
provided on the course homepage.
Download the mesh file from the course homepage (FFF.zip) and unzip to a convenient place.

Open the case


Open ANSYS Workbench. Add a Fluid Flow (Fluent) module.
Doubleclick: Setup
File → Import → Mesh
Answer Yes to “delete cells...” (you don't need Design Modeler and ANSYS Meshing, since you
already have a mesh).
Check the mesh, observe the extent (do we need to scale it?).

Solve the problem


Go to pp.29 in the tutorial from Computer Exercise 1, follow until pp.55. Close fluent.
Do not just click rapidly through the tutorial, think about each step, if there are any questions ask!

Post-process
Contours, vectors and streamlines can be plotted in both the Solution module and the Results
module.
1. Post-process in Fluent
• Double-click in the Solution cell.
• Plot temperature iso-contours
• Click Results → Graphics → Contours
• Select symmetry for the surface
• Select Temperature and Static temperature as variable to plot
• Select Filled in the options
• is the temperature distribution reasonable?
• Plot the velocity vectors
• Click Results → Graphics → Vectors → Edit.
• Select Filled Arrows under Style.
• Select Velocity under Vectors of.
• Select Velocity and Velocity Magnitude under Color of.
• Select symmetry under Surfaces.
• Write 10 under Scale
• Click Display and you have a plot of the velocity with vectors.
• Plot data along a line
• Click Surface → Line/Rake
• Enter the endpoints
• x0 =100 x1 = 200
• y0 = 0 y1 = 0
• z0 = 0 z1 = 0
• Click Create
• Click Results→Plot→XY Plot→Edit
• Select Temperature and Static temperature under Y Axis
Function
• Select line-6 under Surfaces, click Plot and in the Graphics window
you will see the temperature plot along the line
2. Post-process in CFD Post
Close Fluent. Double-click in the Results cell in Workbench.
 Plot streamlines
 Click Insert → Streamline. Click OK.
 Select fluid under Domains.
 Select velocity-inlet-large under Start from.
 Select velocity under Variable.
 Click Apply and you will have a plot of the velocity with streamlines.
 Change to velocity-inlet-small under Start from.

Recompute the case with lower order discretization

The default settings for most equations are 2nd order. Your task is to change the discretization
to all equations to first order. We will reuse most settings from the already computed case. In
order to be able to compare the two cases we will duplicate the previous case. In Workbench,
in the project Schematic, right-click the title cell of the Fluid Flow (Fluent) system
and select Duplicate from the context menu.
 Rename the duplicated system to FirstOrder
 Save the FirstOrder project in ANSYS Workbench.
 In the ANSYS Workbench Project Schematic, double-click the Setup cell in the
FirstOrder fluid flow analysis system.
 In Solution->Controls set all equations to First Order Upwind (pressure to Standard)
 Keep all the other settings.
 Re-initialize the solution by clicking Solution→Solution Initialization.
Keep the default Hybrid Initialization and click Initialize.
 Calculate the solution by clicking Solution → Run Calculation. Keep the
Number of Iterations set to 300 and click Calculate. Close ANSYS
Fluent.

Compare the two cases

See also pp. 67 in the tutorial.


 In ANSYS Workbench, drag a Results system from the Component Systems
section of the Toolbox and drop it into the Project Schematic, next to the fluid flow
system.

Add the solutions of each of the systems to the Results system.


• Select the Solution cell in the first Fluid Flow analysis system (cell A5) and
drag it over the Results cell in the Results system (cell C2). This creates a
data transfer connection between the two systems
• Select the Solution cell in the second Fluid Flow analysis system (cell B5) and
drag it over the Results cell in the Results system (cell C2). This creates a connection
between the two systems.
• Open CFD-Post by double-clicking the Results cell in the Results system.

Now the two fluid flow systems are connected to the Results system. Within CFD-Post, both
geometries are displayed side by side.

 Display filled contours of temperature magnitude on the symmetry plane.


 Insert a contour object by clicking Insert→Contour. This displays the Insert
Contour dialog box.
 Keep the default name of the contour (Contour 1) and click OK to close the dialog
box. This displays the Details of Contour 1 view below the Outline view in
CFD-Post. This view contains all the settings for a contour object.
 In the Geometry tab, select fluid in the Domains list.
 Select symmetry in the Locations list.
 Select Temperature in the Variable list.
 Click Apply. The temperature contours are displayed in each view.
 Are there any differences? Try to plot the velocity magnitude.
 Compare the temperature distribution for the two cases along a line. We will first
create a line, then insert a chart.
 Insert → Location → Line
 Domains: fluid
 Method: Two Points
 Point 1: 0.1 0.19 0
 Point 2: 0.2 0.19 0
 Line Type: Sample
 Samples: 100
 Apply
 Insert → Chart
 Type: XY
 Data Series → Location → Line 1
 Y Axis → Temperature
 Apply
 Try to change the line position
 Click Line 1 in Outline
 change the y coordinate of the points from 0.19 to 0.1
 Apply
Bonus:

 In Fluent: Graphic → Views → Mirror planes → symmetry


 Duplicate the base case again, change the wall thermal boundary condition to constant
temperature.

You might also like