Professional Documents
Culture Documents
Master Index
Help On Help
CFX-5 Tutorials
Tutorial 1
CFX-5 Tutorials
Page 7
Help On Help
1.A:
1.A.1:
Introduction
Features explored in this tutorial
Introduction: This tutorial addresses the following features of CFX-5.
Component CFX-Pre Feature User Mode Simulation Type Fluid Type Domain Type Turbulence Model Heat Transfer Boundary Conditions Details Quick Setup Wizard Steady State General Fluid Single Domain k-Epsilon Thermal Energy Inlet (Subsonic) Outlet (Subsonic) Wall: No-Slip Wall: Adiabatic Physical Timescale Animation Contour Outline Plot (Wireframe) Point Slice Plane Streamline Camera Object Legend MPEG Generation Object Drag and Drop
Other
You learn about: problem setup using Quick Setup Mode in CFX-Pre modifying the outline plot in CFX-Post using streamlines in CFX-Post to trace the flowfield from a point viewing temperature using coloured planes and contours in CFX-Post creating an animation and saving it to an MPEG file using camera objects to save and load views in CFX-Post
Page 8
CFX-5 Tutorials
Master Contents
Master Index
1.A.2:
1.A.3:
CFX-5 Tutorials
Page 9
Master Contents Master Index Help On Help Flow in a Static MixerDefining a Simulation Using Quick Setup Mode in CFX-Pre
1.B:
Synopsis
Quick Setup Mode provides a simple wizardlike interface for setting up simple cases. This is useful for getting familiar with the basic elements of a CFD problem setup. This section describes using Quick Setup to develop a simulation in CFX-Pre. Do not perform any of the following tasks now. For review purposes only this section provides a brief summary of the topics to follow as a general workflow: 1. "Creating a New Simulation" on page 11 2. "Defining Basic Settings of General Physics" on page 12 3. "Importing a Mesh" on page 13 4. "Defining Model Data" on page 15 5. "Defining Solver Parameters" on page 16 6. "Defining Boundaries" on page 16 7. "Setting Boundary Data" on page 17 8. "Setting Flow Specification" on page 18 9. "Setting Temperature Specification" on page 18 10. "Reviewing Boundary Conditions Definition for Accuracy" on page 19 11. "Creating the Second Inlet Boundary Definition" on page 20 12. "Creating the Outlet Boundary Definition" on page 20 13. "Moving to General Mode" on page 21 14. "Writing the Solver (.def) File." on page 22 15. As an alternative to these steps, you can also review "Playing the Session File" on page 23
Workflow Overview
Page 10
CFX-5 Tutorials
Master Contents Master Index Help On Help Flow in a Static MixerDefining a Simulation Using Quick Setup Mode in CFX-Pre
To begin this tutorial and create a new simulation in CFX-Pre, continue from "Creating a New Simulation" on page 11. Tip: If you are already familiar with CFX-Pre, or if you simply want to skip the manual process of creating a flow physics simulation, you can play a session file to complete the CFX-Pre part of the tutorial. To do so, see "Playing the Session File" on page 23.
1.B.1:
Synopsis
By entering information in the User Mode Workspacewhich contains forms designed to guide you through setting up a simple simulationyou can define a simulation quickly. More information on Quick Setup can be found in "Quick Setup Mode" on page 19 in the document "CFX-Pre". After filling out forms in the User Mode Workspace some simulations are ready to be solved. However, other simulations require further changes using General Mode (the normal mode of operation). In Tutorial 2 you continue working with this simulation in General Mode. Two procedures are documented. Depending on your installation of CFX-5 follow either the Standalone procedure or the Workbench procedure. For more information, refer to "CFX-5.7.1 in Workbench" on page 19.
Procedure in Standalone
1. If required, launch CFX-Pre. 2. Select File > New Simulation. 3. Click Quick Setup in the New Simulation File window.
4. If required, set the path location to a different folder. 5. Under File name type StaticMixer. 6. Click Save. The User Mode tab is displayed. 7. Proceed to "Defining Basic Settings of General Physics" on page 12.
Procedure in Workbench
1. If required, launch Workbench. 2. Click Empty Project. The Project Page will appear displaying an unsaved project. 3. Select File > Save or click Save. 4. If required, set the path location to a different folder.
CFX-5 Tutorials
Page 11
Master Contents Master Index Help On Help Flow in a Static MixerDefining a Simulation Using Quick Setup Mode in CFX-Pre
5. Under Filename, type StaticMixer. 6. Click Save. 7. Click Start CFX-Pre under Advanced CFD on the left hand Task Bar. 8. Select File > New Simulation. 9. Click Quick Setup in the New Simulation File window.
10. If required, set the path location to a different folder. 11. Under File name type StaticMixer. 12. Click Save. The User Mode tab is displayed.
1.B.2:
Synopsis
Procedure
Page 12
CFX-5 Tutorials
Master Contents Master Index Help On Help Flow in a Static MixerDefining a Simulation Using Quick Setup Mode in CFX-Pre
1.B.3:
Importing a Mesh
Introduction: At least one mesh must be imported before physics are applied.
Synopsis
An assembly is a group of mesh regions that are topologically connected. Tip: While we provide a mesh to use with this tutorial, you may want to develop your own in the future. Instructions on how to create this mesh in CFX-Mesh are available from the CFX Community Site. Please see "Mesh Generation" on page 3 for details.
Procedure
1. In Basic Settings, under Select Mesh, click Import . A new section opens below User Mode for Definition.
3. From your working directory, select StaticMixerMesh.gtm. 4. Click Open. 5. Click OK. The mesh is loaded.
CFX-5 Tutorials
Page 13
Master Contents Master Index Help On Help Flow in a Static MixerDefining a Simulation Using Quick Setup Mode in CFX-Pre
1.B.4:
Synopsis
The view of a geometry can be modified in a number of ways. To manipulate the display in the Viewer, the Viewing Tools toolbar is used.
Procedure
1. Click Zoom Box 2. Click and drag a rectangular selection over the geometry. 3. Release the mouse button to zoom in on the selection. The geometry zoom changes to display the selection at a greater resolution. 4. Click Fit View in the Viewing Tools toolbar to re-centre and re-scale the geometry.
1.B.5:
Synopsis
The view of a geometry can be modified in a number of ways. To manipulate the display in the Viewer, the Viewing Tools toolbar is used.
Page 14
CFX-5 Tutorials
Master Contents Master Index Help On Help Flow in a Static MixerDefining a Simulation Using Quick Setup Mode in CFX-Pre Procedure
2. Click and drag within the geometry repeatedly to test the rotation of the geometry. The geometry rotates based on the direction of movement. 3. Click Isometric View in the Viewing Tools toolbar to select a specific view. You can view the geometry from one of the Cartesian axis directions or from an isometric angle by using the drop-down menu. 4. Select View Towards -X. A description of the other icons in the Viewing Tools toolbar can be found in "Viewer" on page 70 in the document "CFX-Pre". 5. Click Isometric View (Z up) from the Viewing Tools toolbar. A clearer view of the mesh is displayed.
1.B.6:
Synopsis
The flow is specified as steady state with turbulence and heat transfer. Turbulence is modelled using the k-epsilon turbulence model and heat transfer using the thermal energy model. The k-epsilon turbulence model is a commonly used model and is suitable for a wide range of applications. The thermal energy model neglects high speed energy effects and is therefore suitable for low speed flow applications. 1. Ensure Model Data is displayed.
Procedure
2. Set Reference Pressure to 0 [atm] (Atmospheres). All other pressure settings are relative to this reference pressure. 3. Set Heat Transfer to Thermal Energy.
CFX-5 Tutorials Page 15
Master Contents Master Index Help On Help Flow in a Static MixerDefining a Simulation Using Quick Setup Mode in CFX-Pre
1.B.7:
Synopsis
While upwind is less accurate it is also more robust than other advection schemes. This is suitable for obtaining an initial set of results, but in general should not be used to obtain final accurate results. For more information refer to "Advection Scheme Selection" on page 357 in the document "CFX-5 Solver Modelling". 1. Ensure Solver Parameters is displayed.
Procedure
Tip: If required, click the + or the next to a setting to expand or collapse the setting. 2. Set Advection Scheme to Upwind. 3. Set Convergence Control to Physical Timescale. Physical Timescale appears, replacing Time Scale Option 4. Set Physical Timescale to 2 [s]. 5. Click Next.
1.B.8:
Defining Boundaries
Introduction: The CFD model requires the definition of conditions on the boundaries of the domain.
Synopsis
Based on "Figure 1: Static Mixer with 2 Inlet Pipes and 1 Outlet Pipe" on page 9 we know there are two inlet boundaries and one outlet boundary that need to be defined.
CFX-5 Tutorials
Page 16
Master Contents Master Index Help On Help Flow in a Static MixerDefining a Simulation Using Quick Setup Mode in CFX-Pre Procedure
4. Click OK. The boundary is created and, when selected, properties related to the boundary are displayed.
1.B.9:
Synopsis
Based on "Figure 1: Static Mixer with 2 Inlet Pipes and 1 Outlet Pipe" on page 9 we know the first inlet boundary condition consists of a velocity of 2.0 m/s and a temperature of 315.0 K at one of the side inlets. 1. Ensure Boundary Data is displayed.
Procedure
Master Contents Master Index Help On Help Flow in a Static MixerDefining a Simulation Using Quick Setup Mode in CFX-Pre
1.B.10:
Synopsis
Setting flow specification includes selecting an option and defining additional parameters based on the selection. The first inlet boundary condition consists of a velocity of 2.0 m/s at one of the side inlets.
Procedure
1.B.11:
Synopsis
Setting temperature specifications includes selecting an option and defining additional parameters based on the selection. The first inlet boundary condition consists of a temperature of 315.0 K at one of the side inlets.
Page 18
CFX-5 Tutorials
Master Contents Master Index Help On Help Flow in a Static MixerDefining a Simulation Using Quick Setup Mode in CFX-Pre Procedure
1.B.12:
Synopsis
By reviewing what we have done in the previous modules we can follow the procedure used to create a boundary condition. There are two more boundary conditions to create and this review summarizes what has been done to prepare you to create boundary conditions on your own. Based on "Figure 1: Static Mixer with 2 Inlet Pipes and 1 Outlet Pipe" on page 9 we know the first inlet boundary condition consists of a velocity of 2.0 m/s and a temperature of 315.0 K at one of the side inlets.
Procedure
1. Ensure Boundary Definition is displayed. 2. Under Existing Boundaries click on in1 to display its values.
CFX-5 Tutorials
Page 19
Master Contents Master Index Help On Help Flow in a Static MixerDefining a Simulation Using Quick Setup Mode in CFX-Pre
1.B.13:
Synopsis
Based on "Figure 1: Static Mixer with 2 Inlet Pipes and 1 Outlet Pipe" on page 9 we know the second inlet boundary condition consists of a velocity of 2.0 m/s and a temperature of 285.0 K at one of the side inlets. 1. Ensure Boundary Definition is displayed. 2. Create a new boundary named in2 with these settings:
Modify Boundary Data Flow Specification Temperature Specification Set the following Boundary Type Location Option Normal Speed Static Temperature To this value Inlet in2 Normal Speed 2 [m s^-1] 285.0 K
Procedure
1.B.14:
Synopsis
Based on "Figure 1: Static Mixer with 2 Inlet Pipes and 1 Outlet Pipe" on page 9 we know the outlet boundary condition needs to be developed.
Page 20
CFX-5 Tutorials
Master Contents Master Index Help On Help Flow in a Static MixerDefining a Simulation Using Quick Setup Mode in CFX-Pre Procedure
1. Ensure Boundary Definition is displayed. 2. Create a new boundary named out with these settings:
Modify Boundary Data Flow Specification Set the following Boundary Type Location Option Relative Pressure To this value Outlet out Average Static Pressure 0 [Pa]
3. Click Next.
1.B.15:
Synopsis
There are no further boundary conditions that need to be set. All 2D exterior regions that have not been assigned a boundary condition are automatically assigned the default boundary condition, named StaticMixer Default. The boundary condition for unassigned regions is normally a no-slip adiabatic wall, but can be changed to a different wall type. For more information, see "Default Boundary Conditions" on page 263 in the document "CFX-Pre".
CFX-5 Tutorials
Page 21
Master Contents Master Index Help On Help Flow in a Static MixerDefining a Simulation Using Quick Setup Mode in CFX-Pre Procedure
1. Click Finish to enter General Mode. The three boundary conditions are displayed in the viewer as sets of arrows at the boundary surfaces. Inlet boundary arrows are directed into the domain. Outlet boundary arrows are directed out of the domain.
1.B.16:
Synopsis
The Simulation fileStaticMixer.cfxcontains the simulation definition in a format that can be loaded by CFX-Pre, allowing you to complete (if applicable), restore, and modify the simulation definition. The Simulation file differs from the Definition file in two important ways: The Simulation file can be saved at any time while defining the simulation. Mesh data is not contained in the Simulation file. The simulation file references the original mesh file(s).
Page 22
CFX-5 Tutorials
Master Contents Master Index Help On Help Flow in a Static MixerDefining a Simulation Using Quick Setup Mode in CFX-Pre Procedure
1. Select File > Write Solver (.def) File or click Write a Solver File Write Solver File is displayed. 2. If required, type StaticMixer.def under File name. 3. If required, set Operation to Start Solver Manager. 4. If required, set Report Summary of Interface Connections to off. 5. If using CFX-Pre in Standalone Mode, set Quit CFX-Pre to on. This forces Standalone CFX-Pre to close after the Definition file has been written. This option is not required in Workbench. 6. Click OK. 7. If you are notified the file already exists, click Overwrite. This file is provided in the examples directory and may exist in your working folder if you have copied it there. 8. Click Yes if asked to save StaticMixer.cfx. The definition file (StaticMixer.def) and the simulation file (StaticMixer.cfx) are created. CFX-Solver Manager automatically starts and the definition file is set in the Definition File box of Define Run. 9. Proceed to "Obtaining a Solution Using CFX-Solver Manager" on page 25.
1.B.17:
Synopsis
A session file can be created and played at a later date to avoid having to recreate all the events configured when using CFX-Pre. Session files can be created as required. Two procedures are documented. Depending on your installation of CFX-5 follow either the Standalone procedure or the Workbench procedure.
Procedure in Standalone
1. If required, launch CFX-Pre. 2. Select Session > Play Session. 3. Select StaticMixer.pre, located in the examples directory. 4. Click Open. A Definition file is written. 5. Select File > Quit.
CFX-5 Tutorials
Page 23
Master Contents Master Index Help On Help Flow in a Static MixerDefining a Simulation Using Quick Setup Mode in CFX-Pre
6. Click Quit. 7. Click the CFX-Solver icon on the CFX Launcher. 8. Select File > Define Run. 9. Under Definition File, click Browse .
10. Select StaticMixer.def, located in the examples directory. 11. Proceed to "Obtaining a Solution Using CFX-Solver Manager" on page 25.
Procedure in Workbench
1. If required, launch Workbench. 2. Click Empty Project. 3. Select File > Save or click Save. 4. If required, set the path location to a different folder. 5. Under Filename, type StaticMixer. 6. Click Save. 7. Click Start CFX-Pre. 8. Select Session > Play Session. 9. Select StaticMixer.pre, located in the examples directory. 10. Click Open. A status bar appears in the bottom right of the screen while a Definition file is written. 11. Click the CFX-Solver tab. 12. Select File > Define Run. 13. Under Definition File, click Browse .
Page 24
CFX-5 Tutorials
Master Contents
Master Index Help On Help Flow in a Static MixerObtaining a Solution Using CFX-Solver Manager
1.C:
Synopsis
Two windows are displayed when CFX-Solver Manager runs. There is an adjustable split between the windows which is oriented either horizontally or vertically, depending on the aspect ratio of the entire CFX-Solver Manager window (also adjustable).
One window shows the convergence history plots and the other displays text output from CFX-Solver. The text lists physical properties, boundary conditions and various other parameters used or calculated in creating the model. All the text is written to the Output File automatically (in this case StaticMixer_001.out). More detail on the contents of the Output File can be found in "The CFX-5 Output File" on page 87 in the document "CFX-Solver Manager".
CFX-5 Tutorials
Page 25
Master Contents Master Index Help On Help Flow in a Static MixerObtaining a Solution Using CFX-Solver Manager
1.C.1:
Synopsis
When the CFX-Solver Manager is launched automatically from CFX-Pre, all of the information required to perform a new Serial run (on a single processor) is entered automatically. You do not need to alter the information in the Define Run window. This is a very quick way to launch into CFX-Solver without having to define settings and values. Numerous settings can be configured when using CFX-Solver Define Run with data from CFX-Pre. For more information refer to "Run Definition" on page 11 in the document "CFX- Solver Manager".
Procedure
1. Ensure Define Run is displayed. 2. Click Start Run. CFX-Solver launches and a split screen appears. The left pane displays the results of the run graphically and the right pane displays the information as text. The panes continue to build as CFX-Solver Manager operates.
Page 26
CFX-5 Tutorials
Master Contents
Master Index Help On Help Flow in a Static MixerObtaining a Solution Using CFX-Solver Manager
Note: Once the second iteration appears data begins to plot. Plotting may take a long time depending on the amount of data to process. Do not shut down the process. 3. Click OK when CFX-Solver is finished.
1.C.2:
Synopsis
CFX-Solver is used to calculate a problem. In order to review the results of the calculation use CFX-Post. 1. Select Tools > PostProcess Results or click PostProcess Results . 2. If using CFX-Solver in Standalone Mode, select Shut down Solver Manager. This forces Standalone CFX-Solver to close after the Definition file has been written. This option is not required in Workbench. 3. Click OK. After a short pause, CFX-Post starts and CFX-Solver Manager closes.
Procedure
CFX-5 Tutorials
Page 27
Master Contents Master Index Help On Help Flow in a Static MixerViewing Results in CFX-Post
1.D:
3D Viewer: Displays an outline of the geometry and other graphics objects. In addition to the mouse, you can use icons from the Viewing Tools toolbar (along the top of the viewer) to manipulate the view. Objects Workspace: Consists of the Object Selector and Object Editor. This is accessed by clicking the Objects tab in the CFX-Post Workspace. Object Selector: The tree structure displaying existing objects. Object Editor: Used to set or alter the properties of objects. It appears beneath the Object Selector after double-clicking an object in the Object Selector or; right-clicking an object in the Object Selector and selecting Edit from the pop-up menu or; highlighting an object in the Object Selector and clicking Edit Selected Object Button or; creating a new object by clicking Create New Object in the Object Selector Note: There are other workspaces (e.g. for Variables, Expressions and Charts).
Page 28
CFX-5 Tutorials
Master Contents
Master Index
Some objects are automatically created in CFX-Post. These include boundary objects corresponding to each boundary condition specified in CFX-Pre. In this tutorial, the two inlets and the outlet have their own boundary objects. The remaining surfaces of the geometry are grouped together into the Default boundary object. A Wireframe object is also automatically created, and contains the surface mesh for the geometry.
Workflow Overview
Do not perform any of the following tasks now. For review purposes only this section provides a brief summary of the topics to follow as a general workflow: 1. "Setting the Edge Angle for a Wireframe Object" on page 29 2. "Creating a Point for the Origin of the Streamline" on page 31 3. "Creating a Streamline Originating from a Point" on page 32 4. "Rearranging the Point" on page 33 5. "Configuring a Default Legend" on page 34 6. "Creating a Slice Plane" on page 37 7. "Defining Geometry" on page 38 8. "Configuring Views" on page 38 9. "Rendering Slice Planes" on page 39 10. "Colouring the Plane" on page 39 11. "Moving the Plane" on page 40 12. "Adding Contours" on page 41
1.D.1:
Synopsis
CFX-Post only displays some of the surface mesh by default. This sometimes means that when you first load your Results file, the geometry outline is not displayed clearly. The amount of the surface mesh shown can be modified by editing the Wireframe object listed in the Object Selector. The check boxes next to each object name in the Object Selector control the visibility of each object. Currently only the Wireframe and Default Legend (View Control) objects have their visibility turned on.
CFX-5 Tutorials
Page 29
Master Contents Master Index Help On Help Flow in a Static MixerViewing Results in CFX-Post
The edge angle determines how much of the surface mesh is visible. If the angle between two adjacent faces is greater than the edge angle, then that edge is drawn. If the edge angle is set to 0 degrees, the entire surface mesh is drawn. If the edge angle is large, then only the most significant corner edges of the geometry are drawn. For this geometry, a setting of approximately 15 degrees lets you view the model location without displaying an excessive amount of the surface mesh. In this module we also modify the zoom settings and view of the wireframe.
Procedure
1. In Objects, under Regions, double-click Wireframe. Tip: While it is not necessary to change the view to set the angle, we do so to explore the practical uses of this feature. 2. Click Isometric View specific view. in the Viewing Tools toolbar to select a
3. Select Isometric View (Z Up). 4. In Wireframe, under Definition, click the Edge Angle field. An embedded slider is displayed. 5. Type a value of 10 [degree]. 6. Click Apply to update the object with the new setting. More surface mesh is displayed. 7. Drag the embedded slider to set the Edge Angle value to approximately 45 [degree]. 8. Click Apply to update the object with the new setting. Less of the outline of the geometry is displayed. 9. Type a value of 15 [degree]. 10. Click Apply to update the object with the new setting. Tip: While it is not necessary to reset the view, we do so to make the appearance consistent between modules of the tutorials. 11. Click Isometric View specific view. in the Viewing Tools toolbar to select a
Page 30
CFX-5 Tutorials
Master Contents
Master Index
1.D.2:
Procedure
1. Select Create > Object > Point. You can also use the toolbars to create a variety of objects. Later modules and tutorials explore this further. 2. Click OK. This accepts the default name. 3. If required, in the Objects tab, under Point 1 click Geometry. 4. Under Definition, ensure that Method is set to XYZ. 5. Under Point, enter the following coordinates: -1.0 -2.9 1.0. This is a point near an inlet. 6. Click Apply. The point appears as a symbol in the 3D Viewer as a crosshair symbol.
CFX-5 Tutorials
Page 31
Master Contents Master Index Help On Help Flow in a Static MixerViewing Results in CFX-Post
1.D.3:
Synopsis
In this module you create a streamline that moves forward from the point you created. 1. Click Create > Object > Streamline. You can also use the toolbars to create a variety of objects. Later modules and tutorials explore this further. 2. Click OK. This accepts the default name. 3. If required, in the Objects tab, under Streamline 1 click Geometry. 4. Under Definition, in Start From, ensure that Point 1 is set. Tip: To create streamlines originating from more than one location, click the ellipsis icon to the right of the Start From box. This displays the Location Selector, where <Ctrl> and <Shift> keys can be used to pick multiple locators. 5. Click the Colour tab. 6. Set Mode to Variable. 7. Set Variable to Temperature. 8. Set Range to Local.
Procedure
Page 32
CFX-5 Tutorials
Master Contents
Master Index
9. Click Apply. The streamline shows the path of a zero mass particle from Point 1. The temperature is initially high near the hot inlet, but as the fluid mixes the temperature drops.
1.D.4:
Procedure
1. Double-click Point 1 in the Object Selector. Properties for the selected user location are displayed. 2. Under Point, set these coordinates: -1.0 -1 1.0. 3. Click Apply. 4. Select Viewer > Picking Mode, or click Pick From Viewer in the Selection Tools. While in this mode the viewer does not change settings (such as rotate, zoom, etc.).
CFX-5 Tutorials
Page 33
Master Contents Master Index Help On Help Flow in a Static MixerViewing Results in CFX-Post
5. In the Viewer, drag Point 1 to a new location within the mixer. The point position is updated in the Object Editor and the streamline is redrawn at the new location. The point moves normal in relation to the viewing direction. 6. Select Viewer > Rotate or click on the Viewing Tools toolbar.
Tip: You can also click in the viewer area, and press space bar to toggle between Picking Mode and Viewing Mode. A way to pick objects from Viewing Mode, is to hold down <Ctrl> + <Shift> while clicking on an object with the left mouse button. 7. Under Point, reset these coordinates: -1.0 -2.9 1.0. 8. Click Apply. The point appears at its original location. 9. Click Isometric View View Towards -X. in the Viewing Tools toolbar and select
1.D.5:
Synopsis
1. An exception occurs when one or more bands in a contour plot represent values beyond the legends range. In this case, such bands are coloured using a colour that is extrapolated slightly past the range of colours shown in the legend. This can happen only when a user-specified range is used for the legend. Page 34 CFX-5 Tutorials
Master Contents
Master Index
Since there are many settings that can be customized for the legend, this module allows you the freedom to experiment with them. The last steps set up the legend to a default with a minor modification to the position. Tip: When editing values, you can click Reset at any time before clicking Apply to reset original values. This is useful if you make many changes, but have not applied them and want to reset all values to where they started before your edits. Note: If using Defaults when modifying the legend, settings for both Definition and Appearance are reset. Use this setting cautiously as you may end up having to redefine settings in another tab.
Procedure
1. Under Objects, expand View Control. 2. Double click Default Legend. Definition settings display in the Object Editor.
3. Modify a few settings without clicking Apply. 4. Click Defaults. This is useful if you make and apply changes and then want to reset all values to the original default values.
CFX-5 Tutorials Page 35
Master Contents Master Index Help On Help Flow in a Static MixerViewing Results in CFX-Post
6. Click Apply. The appearance and position of the legend changes based on the settings specified. 7. Modify various settings in Definition and click Apply after each change. 8. Select Appearance.
Page 36
CFX-5 Tutorials
Master Contents
Master Index
9. Modify a variety of settings in the Appearance and click Apply after each change. Tip: If setting either Location to None you can customize the exact location of the legend by using the slider or typing values between 0 and 1 in Position. 10. Click Defaults. 11. Click Apply. 12. Under Objects, in User Locations and Plots, clear the check box for Point 1 and Streamline 1. Since both are no longer visible the associated legend no longer displays.
1.D.6:
Synopsis
In CFX-Post you often view results by colouring a graphics object. The graphics object could be an isosurface, a vector plot, or in this case, a plane. The object can be a fixed colour or it can vary based on the value of a variable. You already have some objects defined by default (listed in the Object Selector). You can view results on the boundaries of the Static Mixer by colouring each boundary object by a variable. To view results within the geometry (i.e. on non-default locators), new objects need to be created. You can use the following methods to define a Plane: Three Points: creates a plane from three user specified points. Point and Normal: defines a plane from one point on the plane and a normal vector to the plane. YZ Plane, ZX Plane and XY Plane: similar to Point and Normal except that the normal is defined to be normal to the indicated plane.
The plane you create passes through the point (0,0,1) and its orientation is normal to the Z axis.
Procedure
1. Select Create > Object > Plane or click Create Plane 2. In the New Plane window type Slice.
CFX-5 Tutorials
Page 37
Master Contents Master Index Help On Help Flow in a Static MixerViewing Results in CFX-Post
3. Click OK. The Geometry, Colour and Render tabs let you switch between settings. 4. In the Object Editor, click the Geometry tab.
1.D.7:
Synopsis
Defining Geometry
Introduction: You need to choose the vector normal to the Plane. You want the Plane to lie in the x-y plane, hence its normal vector points along the z-axis. Any vector which points in the z-direction can be specified, the most obvious being (0,0,1). 1. If required, under Geometry, expand Definition. 2. Under Method select Point and Normal. 3. Under Point enter 0,0,1. 4. Under Normal enter 0, 0,1. 5. Click Apply. Slice displays under User Locations and Plots. However, the slice is not visible in the 3D Viewer due to the current view configuration.
Procedure
1.D.8:
Configuring Views
Introduction: Depending on the view of the geometry various objects may not appear visible because they fall in a two dimensional space that can not be seen.
Synopsis
In order to display the plane the view needs to be modified. Several settings must be changed to display the plane clearly. 1. In the Viewing Tools toolbar, click Isometric View (Z Up) 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. Select Viewer > Rotate or click on the Viewing Tools toolbar. .
Procedure
6. Click and drag the mouse pointer down slightly to rotate the geometry towards you. 7. Click Perspective
Page 38
.
CFX-5 Tutorials
Master Contents
Master Index
8. Click Orthographic from the Viewing Tools toolbar. Orthographic does not consider depth when plotting an image in the Viewer and is the default setting. 9. Click Isometric View (Z Up) in the Viewing Tools toolbar.
1.D.9:
Synopsis
Procedure
1.D.10:
Synopsis
By default, planes are coloured grey. Every graphic object in CFX-Post has a default colour. For details, see "Default Colours" on page 73 in the document "CFX-Post". You can change the colouring of the plane so that a specific colour corresponds to a specific temperature. By drawing faces but not lines the colour is easier to see.
CFX-5 Tutorials
Page 39
Master Contents Master Index Help On Help Flow in a Static MixerViewing Results in CFX-Post Procedure
1. Click the Render tab. 2. Turn on Draw Faces. 3. Turn off Draw Lines. 4. Click Apply. 5. In the Object Editor, click the Colour tab. 6. Set Mode to Variable. You can specify the variable (in this case, Temperature) used to colour the object. The Constant mode allows you to colour the Plane with a fixed colour. 7. Set Variable to Temperature. 8. Click Apply. Hot water (red) enters from one inlet and cold water (blue) from the other.
1.D.11:
Synopsis
Procedure
2. Click the Geometry tab. Review the settings in Definition under Point and under Normal. 3. Select Viewer > Picking Mode, or click Pick From Viewer Selection Tools. in the
4. Click and drag the plane to a new location that intersects the domain. When you release the mouse button, the Object Editor and Viewer update automatically. Note that Point updates with new settings. 5. Set Point settings to 0,0,1. 6. Click Apply. 7. Select Viewer > Rotate or click 8. Turn off visibility for Slice. 9. Click Apply. on the Viewing Tools toolbar.
Page 40
CFX-5 Tutorials
Master Contents
Master Index
1.D.12:
Adding Contours
Introduction: Contours connect all points of equal value for a scalar variable (for example, Temperature) and help to visualise variable values and gradients.
Synopsis
Coloured bands fill the spaces between contour lines. Each band is coloured by the average colour of its two bounding contour lines (even if the latter are not displayed). Important: The colours of 3D graphics object faces are slightly altered when lighting is on. To view colours with highest accuracy, turn off Lighting in the Draw Faces frame on the Render panel (in the Object Editor for the object).
Procedure
1. Select Create > Object > Contour or click Create contour plot 2. Set Name to Slice Contour. 3. Click OK. 4. Under Definition, set Locations to Slice. 5. Set Variable to Temperature. 6. Leave # of Contours (shown at the bottom of the editor) set to 10. 7. Click the Render tab. 8. Turn off Draw Faces. 9. Click Apply to create the contour plot. 10. Turn on Draw Faces. 11. Click Apply.
CFX-5 Tutorials
Page 41
Master Contents Master Index Help On Help Flow in a Static MixerSaving and Restoring Views Using Cameras
1.E:
Synopsis
Working with camera views is particularly useful when working with difficult geometry, or in situations when you repeatedly switch between 2 or more views. To work with cameras, the Camera Tools toolbar is used.
Procedure
1. Select Viewer > Save Camera or click Save Camera . The current view becomes the new default for the selected camera and is displayed in the toolbar. This defaults to Camera1. 2. Reposition, rotate or zoom the geometry in the viewer. 3. Select Viewer > New Camera or click New Camera 4. Click OK. The default name, Camera 5, is used for the new view. 5. Click the Camera Selector in the Camera Tools toolbar. 6. Select Camera 1. The original view is restored. 7. Using the Camera Selector, switch the view back to Camera 5. 8. Select Viewer > Delete Camera or click Delete Camera . When deleting a camera view the 3D viewer displays a default view. 9. Using the Camera Selector, switch the view back to Camera 1. .
Page 42
CFX-5 Tutorials
Master Contents
Master Index
1.F:
Workflow Overview
Do not perform any of the following tasks now. For review purposes only this section provides a brief summary of the topics to follow as a general workflow: 1. "Showing the Animation Editor" on page 43 2. "Creating the First Keyframe" on page 43 3. "Creating the Second Keyframe" on page 44 4. "Viewing the Animation" on page 45 5. "Modifying the Animation" on page 45 6. "Saving to MPEG" on page 47
1.F.1:
Procedure
1. Select Tools > Animation or, on the Tools toolbar, click Show Animation Editor . The Animation Editor can be repositioned as required.
1.F.2:
Synopsis
Procedure
2. Under User Locations and Plots, turn off the visibility of Slice Contour and turn on the visibility of Slice. 3. In the Animation Editor, under Keyframe Creation and Editing, click New . A new keyframe named KeyframeNo1 is created. This represents the current image displayed in the 3D Viewer.
CFX-5 Tutorials Page 43
Master Contents Master Index Help On Help Flow in a Static MixerWorking with Animations
1.F.3:
Synopsis
Procedure
Page 44
CFX-5 Tutorials
Master Contents
Master Index
1.F.4:
Synopsis
The controls previously greyed-out in the Animation Editor 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. The Looping option determines what happens when the animation reaches the last keyframe. When it is set to Loop, the animation repeats itself the number of times defined by Cycles. In this case only one Cycle is played. When Looping is set to Bounce, every other cycle is played in reverse order, starting with the second. See "Animation Editor" on page 150 in the document "CFX-Post" for more details on the Animation Editor.
Procedure
1. Click Play Forward . The animation plays from Frame # 1 to Frame # 22. It plays relatively slowly because the slice plane must be updated for each frame.
1.F.5:
Synopsis
CFX-5 Tutorials
Page 45
Master Contents Master Index Help On Help Flow in a Static MixerWorking with Animations Procedure
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 Editor, 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
Modify Slice > Colour Set the following Range Min Max To this value User Specified 295 [K] 305 [K]
7. Click Apply. 8. In the Animation Editor, click KeyframeNo2. 9. Click Set Keyframe to save the new settings to KeyframeNo2.
Page 46
CFX-5 Tutorials
Master Contents
Master Index
1.F.6:
Saving to MPEG
Introduction: By defining the geometry and then saving to MPEG the results can be shared in a video format.
Procedure
1. Under Playback Options, turn on Save Animation Movie. 2. Click Browse next to MPEG File.
3. Under File name type StaticMixer.mpg. Note that you must type the extension for the file name as it will not be automatically assigned. 4. If required, set the path location to a different folder. 5. Click Save. At this point, the animation has not yet been produced. 6. Click Previous Keyframe . Wait a moment as the display updates the keyframe display. 7. Click Play Forward . 8. If prompted to overwrite an existing movie click Overwrite. The animation plays and builds an mpg file. 9. Click the Options button at the bottom of the Animation Editor. On the Advanced panel, 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. More details about the options on this form can be found in "Animation Editor: Options Dialog Box" on page 154 in the document "CFX-Post".
10. Click Cancel to close the form. 11. Click Close to close the Animation Editor.
1.F.7:
Synopsis
Exiting CFX-Post
Introduction: When finished with CFX-Post exit the current window. Two procedures are documented. Depending on your installation of CFX-5 follow either the Standalone procedure or the Workbench procedure. 1. When you are finished, select File > Quit to exit CFX-Post. 2. Click No if prompted to save.
Page 47
Master Contents Master Index Help On Help Flow in a Static MixerWorking with Animations
1. Before quitting it is advised to return to the Project Page and save the current project. 2. When you are finished, select File > Close to close the current file. 3. Click No if prompted to save. 4. Close the current project. 5. Close Workbench. 6. Review the animation in thirdparty software as required.
Previous Tutorial
Page 48
Next Tutorial
CFX-5 Tutorials