Você está na página 1de 11

Tutorial 1a: Simulating Flow in a Static Mixer Using Workbench: Viewing the Results in ANSYS CFX-Post

The slice is now visible in the viewer.

2. Click Zoom Box

3. Click and drag a rectangular selection over the geometry.


4. Release the mouse button to zoom in on the selection.
5. Click Rotate

6. Click and drag the mouse pointer down slightly to rotate the geometry towards you.
7. Select Isometric View (Z up) as described earlier.

Rendering Slice Planes


Render settings determine how the plane is drawn.
Procedure

1. In the Details pane for Slice, select the Render tab.


2. Clear Draw Faces.
3. Select Draw Lines.
4. Under Draw Lines change Color Mode to User Specified.
5. Click the current color in Line Color to change to a different color.
For a greater selection of colors, click the ellipsis to use the Select color dialog box.
6. Click Apply.
7. Click Zoom Box

8. Zoom in on the geometry to view it in greater detail.

Page 50

ANSYS CFX Tutorials. ANSYS CFX Release 11.0. 1996-2006 ANSYS Europe, Ltd. All rights reserved.
Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.

Tutorial 1a: Simulating Flow in a Static Mixer Using Workbench: Viewing the Results in ANSYS CFX-Post

The line segments show where the slice plane intersects with mesh element faces. The
end points of each line segment are located where the plane intersects mesh element
edges.
9. Right-click a blank area in the viewer and select Predefined Camera > View Towards
-Z.
The image shown below can be used for comparison with tutorial 2 (in the section
Creating a Slice Plane (p. 68)), where a refined mesh is used.

Coloring the Slice Plane


The Color panel is used to determine how the object faces are colored.
Procedure

1. Apply the following settings to Slice


Tab

Setting

Value

Color

Mode

Variable*

Variable

Temperature

Render

*.

Draw Faces

(Selected)

Draw Lines

(Cleared)

You can specify the variable (in this case, temperature) used to color the graphic
element. The Constant mode allows you to color the plane with a fixed color.

2. Click Apply.
Hot water (red) enters from one inlet and cold water (blue) from the other.

Moving the Slice Plane


The plane can be moved to different locations.

ANSYS CFX Tutorials. ANSYS CFX Release 11.0. 1996-2006 ANSYS Europe, Ltd. All rights reserved.
Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.

Page 51

Tutorial 1a: Simulating Flow in a Static Mixer Using Workbench: Viewing the Results in ANSYS CFX-Post

Procedure

1. Right-click a blank area in the viewer and select Predefined Camera > Isometric View
(Z up) from the shortcut menu.
2. Click the Geometry tab.
Review the settings in Definition under Point and under Normal.
3. Click Single Select

4. Click and drag the plane to a new location that intersects the domain.
As you drag the mouse, the viewer updates automatically. Note that Point updates with
new settings.
5. Set Point settings to 0,0,1.
6. Click Apply.
7. Click Rotate

8. Turn off visibility for Slice by clearing the check box next to Slice in the Outline.

Adding Contours
Contours connect all points of equal value for a scalar variable (for example, Temperature)
and help to visualize variable values and gradients. Colored bands fill the spaces between
contour lines. Each band is colored by the average color of its two bounding contour lines
(even if the latter are not displayed).
Procedure

1. Right-click a blank area in the viewer and select Predefined Camera > Isometric View
(Z up) from the shortcut menu.
2. Select Insert > Contour from the main menu or click Contour

The New Contour dialog box is displayed.


3. Set Name to Slice Contour.
4. Click OK.
5. Apply the following settings
Tab

Setting

Value

Geometry

Locations

Slice

Variable

Temperature

Draw Faces

(Selected)

Render

6. Click Apply.
Important: The colors of 3D graphics object faces are slightly altered when lighting is on. To
view colors with highest accuracy, on the Render tab under Draw Faces clear Lighting and
click Apply.

Page 52

ANSYS CFX Tutorials. ANSYS CFX Release 11.0. 1996-2006 ANSYS Europe, Ltd. All rights reserved.
Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.

Tutorial 1a: Simulating Flow in a Static Mixer Using Workbench: Viewing the Results in ANSYS CFX-Post

The graphic element faces are visible, producing a contour plot as shown.

Working with Animations


Animations build transitions between views for development of video files.
Workflow
Overview

This tutorial follows the general workflow for creating a keyframe animation:
1. Showing the Animation Dialog Box (p. 53)
2. Creating the First Keyframe (p. 53)
3. Creating the Second Keyframe (p. 54)
4. Viewing the Animation (p. 55)
5. Modifying the Animation (p. 56)
6. Saving to MPEG (p. 57)

Showing the Animation Dialog Box


The Animation dialog box is used to define keyframes and to export to a video file.
Procedure

1. Select Tools > Animation or click Animation

The Animation dialog box can be repositioned as required.

Creating the First Keyframe


Keyframes are required in order to produce an animation. You need to define the first viewer
state, a second (and final) viewer state, and set the number of interpolated intermediate
frames.
ANSYS CFX Tutorials. ANSYS CFX Release 11.0. 1996-2006 ANSYS Europe, Ltd. All rights reserved.
Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.

Page 53

Tutorial 1a: Simulating Flow in a Static Mixer Using Workbench: Viewing the Results in ANSYS CFX-Post

Procedure

1. Right-click a blank area in the viewer and select Predefined Camera > Isometric View
(Z up).
2. In the Outline, under User Locations and Plots, clear the visibility of Slice
Contour and select the visibility of Slice.
3. Select Tools > Animation or click Animation

The Animation dialog box can be repositioned as required.


4. In the Animation dialog box, click New

A new keyframe named KeyframeNo1 is created. This represents the current image
displayed in the viewer.

Creating the Second Keyframe


Keyframes are required in order to produce an animation.
Procedure

1. In the Outline, under User Locations and Plots, double-click Slice.


2. On the Geometry tab, set Point coordinate values to (0,0,-1.99).
3. Click Apply.
The slice plane moves to the bottom of the mixer.
4. In the Animation dialog box, click New

KeyframeNo2 is created and represents the image displayed in the Viewer.

5. Select KeyframeNo1.
6. Set # of Frames (located below the list of keyframes) to 20.
Page 54

ANSYS CFX Tutorials. ANSYS CFX Release 11.0. 1996-2006 ANSYS Europe, Ltd. All rights reserved.
Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.

Tutorial 1a: Simulating Flow in a Static Mixer Using Workbench: Viewing the Results in ANSYS CFX-Post

This is the number of intermediate frames used when going from KeyframeNo1 to
KeyframeNo2. This number is displayed in the Frames column for KeyframeNo1.
7. Press Enter.
The Frame # column shows the frame in which each keyframe appears. KeyframeNo1
appears at frame 1 since it defines the start of the animation. KeyframeNo2 is at frame
22 since you have 20 intermediate frames (frames 2 to 21) in between KeyframeNo1 and
KeyframeNo2.

Viewing the Animation


More keyframes could be added, but this animation has only two keyframes (which is the
minimum possible).
The controls previously greyed-out in the Animation dialog box are now available. The
number of intermediate frames between keyframes is listed beside the keyframe having the
lowest number of the pair. The number of keyframes listed beside the last keyframe is
ignored.
Procedure

1. Click Play the animation

The animation plays from frame 1 to frame 22. It plays relatively slowly because the slice
plane must be updated for each frame.

ANSYS CFX Tutorials. ANSYS CFX Release 11.0. 1996-2006 ANSYS Europe, Ltd. All rights reserved.
Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.

Page 55

Tutorial 1a: Simulating Flow in a Static Mixer Using Workbench: Viewing the Results in ANSYS CFX-Post

Modifying the Animation


To make the plane sweep through the whole geometry, you will set the starting position of
the plane to be at the top of the mixer. You will also modify the Range properties of the
plane so that it shows the temperature variation better. As the animation is played, you can
see the hot and cold water entering the mixer. Near the bottom of the mixer (where the
water flows out) you can see that the temperature is quite uniform. The new temperature
range lets you view the mixing process more accurately than the global range used in the
first animation.
Procedure

1. Apply the following settings to Slice


Tab

Setting

Value

Geometry

Point

0, 0, 1.99

Color

Mode

Variable

Range

User Specified

Min

295 [K]

Max

305 [K]

2. Click Apply.
The slice plane moves to the top of the static mixer.
Note: Do not double click in the next step.
3. In the Animation dialog box, single click (do not double-click) KeyframeNo1 to select it.
If you had double-clicked KeyFrameNo1, the plane and viewer states would have been
redefined according to the stored settings for KeyFrameNo1. If this happens, click
Undo

and try again to select the keyframe.

4. Click Set Keyframe

The image in the Viewer replaces the one previously associated with KeyframeNo1.
5. Double-click KeyframeNo2.
The object properties for the slice plane are updated according to the settings in
KeyFrameNo2.
6. Apply the following settings to Slice
Tab
Color

Setting

Value

Mode

Variable

Range

User Specified

Min

295 [K]

Max

305 [K]

7. Click Apply.
8. In the Animation dialog box, single-click KeyframeNo2.
9. Click Set Keyframe
Page 56

to save the new settings to KeyframeNo2.

ANSYS CFX Tutorials. ANSYS CFX Release 11.0. 1996-2006 ANSYS Europe, Ltd. All rights reserved.
Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.

Tutorial 1a: Simulating Flow in a Static Mixer Using Workbench: Viewing the Results in ANSYS CFX-Post

Saving to MPEG
By defining the geometry and then saving to MPEG, the results can be saved to a video file.
Procedure

1. Click More Animation Options

to view the additional options.

The Loop and Bounce radio buttons determine what happens when the animation
reaches the last keyframe. When Loop is selected, the animation repeats itself the
number of times defined by Repeat. When Bounce is selected, every other cycle is
played in reverse order, starting with the second.
2. Click Save MPEG.
3. Click Browse

next to Save MPEG.

4. Under File name type: StaticMixer.mpg


5. If required, set the path location to a different folder.
6. Click Save.
The MPEG file name (including path) is set. At this point, the animation has not yet been
produced.
7. Click Previous Keyframe
.
Wait a moment as the display updates the keyframe display.
8. Click Play the animation

9. If prompted to overwrite an existing movie click Overwrite.


The animation plays and builds an MPEG file.
10. Click the Options button at the bottom of the Animation dialog box.
In Advanced, you can see that a Frame Rate of 24 frames per second was used to create
the animation. The animation you produced contains a total of 22 frames, so it takes just
under 1 second to play in a media player.
11. Click Cancel to close the dialog box.
12. Close the Animation dialog box.
13. Review the animation in thirdparty software as required.

Exiting ANSYS CFX-Post


When finished with ANSYS CFX-Post, exit the current window:
1. Select File > Close to close the current file.
2. If prompted to save, click Close.
3. Return to the Project page. Select File > Close Project.
4. Select No, then close Workbench.

ANSYS CFX Tutorials. ANSYS CFX Release 11.0. 1996-2006 ANSYS Europe, Ltd. All rights reserved.
Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.

Page 57

Tutorial 1a: Simulating Flow in a Static Mixer Using Workbench: Viewing the Results in ANSYS CFX-Post

Page 58

ANSYS CFX Tutorials. ANSYS CFX Release 11.0. 1996-2006 ANSYS Europe, Ltd. All rights reserved.
Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.

Tutorial 2:
Flow in a Static Mixer
(Refined Mesh)
Introduction
This tutorial includes:

Tutorial 2 Features (p. 60)

Overview of the Problem to Solve (p. 60)

Defining a Simulation using General Mode in ANSYS CFX-Pre (p. 61)

Obtaining a Solution Using Interpolation with ANSYS CFX-Solver (p. 66)

Viewing the Results in ANSYS CFX-Post (p. 68)

If this is the first tutorial you are working with, it is important to review the following topics
before beginning:

Setting the Working Directory (p. 1)

Changing the Display Colors (p. 2)

Unless you plan on running a session file, you should copy the sample files used in this
tutorial from the installation folder for your software (<CFXROOT>/examples/) to your
working directory. This prevents you from overwriting source files provided with your
installation. If you plan to use a session file, please refer to Playing a Session File (p. 61).
Sample files used by this tutorial are:

StaticMixerRefMesh.gtm

StaticMixerRef.pre

StaticMixer.def

StaticMixer_001.res

ANSYS CFX Tutorials


ANSYS CFX Release 11.0. 1996-2006 ANSYS Europe, Ltd. All rights reserved.
Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.

Page 59

Tutorial 2: Flow in a Static Mixer (Refined Mesh): Tutorial 2 Features

Tutorial 2 Features
This tutorial addresses the following features of ANSYS CFX.

Component
ANSYS CFX-Pre

Feature
User Mode

Details
General Mode

Simulation Type
Fluid Type

Steady State
General Fluid

Domain Type
Turbulence Model
Heat Transfer

Single Domain
k-Epsilon
Thermal Energy

Boundary Conditions

Inlet (Subsonic)
Outlet (Subsonic)

Timestep
ANSYS CFX-Post

Plots

Other

Wall: No-Slip
Wall: Adiabatic
Physical Time Scale
Planevolume
Slice Plane
Spherevolume
Viewing the Mesh

In this tutorial you will learn about:

Using the General Mode of ANSYS CFX-Pre (this mode is used for more complex cases).

Rerunning a problem with a refined mesh.

Importing CCL to copy the definition of a different simulation into the current
simulation.

Viewing the mesh with a Sphere volume locator and a Surface Plot.

Using a Plane Volume locator and the Mesh Calculator to analyze mesh quality.

Overview of the Problem to Solve


In this tutorial, you use a refined mesh to obtain a better solution to the Static Mixer problem
created in Tutorial 1: Simulating Flow in a Static Mixer Using CFX in Standalone Mode (p. 3).
You establish a general workflow for analyzing the flow of fluid into and out of a mixer. This
tutorial uses a specific problem to teach the general approach taken when working with an
existing mesh.
You start a new simulation in ANSYS CFX-Pre and import the refined mesh. This tutorial
introduces General Modethe mode used for most tutorialsin ANSYS CFX-Pre. The
physics for this tutorial are the same as for Tutorial 1: Simulating Flow in a Static Mixer Using
CFX in Standalone Mode (p. 3); therefore, you can import the physics settings used in that
tutorial to save time.

Page 60

ANSYS CFX Tutorials. ANSYS CFX Release 11.0. 1996-2006 ANSYS Europe, Ltd. All rights reserved.
Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.