Documente Academic
Documente Profesional
Documente Cultură
TOC-1
Table of Contents
Inventory Number: 002601 1st Edition ANSYS Release: 12.0 Published Date: April 28, 2009 Registered Trademarks:
Workshop Supplement
ANSYS is a registered trademark of SAS IP Inc. All other product names mentioned in this manual are trademarks or registered trademarks of their respective manufacturers.
Disclaimer Notice:
This document has been reviewed and approved in accordance with the ANSYS, Inc. Documentation Review and Approval Procedures. This ANSYS Inc. software product (the Program) and program documentation (Documentation) are furnished by ANSYS, Inc. under an ANSYS Software License Agreement that contains provisions concerning nondisclosure, copying, length and nature of use, warranties, disclaimers and remedies, and other provisions. The Program and Documentation may be used or copied only in accordance with the terms of that License Agreement.
Copyright 2009 SAS IP, Inc. Proprietary data. Unauthorized use, distribution, or duplication is prohibited. All Rights Reserved.
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.
TOC-2
Table of Contents
Workshop Supplement
Workshop 1: Fluid Flow and Heat Transfer in a Mixing Tee Workshop 2: Transonic Flow over a NACA 0012 Airfoil Workshop 3: Room Temperature Study (Parts 1 and 2) Workshop 4: Electronics Cooling with Natural Convection and Radiation Workshop 5: Centrifugal Pump Workshop 6: Modeling of Catalytic Convertor Workshop 7: Tank Flushing
TOC-3
WS1-1
Welcome!
Introductory tutorial for FLUENT
starting from existing mesh (generated in earlier tutorial) model set-up, solution and post-processing
Workshop Supplement
Its a good idea to identify the key simulation outcomes from the start. You can use these to monitor progress of solution.
WS1-2
Start in Workbench
Workshop Supplement
If starting from a ready-made mesh file (*.meshdat), start Workbench and import the file (see screenshot below)
and save the project
WS1-3
Workshop Supplement
You can see that the mesh needs to be updated, because its status icon changes.
WS1-4
FLUENT interface
The main commands are reached from the navigation pane Each item in the navigation pane brings up a new task page. A typical workflow will tackle these in order One or more graphics windows will be available (shown here with reduced size)
Workshop Supplement
The console window displays text, and can accept TUI (Text User Interface) commands
WS1-5
Workshop Supplement
The mesh check ensures that each cell is in a correct format, connected to other cells as expected. It is recommended to check every mesh immediately after reading it. Failure of any check indicates a badly-formed or corrupted mesh, which will need repairs.
Mesh quality is very important to getting a converged, accurate solution. The User Guide suggests that maximum cell squish and skewness should be below 0.95, which the mesh here obeys. The maximum aspect ratio is 34, which is high, but acceptable in inflation layers. If the mesh quality is unacceptable, it is best to remesh the problem before proceeding. There are other possible remedies in FLUENT, such as conversion to polyhedral cells.
April 28, 2009 Inventory #002601
WS1-6
Display geometry
Press Display
Workshop Supplement
select Edge Type to be Feature, and press Display and then Close mesh has scaled, so press Fit to Window
Workshop Supplement
FLUENT stores values in SI units. Most postprocessing can be converted to other units.
WS1-8
Activate models
Double-click (or click and press Edit...) these models:
Energy Equation: On Viscous model: k-epsilon, Realizable
Workshop Supplement
Activating the Energy equation simply says that temperature changes should be simulated in the model.
Turbulence modeling is a complicated area. The choice of model depends on the application. Here, the Realizable k-epsilon model is used. This is an improvement on the well-established Standard k-epsilon model. Accept the remaining default settings.
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.
WS1-9
Workshop Supplement
WS1-10
Workshop Supplement
Alternatively, click once on fluid to highlight it, and then click Edit....
Throughout the problem setup, there are many options and default settings that will not be investigated in this tutorial.
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.
WS1-11
Boundary Conditions
Velocity Magnitude 5m/s Hydraulic Diameter 0.15m Turbulent Intensity 5% Temperature 10C
Workshop Supplement
Inlet flows bring turbulence with them. The quantities depend on the upstream conditions, so they are user inputs. For flow in pipes, turbulent intensity is typically 5% to 10%, and the lengthscale of the turbulence can be deduced from the pipe diameter.
WS1-12
Boundary Conditions
Still in Boundary Conditions: Double-click the zone called inlet-z
Velocity Magnitude 3m/s Hydraulic Diameter 0.10m Turbulent Intensity 5% Temperature 90C
Workshop Supplement
The simulation may predict that flow enters the model through parts of the outlet. This backflow will bring turbulence and energy back into the model, but the model cannot predict how much (because the flow is coming from outside of the model). So, it is necessary to specify backflow conditions. Ideally, the geometry should be selected such that flow enters the model only at well-defined inlets. The backflow settings then do not affect the final solution (although they may be used in intermediate iterations).
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.
WS1-13
Second-order discretization
In Solution methods
Discretization Second Order for pressure Discretization Third Order MUSCL for all other quantities
Workshop Supplement
Discretization schemes define how the solver calculates gradients and interpolates variables to non-stored locations. The default schemes are First Order generally more stable but less accurate than other schemes. Often, users run First Order discretization initially and switch to higher-order schemes for the final solution. This case is simple enough to use higherorder schemes from the start.
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.
WS1-14
Monitors
In Monitors, press Create... for a Surface Monitor
Name p-inlet-y Area-Weighted Average Plot in window 2 Pressure inlet-y
Workshop Supplement
By default, FLUENT reports values of the residuals, which are indications of the errors in the current solution. These should decrease during calculation. There are guidelines on the reductions that indicate a solution is converged. It is also recommended to observe other quantities, chosen to be important in the simulation. In the current case, we will look at pressure drops and temperature as monitors.
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.
WS1-15
Monitors
In Monitors, press Create... for a Surface Monitor
Name p-inlet-z Area-Weighted Average Plot in window 2 Pressure inlet-z
Workshop Supplement
Not the default, 3 (which puts the new monitor in a new window).
Here is an instance where FLUENT does not convert units. Click OK.
WS1-16
Initialization
In Solution Initialization
select Compute from to be inlet-y press Initialize
Workshop Supplement
This computes a value for each variable, based on average conditions in the select zone. This value is used in every cell when you press Initialize.
Initialization creates the initial solution that the solver will iteratively improve. Generally, the same converged solution is reached whatever the initialization, though convergence is easier if they are similar. Basic initialization imposes the same values in all cells. You can improve on this in various ways for example, by patching different values into different zones. Several features, including patching and post-processing, are not available until after initialization.
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.
WS1-17
FMG initialization
Click in the console window, then:
Workshop Supplement
press RETURN to see the TUI (Text User Interface) command menu
to enter the solve sub-menu, type solve and RETURN to go up a level, type q and RETURN to issue a command starting from top level, start the command with / many abbreviations are allowed (try it!)
WS1-18
Calculate
In Run Calculation
press Check Case...
see No recommendations to make at this time
Workshop Supplement
Problem setup has changed the mesh for example, the coordinates changed by scaling. There are many other changes that FLUENT can make for example, adapting the mesh to increase the number of cells where the solution requires it. The link from Mesh to FLUENT in Workbench needs care are you starting a new Problem Setup with a new mesh, or are you finding a new Solution on the old mesh?
WS1-19
Calculating
While calculating, review residuals and monitors
change graphic windows using the drop-down box
Workshop Supplement
An alternative way to stop calculation is to press CTRL-C. In this case, 200 iterations (or fewer) are enough to reach low residuals and stable values of monitors. Most cases require many more.
WS1-20
Preliminary post-processing
Workshop Supplement
The plot appears in the last active graphics window if you dont see it, check the list.
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.
WS1-21
Workshop Supplement
Checking that mass and energy are conserved (to acceptable accuracy) is simple and important.
WS1-22
Exit FLUENT
Exit FLUENT
accept the default, Continue without saving
Workshop Supplement
To adjust conditions in FLUENT, double-click on Solution. If you re-open Setup, the link with the old, unscaled mesh is loaded back in a window will warn you of this.
WS1-23
CFD-Post
The results are loaded CFD-Post displays the outline (wireframe) of the model
viewer toolbar buttons allow you to manipulate the view
Workshop Supplement
WS1-24
Workshop Supplement
accept the default name Contour 1 select Location to be wall fluid, and Variable to be Temperature press Apply
WS1-25
Create a plane
Hide the contour plot by unchecking it in the tree view In the Location menu, select Plane
accept the default name Plane 1 select Method to be YZ Plane, accept X as 0.0, and press Apply
Workshop Supplement
WS1-26
Workshop Supplement
WS1-27
Workshop Supplement
WS1-28
Streamline plot
Hide the vector plot by unchecking it in the tree view Press the Streamline button
select Start from to be inlet y and inlet z in the Symbol tab, select Stream Type to be Ribbon
To select multiple locations, press the Location editor button, and press CTRL while clicking.
Workshop Supplement
Ribbons give a 3-D representation of the flow direction. In the current plot, the colour depends on the flow velocity.
WS1-29
Velocity isosurface
Hide the streamline plot by unchecking it in the tree view In the Location menu, select Isosurface
in the Geometry tab, select Variable to be Velocity and Value to be 7.7 [m s^-1]
Workshop Supplement
The velocity magnitude is greater than 7.7m/s inside the isosurface , and less than that outside it.
WS1-30
Velocity isosurface
Workshop Supplement
This is the end of the tutorial. To be able to revisit this problem, quit CFD-Post and save changes to the project in Workbench.
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.
WS1-31
Further work
Workshop Supplement
There are many ways the simulation in this tutorial could be extended Better inlet profiles
current boundary conditions (velocity inlets) assume uniform profiles specify profiles (of velocity, turbulence, etc), or extend the geometry so that inlets and outlets are further from junction
Mesh independence
check that results do not depend on mesh re-run simulations with finer mesh(es)
generated in Meshing application, or from adaptive meshing in FLUENT
Actually, the current mesh is probably not fine enough one indication of this is that low-order discretization gives different answers. Note that, by default, there is no gravity in the model this is a setting in the General task page.
differences could lead to buoyant forces (with gravity turned on) quite small effects in this case
viscosity, etc
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.
WS1-32
WS2-1
Goals
Workshop Supplement
The purpose of this tutorial is to introduce the user to good techniques for modelling flow in high speed external aerodynamic applications. Transonic flow will be modelled over a NACA 0012 airfoil for which experimental data has been published, so that a comparison can be made. The flow to be considered is compressible and turbulent. The solver used is the density based implicit solver, which gives good results for high speed compressible flows. The tutorial is carried out using FLUENT and CFD Post from within Workbench, but it could also be completed in standalone mode.
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved. April 28, 2009 Inventory #002601
WS2-2
Workshop Supplement
Launch Workbench and save the new project as naca0012 in your working directory. Double-click or drag a FLUENT module from the component systems. Add a results module double click or drag. Drag the mouse from cell A3 (Solution) to B2 (Results) to couple the modules.
WS2-3
Workshop Supplement
Right click on cell A2 (setup) and select import FLUENT case file Change the Files of type to FLUENT mesh file Select the mesh file naca0012.msh
WS2-4
Mesh
Workshop Supplement
FLUENT will launch in a new window. The mesh will read in and display, and the zones will be written out for the Workbench project.
WS2-5
Mesh
Workshop Supplement
The mesh needs scaling, since it was created with lengths in mm. Select General > Scale and observe the current domain extents.
Select Mesh was created in mm. Press Scale Check that the domain extents are as expected. Close the scale panel and select General > Check
Review the text window and check there are no errors. Finally use Report Quality to print out cell quality statistics.
WS2-6
Mesh
Zoom in and examine the mesh.
Workshop Supplement
The maximum aspect ratio in this mesh is quite high (around 7000) This is acceptable because these cells are close to the airfoil wall surfaces. This is needed for the turbulence model being used, since it ensures the first grid point is in the viscous sublayer.
WS2-7
Solver
Select the steady-state density-based solver:
From General in the tree select Type: Density-Based Check time is steady
Workshop Supplement
Materials
Workshop Supplement
Select Change/Create
WS2-9
Operating Conditions
Set the Operating Pressure to Zero:
Workshop Supplement
Absolute pressure is the gauge pressure plus the operating pressure. Setting zero operating pressure means that all pressures set in FLUENT will be absolute. This is the most common practice for compressible flows. Select Cell Zone Conditions > Operating Conditions Set the Operating Pressure to Zero, then OK
WS2-10
Boundary Conditions
Set the upstream boundary conditions:
Workshop Supplement
Select Boundary Conditions > pressure-far-field-1 > edit The pressure-far-field boundary type is applicable only when the density is calculated using the ideal-gas law. It is important to place the far-field boundary far enough from the object of interest. For example, in lifting airfoil calculations, it is not uncommon for the far-field boundary to be a circle with a radius of 20 chord lengths. On the Momentum tab, set the gauge static pressure to 73048 Pa po 1 2 1 = 1 + M We need to input static pressure for a far-field p 2 boundary. We can calculate this from the total pressure, which was atmospheric at 101325 Pa where for the wind-tunnel test. po = total pressure = 101325 Pa In the case of a real external aerodynamic simulation, rather than a wind tunnel, the static pressure (at a p = static pressure given altitude) would actually be the same as the total = 1.4 for air pressure in the far field, because the air in the far field M = Mach No. = 0.7 would be stationary. We have already set the operating pressure to zero, so po = 1.3871 we are now working in absolute pressure values. Hence p p = 73048 Pa the gauge static pressure input will be equal to the absolute static pressure value, which we will calculate to be 73048 Pa.
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.
WS2-11
Boundary Conditions
Workshop Supplement
Set the Mach Number to 0.7 and flow direction components as shown. The angle of attack () in this numerical case is 1.53 deg. The x-component of the flow is cos and the y-component is sin .
It is common practice to adjust the numerical from the experimental in order to match the lift obtained in the wind tunnel, and then to determine the drag associated with this lift. This adjustment of is carried out to counter the effects of the wind tunnel enclosure.
Select Intensity and Length Scale Set an intensity of 0.01% Choose a length scale proportional to the boundary layer thickness. Based on an estimated maximum boundary layer thickness of 50mm*, a suitable length scale is 0.4 x 0.05m = 0.02m
* taken from a previous simulation
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved. April 28, 2009 Inventory #002601
WS2-12
Boundary Conditions
Select the thermal tab.
Workshop Supplement
The wind tunnel operating conditions for validation test data give the total temperature as T0 = 311 K We can therefore calculate the static temperature to be 283.24 K
T0 1 2 = 1+ M T 2 where T0 = total temperatur e = 311 K T = static temperatur e = 1.4 for air M = Mach number = 0.7 T0 = 1.098 and so T = 283.24 K T
April 28, 2009 Inventory #002601
WS2-13
Boundary Conditions
Workshop Supplement
For both walls representing the airfoil, leave the default settings which correspond to a no-slip condition for momentum and adiabatic for thermal.
WS2-14
Reference Values
Workshop Supplement
Set the reference values: These are not used in the actual solution, but are used for reporting coefficients, such as Cp.
Use the freestream conditions as a reference, so choose compute from then select pressure-far-field-1 in the drop down list. Note the reference values for density, enthalpy, pressure, temperature, etc. will update from the freestream values you specified in the pressure-far-field-1 boundary. Set the reference length (which is not updated from the far field boundary values). In this 2D case, we will use the airfoil chord length, of 1m.
WS2-15
Solution Methods
Workshop Supplement
The CFD computation is now defined. However the solver settings need to be modified. These dictate how fast, stable and accurate (within the mesh and BC constraints) the solution will be. Select Solution Methods in the LHS tree.
Keep the default settings for the implicit formulation and Roe-FDS flux type.
The explicit formulation is only normally used for cases where the characteristic time scale is of the same order as the acoustic time scale, for example the propagation of high Mach number shock waves. The implicit formulation is more stable and can be driven much harder to reach a converged solution in less time.
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.
WS2-16
Solution Methods
Change the gradient method to Green-Gauss Node Based.
Workshop Supplement
This is slightly more computationally expensive than the other methods but is more accurate.
WS2-17
Solution Controls
Workshop Supplement
The Courant number (CFL) determines the internal time step and affects the solution speed and stability.
The default CFL for the density-based implicit formulation is 5.0. It is often possible to increase the CFL to 10, 20, 100, or even higher, depending on the complexity of your problem. You may find that a lower CFL is required during startup (when changes in the solution are highly nonlinear), but it can be increased as the solution progresses.
As we will be using automatic solution steering, the choice of CFL at this stage is not important for this case. Keep the default under-relaxation factors (URFs) for the uncoupled parameters.
WS2-18
Solution Monitors
Workshop Supplement
WS2-19
Solution Monitors
Workshop Supplement
Set up a monitor for the drag coefficient on the airfoil. Select both wall zones and toggle on Print, Plot and Write. Remember that is 1.53 so we need to use the force vector as shown. -Lift and drag are defined relative to the wind, not the airfoil.
You can specify which window FLUENT uses to display plots. For now, accept the defaults.
Press OK, then follow the same process to setup a monitor for Lift.
The settings are identical except for the File Name (cl-history instead of cd-history) and the Force Vectors defined as shown here:
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved. April 28, 2009 Inventory #002601
WS2-20
Solution Initialization
Initialize the flow field based on the far-field boundary:
Select Solution Initialization from the model tree Compute from > pressure-far-field-1 Press Initialize.
Workshop Supplement
Solution Steering enables the robust first order discretization in the early-stages of the computation, then blends to the more accurate second order schemes as the solution stabilizes.
Select Run Calculation, and toggle on Solution Steering Change the flow type to transonic and keep default options
Full-Multi-Grid Initialization will compute a quick, simplified solution based on a number of coarse sub-grids. This will then be used as a starting point for the main calculation. FMG can help to get a stable starting point.
WS2-21
Case Check
Use Run Calculation > Check Case
Workshop Supplement
Check the case file and make sure there are no reported issues.
Any potential problems with the case setup will be raised in the case check panel if there are no problems this panel will not appear. In this case there is a recommendation to check the reference values for the force monitors. Since we have already set these we can ignore this warning.
WS2-22
Run Calculation
Workshop Supplement
Although the calculation is ready to compute, It is good practice (but not strictly necessary) to run the FMG and then check the coarse FMG solution before starting the main calculation iterations. Set the number of requested iterations to zero, and press Calculate.
WS2-23
Run Calculation
Workshop Supplement
Check the pressure and velocity contours to make sure that no spurious values are predicted. Go to Graphics and Animations in the LHS tree, choose Contours and Set Up
WS2-24
Run Calculation
Workshop Supplement
Choose Contours of Pressure > Static Pressure and Filled Display. If you need to autoscale the display press <control> A Zoom in as required. Examine the min and max reported values. Repeat for Contours of Velocity> Mach Number.
WS2-25
Run Calculation
Workshop Supplement
There are no spurious results from the FMG, so proceed to the main calculation. Return to Run Calculation in the LHS tree. Change the number of windows to three (for the residual, drag and lift monitors that we set up earlier). Request 900 iterations. Calculate
WS2-26
Run Calculation
After 900 iterations the calculation has fully converged.
Workshop Supplement
Note that the CFL has been updated during the calculation in a number of stages, ramping up from 5 to 200 as we requested. This can be seen in the CFL window and the effect on the residuals is also evident. By the end of the calculation the residuals have converged well and are no longer changing. The drag and lift monitors are also stable.
WS2-27
Workshop Supplement
The contour will display in the active window (click a window to activate). Alternatively, use the drop down menu to return the display to a single window as shown here
WS2-28
Workshop Supplement
Plot contours of Velocity > Mach Number and notice that the flow is now locally supersonic.
WS2-29
Workshop Supplement
Select Plots in the LHS menu. Plot Pressure Coefficient along the top and bottom airfoil surfaces.
WS2-30
Workshop Supplement
Compare experimental pressure coefficient plots which we can import and plot here alongside the numerical prediction. Click on Load File and browse for the files in your directory.
WS2-31
Workshop Supplement
Once loaded, plot the CFD and experimental Cp plots together. A good agreement can be seen.
WS2-32
Workshop Supplement
In order to obtain a good drag prediction, and for the turbulence model to work effectively, we need to have a mesh that is well resolved near to the wall, such that the first grid point is in the viscous sub-layer. Ideally we want a Y+ value of 1 or less. Plot Turbulence > Y+, along both of the airfoil walls.
Deselect the Pressure Coefficient File Data.
WS2-33
Workshop Supplement
Compare the predicted Cl and Cd against the experimental values. From Reference 1
Cl = 0.241 and Cd = 0.0079
WS2-34
Post Processing
Save the project from the FLUENT file menu .
Take the middle option Continue after replacing settings file)
Workshop Supplement
Close FLUENT (File > Close FLUENT) Additional post-processing will now be performed in CFD Post. Return to the Workbench Project window. Click on Update Project and notice the Results panel update. Right click on cell B2 (Results) and select edit. This will launch CFD Post.
WS2-35
Post Processing
Workshop Supplement
Note that CFD Post works in 3D, so a unit thickness will be added to the 2D airfoil, with symmetry side boundaries.
WS2-36
Post Processing
Top menu > Insert > Contour
Workshop Supplement
Insert a new Contour and accept the default name Contour 1 Choose the location as symmetry-1 Choose the variable to be pressure and Apply (zoom in)
WS2-37
Post Processing
Workshop Supplement
A useful feature in CFD Post is the ability to compare two different sets of CFD data.
Verify that the file NACA0012-mach-0.5-conv.dat.gz is in your working directory. File > Load Results Browse to your working directory. Under Case options make sure keep current cases loaded is checked. Open the File NACA0012-mach-0.5-conv.dat.gz.
Click OK if an Information/Warning dialog box appears.
We now have two data sets loaded and can do a case comparison.
WS2-38
Post Processing
Workshop Supplement
Make sure that two windows are open, and select the respective cases in a different window. Lock the views so they are synchronised.
WS2-39
Post Processing
Workshop Supplement
Toggle on location Symmetry 1 in each case. Select Contour 1 and apply. We can compare the two pressure plots.
WS2-40
Post Processing
Workshop Supplement
Finally, we can plot the difference between the two. In the Outline view, double-click Case Comparison. The Case Comparison details view appears. Select Case Comparison Active and click Apply. A third viewport opens that displays the pressure difference between the two cases.
WS2-41
Summary
Workshop Supplement
In this tutorial we have used FLUENT within a Workbench project to compute the transonic, compressible flow over a naca0012 airfoil. We have imported a mesh that was generated in Gambit. We have used the density based solver with solution steering. We have compared the results to published experimental data and seen good agreement. We have seen how FLUENT can be linked to CFD Post in a Workbench project, and we have explored some of the features within CFD Post.
WS2-42
References
Workshop Supplement
T.J. Coakley, Numerical Simulation of Viscous Transonic Airfoil Flows, NASA Ames Research Center, AIAA-87-0416, 1987. C.D. Harris, Two-Dimensional Aerodynamic Characteristics of the NACA 0012 Airfoil in the Langley 8-foot Transonic Pressure Tunnel, NASA Ames Research Center, NASA TM 81927, 1981.
WS2-43
WS3-1
Introduction
Workshop Supplement
In this introductory workshop you will be analyzing the effect of computers and workers on the temperature distribution in an office. In the first stage, the simulation of airflow through the duct will be carried out and then the outlet conditions for the duct will be saved and provided as the profile data for the inlet condition(s) of the room
WS3-2
Workshop Supplement
Inlet Vent 2
Vent 1
Inlet
WS3-3
Workshop Supplement
1. Open the Workbench (Start > Programs > ANSYS 12.0 > ANSYS Workbench) 2. Drag FLUENT into the project schematic 3. Change the name to Duct 4. Double click on Setup 5. Choose 3D and Double Precision under Options and retain the other default settings
WS3-4
Import Mesh
Workshop Supplement
This starts a new FLUENT session and the first step is to import the mesh that has already been created: 1. Under the File menu select Import> Mesh 2. Select the file duct.msh and click OK to import the mesh 3. After reading the mesh, check the grid using Mesh>Check option or by using Check under Problem Setup>General
WS3-5
Workshop Supplement
1. Select Pressure Based, Steady state solver Problem Setup>General>Solver 2. Specify Turbulence model Problem Setup > Models > Viscous Double click and Select k-omega (2 eqn) under Model and SST under k-omega model and retain the default settings for the other parameters
3. Make sure that the Energy Equation is disabled Problem Setup > Models> Energy
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.
WS3-6
Materials
Workshop Supplement
Define the materials. Problem Setup > Materials 1. Double click on air to open Create/Edit Materials panel 2. By default, Density and Viscosity of air are set as 1.225 kg/m3 and 1.7894e-05 kg/(m-s) respectively 3. Retain those values and close the panel
WS3-7
Operating Conditions
Workshop Supplement
Under Problem Setup >Cell Zone Conditions (operating conditions are also in BC panel) Click on Operating Conditions and set the Operating Pressure (Pascal) to 101325
WS3-8
Boundary Conditions
Under Problem Setup > Boundary Conditions
Workshop Supplement
1.Select inlet under Zone and choose Pressure-Inlet from the drop down menu under Type 2.Now double click on inlet under Zone Input all the parameters in Momentum tab as shown below
WS3-9
Boundary Conditions
Under Problem Setup > Boundary Conditions
Workshop Supplement
1.Select vent1 under Zone and choose mass-flow-inlet from the drop down menu under Type 2.Now double click on vent1 under Zone Input all the parameters in Momentum tab as shown below
WS3-10
Boundary Conditions
Under Problem Setup > Boundary Conditions
Workshop Supplement
1.Select vent2 under Zone and choose mass-flow-inlet from the drop down menu under Type and set the conditions similar to that of vent1
NOTE: Under the Direction Specification Method, we may also use Outward Normal condition for both the vents
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.
WS3-11
Solution Methods
Set the Solution methods which decides the Pressure-Velocity coupling. Under Solution>Solution Methods setup the parameters as shown in the image.
Workshop Supplement
WS3-12
Solution Controls
Workshop Supplement
WS3-13
Monitors
Residual Monitoring Solution > Monitors 1.Double click on Residuals (By default it is on)
Workshop Supplement
2.Enable Plot under Options. Deselect Check Convergence for all the variables.
WS3-14
Workshop Supplement
Monitor points are used to monitor quantities of interest during the solution. They should be used to help judge convergence. In this case you will monitor the Velocity of the air that exits through the door. One measure of a converged solution is when this air has reached a steadystate temperature. Solution > Monitors > Surface Monitors 1. Click on Create to create a new surface monitor 2. Type velocity-monitor under Name 3. Enable Printing and Plotting of monitors by marking check boxes under Options 4. Select Area-Weighted Average from the drop-down menu under Report Type 5. Select Velocity as the Field Variable and select Velocity Magnitude under Velocity variable
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.
WS3-15
Monitors
6. Select one of the vents as the Surfaces to be monitored 7. Click on OK to create the monitor and to close the panel
Workshop Supplement
We can also write the above values to a file by clicking the check box next to Write.
April 28, 2009 Inventory #002601
WS3-16
Workshop Supplement
You can now save the project and proceed to write a case file for the solver: 1. To save the project File>Save Project 2. To write the case files File>Export>Case..
WS3-17
Initialization
Workshop Supplement
Before starting the calculations we must initialize the flow field in the entire domain Solution > Monitors > Solution Initialization 1.Initializing the flow field with near steady state conditions will result in faster convergence 2.In this case, from the flow rate and the area of the duct we can get an estimate of the velocity at steady state 3.Click on Initialize to initialize the solution
WS3-18
FMG Initialization
Workshop Supplement
Flow convergence can be accelerated if a better initial solution is used at the start of the calculation. The Full Multigrid initialization (FMG initialization) can provide this initial and approximate solution at a minimum cost to the overall computational expense. Note: FMG initialization is not available through GUI 1.Press <Enter> in the console to get the command prompt ( >). 2.Enter the text commands and input responses outlined in green, as shown, accepting the default values by pressing <Enter> when no input response is given Note: The FMG initialized flow field can be inspected using FLUENT's postprocessing tools.
WS3-19
FMG Initialization
Workshop Supplement
WS3-20
Run Calculations
Workshop Supplement
The solution process can be started in the following manner Solution >Run Calculation Enter 200 for Number of Iterations and click on Calculate During the iteration process, both the residual plot and monitor plots will be shown in different windows. If the velocity monitor is not changing we can stop the iterations. You may specify further iterations if the monitors are still changing significantly. The magnitude of change of a monitor per iteration can be observed from the console (enabled by clicking on Print to Console while creating the monitor)
Note: Iterations can be stopped in between using the Cancel button.
WS3-21
Workshop Supplement
The results included are obtained after running for 370 iterations.
WS3-22
Workshop Supplement
We can check the mass balance at the inlet and outlet boundary as follows: Results > Reports> Fluxes 1.Click on Setup 2.A new dialogue box for Flux Reports will come 3.Select Mass Flow Rate under Options 4.Select inlet, vent1,vent2 together under Boundaries 5.Click on Compute 6.Mass flow rate on all these boundaries will be printed and we can see that the Net Results is in the order of e-06 which indicates very good convergence
WS3-23
Workshop Supplement
We need to export the outflow velocity profile at the Vents to provide the same as an input for the room case. Exporting the Profile: 1.Export the velocity profile at vent1 from the file menu File>Export>Profile 2.Select vent1 from Surfaces 3.Select X,Y,Z Velocity and Turbulent Kinetic energy(k) and Specific dissipation rate (Omega)as the Values to be exported 4.Save the file as vent1.prof
WS3-24
Workshop Supplement
4. Similarly export the Velocity profile of vent2 and save the file as vent2.prof
WS3-25
Workshop Supplement
You can now save the project and proceed to write a case file for the solver: 1. To save the project File>Save Project 2. To write the case/data files File>Export>Case & Data..
WS3-26
WS3-27
Workshop Supplement
The operating conditions for the flow at room are: The working fluid is Air Worker Temperature = 310 K Computer Monitor Temperature = 303 K Computer Vent: 0.033 kg/s @ 313 K (per computer) Ceiling Vents: profile data, Temperature=294 K
WS3-28
Workshop Supplement
Vent 2
Outlet
Vent 2 Workers
Monitors
Computer CPU
WS3-29
Workshop Supplement
Return to the Project window Drag FLUENT into the Project Schematic Change the name to Room Double click on Setup Choose 3D and Double Precision under Options and retain the other default settings
WS3-30
Import Mesh
Workshop Supplement
This starts a new FLUENT session and the first step is to import the mesh that has already been created: 1. Under the File menu select Import> Mesh 2. Select the file duct.msh and click OK to import the mesh 3. After reading the mesh, check the grid using Mesh>Check option or by using Check under Problem Setup>General
WS3-31
Workshop Supplement
Read the profile files that were written in the Ducts case at Vent Boundaries
1.Under the File menu select Read> Profile 2.Select the file vent1.prof and click OK to read the profile 3.Similarly read vent2.prof file
WS3-32
Models
1. Select Pressure Based, Steady state solver Problem Setup>General>Solver 2. Specify turbulence model Problem Setup > Models > Viscous Double click and Select k-omega (2 eqn) under Model and SST under komega model and retain the default settings for the other parameters 3. Enable the Energy Equation. Problem Setup > Models> Energy
Workshop Supplement
WS3-33
Materials
Workshop Supplement
Define the materials. Problem Setup > Materials 1. Double click on air to open Create/Edit Materials panel 2. Select incompressible-ideal-gas from the dropdown menu of Density 3. Retain other default values of Specific heat and Viscosity. Select Change/Create to implement the changes then Close
NOTE: The incompressible ideal gas law for density is used when pressure variations are small enough that the flow is fully incompressible but you wish to use the ideal gas law to express the relationship between density and temperature
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved. April 28, 2009 Inventory #002601
WS3-34
Operating Conditions
Workshop Supplement
Problem Setup >Cell Zone Conditions Click on Operating Conditions and set the Operating Pressure (Pascal) to 101325 Enable Gravity and specify Z-component of Gravitational Acceleration as -9.81 m/s2 Enter Operating Density as 1.225 kg/m3
Note: Enabling gravity will allow the solver to take into account the buoyancy effect due to the change in the density of the air.
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.
WS3-35
Boundary Conditions
Under Problem Setup > Boundary Conditions
Workshop Supplement
1.Select vent1 under Zone and choose velocity-inlet from the drop down menu under Type. For this boundary we will specify the parameters using the previously read profile file 2.Now double click on vent1 under Zone 3.Go to Momentum tab, set Components as Velocity Specification Method 4.Select vent1 x-velocity from the dropdown menu for X-Velocity. (make sure you select the velocity variable vent1 x-velocity not the grid variablevent1 x. Do likewise for all the other variables (y-velocity, zvelocity, turbulent kinetic energy and specific dissipation rate).
WS3-36
Boundary Conditions
Under Problem Setup > Boundary Conditions
Workshop Supplement
6.Similarly, select vent2 under Zone and set all the quantities. This time choose the profile quantities starting with vent2
WS3-37
Boundary Conditions
Under Problem Setup > Boundary Conditions
Workshop Supplement
1.Select outlet under Zone and choose Pressure-outlet from the drop down menu under Type. For this boundary we will specify the parameters using the previously read profile file 2.Now double click on outlet under Zone 3.Go to Momentum tab, set Gauge Pressure (Pascal) as 0 4.Set the backflow conditions for the turbulence quantities to have a Backflow Turbulent Intensity and Backflow Turbulent Viscosity Ratio of 5% and 5 respectively
5.In the Thermal tab, set a constant Backflow Total Temperature of 294 K
WS3-38
Boundary Conditions
Under Problem Setup > Boundary Conditions
Workshop Supplement
1.Select computer1intake under Zone and choose Mass-Flow inlet from the drop down menu under Type. 2.Set the Mass Flow Rate as 0.033 kg/s and keep the Direction Specification
Method as Outward Normals
WS3-39
Boundary Conditions
Workshop Supplement
To save time, the conditions for computer1 can be copied over to the boundary conditions for the other 3 computers in the simulation. 1. Make sure that the inlets for the other computers are all of type massflow-inlet
2. In the Boundary Conditions Panel, click the Copy... button. This will open the Copy BCs panel 3. In the From Zone list, select the zone that has the conditions you want to copy: computer1intake 4. In the To Zones list, select the zones to which you want to copy the conditions to: computer2intake, computer3intake, computer4intake 5. Click Copy. FLUENT will set all of the boundary conditions for the zones selected in the To Zones list to be the same as the conditions for the zone selected in the From Zone list.
WS3-40
Boundary Conditions
Under Problem Setup > Boundary Conditions
Workshop Supplement
1.Repeat the instructions on the previous 2 slides in order to set the conditions for the computer vents. 2.So, first make sure all vents are of type mass-flow-inlet. 3.Set the conditions for computer1vent as in the image below. 4.In the Thermal tab, set a constant temperature of 313 K 5.Copy this boundary condition from computer1vent to the other 3 computers.
WS3-41
Boundary Conditions
Under Problem Setup > Boundary Conditions
Workshop Supplement
1.Select monitors under Zone and choose wall from the drop down menu under Type. 2.Now double click on monitors under Zone 3.Go to Momentum tab, set it as Stationary wall with No Slip 4.In the Thermal tab, set a constant Temperature of 303 K
WS3-42
Workshop Supplement
1.Select workers under Zone and select wall from the drop down menu under Type. 2.Double-click on workers under Zone. 3.On the Momentum tab, specify a stationary wall with no slip. 4.On the Thermal tab, set a constant wall temperature of 310 K.
WS3-43
Workshop Supplement
Under Solution>Solution Methods setup the parameters as described below Select Coupled Scheme
WS3-44
Solution Controls
Under Solution>Solution Controls 1. Set a Courant Number of 100 with Explicit Relaxation Factors for Momentum and Pressure as 0.25 each 2. Set Under Relaxation Factors of Density, Body Forces, Turbulent Kinetic Energy, Turbulent Viscosity and Specific Dissipation Rate as 0.5 each 3. Keep an Under Relaxation Factor of 1.0 for Energy
Workshop Supplement
WS3-45
Monitors
Residual Monitoring Solution > Monitors 1. Double click on Residuals (By default it is on)
Workshop Supplement
2. Enable Plot under Options. Deselect Check Convergence for all the variables.
WS3-46
Workshop Supplement
Solution > Monitors > Surface Monitors 1. Click on Create to create a new surface monitor 2. Type temperature-monitor under Name 3. Enable Printing and Plotting of monitors by marking check boxes under Options 4. Select Area-Weighted Average from the drop-down menu under Report Type 5. Select Temperature as the Field Variable and select Static Temperature under Temperature
WS3-47
Monitors
Workshop Supplement
6. Select outlet under Surfaces 7. Click on OK to create the monitor and to close the panel
WS3-48
Workshop Supplement
You can now save the project and proceed to write a case file for the solver: 1. To save the project File>Save Project 2. To write the case files File>Export>Case..
WS3-49
Workshop Supplement
WS3-50
Run Calculations
Workshop Supplement
The solution process can be started in the following manner Solution >Run Calculation Enter 100 for Number of Iterations and click on Calculate Monitor the solution and see if the Temperature monitor is not changing further. You can instruct FLUENT to perform more iterations if the monitors are still changing significantly. You can stop iterating if the monitors are stabilized.
WS3-51
Workshop Supplement
The results included are obtained after running for 554 iterations.
WS3-52
Workshop Supplement
You can now save the project and proceed to write a case file for the solver: 1. To save the project File>Save Project 2. To write the case/data files File>Export>Case & Data..
WS3-53
Post processing(1)
Workshop Supplement
We can create isosurfaces at various locations of the domain to examine the results at any location within the domain, not just at the boundaries. An isosurface can be created in the following manner: 1.Select Surface>Iso-surface from the toolbar 2.Select Mesh under Surface of constant drop down menu and select YCoordinate under Mesh If we click on Compute it will report the minimum and maximum values 3.Enter 2.4 under Iso-Values 4.Specify a surface name under New Surface Name 5.Clicking Create will generate the new surface You may want to create more iso-surfaces at different critical locations to observe different parameters.
WS3-54
Post processing(2)
Workshop Supplement
Display the contours of Temperature: Go to Results > Graphics and Animation Select Contours under Graphics and click on Set Up Select Contours of Temperature then Static Temperature Select the Surfaces on which we wish to see the temperature Zoom into the area of interest by using middle mouse button Overlay a wireframe representation of the room: On the Contours Panel, Check the Draw Mesh box. Select Edges (not Faces), and Outline. Under Surface Types, select Wall which will select all the walls. Display then Close (mesh display panel) : Display (contours panel) Display the Vectors of Velocity: Go to Results > Graphics and Animation Select Vectors under Graphics and click on Set Up Change the Scale to 15, and plot on the surface of interest.
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.
WS3-55
Post processing(3)
Workshop Supplement
We can also find out the Maximum and Minimum of a variable in the following way Go to Results > Reports>Volume Integrals Select Maximum under Report Type Select Temperature under Field Variable followed by Static Temperature Select fluid-19 under Cell Zones On clicking Compute, the maximum value of the Temperature is calculated.
Note: The location of Maximum temperature, say, can be found out by creating an iso-surface of temperature in the same process as mentioned in the slide-54
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.
WS3-56
Post processing(4)
Workshop Supplement
Plane location
WS3-57
Results Summary
Workshop Supplement
Mass Weighted Average of Temperature at Outlet: 298.02K Minimum temperature in the domain: 293.6K Maximum temperature in the domain: 313.1K (at the region near the outlet of Computer2vent) Mass Weighted Average of Velocity at Outlet: 0.697 m/s
WS3-58
Workshop Supplement
Following steps can be done so as get the flow patterns at various planes etc. 1.Observe the density variation at various planes 2.Create a streamline from each of the vents 3.Animate the streamlines 4.Create an isosurface based on different temperatures
WS3-59
WS4-1
Goals
In this workshop, you will model the heat dissipation from a hot electronics component fitted to a printed circuit board (PCB) via a finned heat sink. The PCB is fitted into an enclosure which is open at the top and bottom. Initially only the heat transfer via convection and conduction will be calculated. The effect of thermal radiation will then be included as a later stage.
Workshop Supplement
WS4-2
Workshop Supplement
This workshop can be done either inside or outside of ANSYS Workbench. If working outside of Workbench, you should skip this page.
Open a new Workbench session and select a new FLUENT session from Component Systems Use Save As to save the session. Import the the mesh file.
Right-click on the Setup cell. Change Files of Type to Fluent Mesh File Select the mesh file heatsink.msh Click Open.
Drag
Workshop Supplement
Open the file heatsink.msh Check the grid to verify that there are no errors in the mesh.
WS4-4
April 28, 2009 Inventory #002601
Workshop Supplement
Select the Lights button, and turn on headlight. Make the outer walls transparent
Use Scene button Select wall_left, wall_right and wall_top Select Display and set transparency to roughly 50 Apply and close Display Property panel Apply and close Scene Description panel
WS4-5
Model setup
1. Display the mesh and adjust the display settings.
a) Highlight Mesh and click Setup.
i. Select Feature and Edges. Set Edge Type to Feature. ii. Deselect all currently selected faces iii. Select Surface Types Wall, Pressure Outlet and Velocity Inlet (note effect on Surfaces list) iv. Select Colors and Color by ID. v. Click Display
Workshop Supplement
Workshop Supplement
It is good practice to display the grid after import to check for any boundary zone misassignment and that you have opened the correct model. Workbench uses SI units (meters, kg etc) but if importing a mesh from another source check the scale and dimensions are correct. Check mesh is used to confirm the mesh is suitable for use in a CFD simulation. Report Quality is a backup to the quality tools available within the meshing application.
By default the energy equation is not solved to reduce CPU load because many problems are isothermal. In this case, temperature must be calculated so the energy equation needs to be enabled. The onset of turbulence is specified by the Reynolds Number (pipe flow) or Rayleigh Number (natural convection). Calculating these numbers using boundary conditions indicates that the flow will be laminar.
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.
WS4-7
Material properties
The air density needs to change with temperature (but not pressure)
Select Materials Air Create/Edit Change density to incompressible ideal gas All other properties remain unchanged Click Change / Create then close the fluid materials window.
Workshop Supplement
Define two additional solid materials (for the board and the heat sink).
Select Materials Solid Create/Edit Click the FLUENT Database button. Change Type to Solid Select Copper Copy then close the database window
WS4-8
April 28, 2009 Inventory #002601
Material properties
The PCB is made of material Fr-4.
Change Name to fr-4 Delete the chemical formula All other properties remain unchanged Click Change/Create. Click No when prompted to overwrite copper.
Selecting No will create a new material Fr-4, but copper remains in the material list. Selecting Yes will overwrite the copper material for the current case only.
Workshop Supplement
The heat sink is made of a different material (named Component for this simulation).
Select solid material Copper Change Name to component Delete the chemical formula Select Change/Create. Select Yes when prompted to overwrite copper.
WS4-9
April 28, 2009 Inventory #002601
Workshop Supplement
In most natural convection problems the change of density with temperature drives the flow. The changes in pressure over the domain are minimal, and their effect on density negligible, hence the incompressible ideal gas density formulation can be used instead of fully compressible ideal gas. The FLUENT database contains basic properties for many materials. These are generally set to the standard STP/RTP values, but always check these are suitable before proceeding. Additional materials can be added to the database; refer to the user documentation. It is often easier to copy a material from the database and then modify it; alternatively, you can modify the default material of aluminium and then choose to not overwrite.
WS4-10
Workshop Supplement
WS4-11
Workshop Supplement
WS4-12
Workshop Supplement
WS4-13
Workshop Supplement
WS4-14
Workshop Supplement
WS4-15
Workshop Supplement
Boundary zones
Inlet and Outlet pressure set to 0 Pa gauge, as it is at the operating pressure position.
Volume data
The volume of an entity can be requested in the Volume Integrals panel. Note that the solution must be initialized before the volume integrals are enabled.
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.
WS4-16
Workshop Supplement
Here, adiabatic conditions have been set for the external walls. However if needed, FLUENT can model the external boundary in several different ways, including:
Known heat flux (W/m2) Known heat transfer coefficient (eg for natural convection from a vertical plate) Heat transfer through radiation (by setting emissivity and temperature). Note this is not related to radiation models available within FLUENT Shell conduction in the outer wall (hence fields for material and wall thickness)
Interior boundaries:
In this example, there are two cell zones, fluid and solid_board Just one label wall_board was created at the pre-processing stage for the surface common to these two zones. When loading the mesh, FLUENT creates a clone: wall_board_shadow Open up the boundary conditions for these surfaces and observe that:
wall_board wall_board_shadow has the adjacent cell zone fluid has the adjacent cell zone solid_board
WS4-17
Solver controls
Workshop Supplement
Run calculation
Request 50 iterations and click Calculate. The solution should only take a few minutes to complete.
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.
WS4-18
Workshop Supplement
The solver settings are tuned for an overall robust solution of most situations. In this model we require the Body Force Weighted pressure scheme to account for the natural convection effects. Once the solution has begun to (or has) converge the momentum and energy equations should be switched to second order to improve the accuracy of the solution. You may wish to do this later if time permits. The momentum within the model is relatively low so reducing the momentum under-relaxation factor is also recommended. Solution initialization is used to provide the first guess prior to the first solver iteration; and it should be as close to the final solution as practical.
WS4-19
Quick post-processing
Check overall heat and mass balances.
Reports > Fluxes > Set Up Select the Inlet and Outlet surfaces, then click Compute.
The net imbalance mass flux is shown under Net Results. Note that the net imbalance is very small.
Workshop Supplement
Switch to Total Heat Transfer Rate. Select all walls, the inlet, and the outlet and click Compute.
Note that the difference roughly equals the energy source input to the package (75W). If the model were fully converged, this value would be exact.
WS4-20
Quick post-processing
Create Contour plot:
(Graphics and Animations > Contours > Setup) Select the user surface zz-x-midplane Check Filled Select contours of TemperatureStatic Temperature Select Display Zoom in with the mouse to see the result
Workshop Supplement
Repeat changing the plot variable to Velocity Velocity Magnitude Optional step:
To change the number format use Display > Colormap from the top menu, and change to float
WS4-21
Workshop Supplement
The purpose of the Workbench structure is to simplify the file structure, and reduce the risk of stray files on the hard drive. Part of this workshop is to allow the comparison of the results both with and without radiation active. To retain this set of results use the top menu to:
If using FLUENT standalone
File Write Case & Data
TIP
Adding the .gz extension will compress the case and data files, reducing hard disk usage! You do not need to uncompress the files when opening them later.
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.
WS4-22
Workshop Supplement
In the Radiation model panel Compute/Write the S2S calculation. Enter a filename. (Calculating the view factors will take a few minutes). Click OK when the S2S view factor calculation is complete.
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.
WS4-23
Workshop Supplement
The model uses a ray tracing method, and this calculation is completed prior to the main solution. Thus whist the set-up may take slightly longer (due to view factor calculation time) than the alternatives the overall solution time is reduced. The method determines the view factor from each wall (or boundary) surface facet (mesh cell) to every other facet. Clustering is then used to reduce the number of facet calculations needed in the actual solution. Here neighbouring facets are grouped together based on the number set and geometric factors. The User documentation contains full details of the model.
WS4-24
Workshop Supplement
WS4-25
Workshop Supplement
WS4-26
Workshop Supplement
Solve the flow field again (this time radiation is enabled) for a further 500 iterations. If you are short of time you may want to stop the solution prematurely and proceed to the post-processing
WS4-27
Workshop Supplement
WS4-28
Workshop Supplement
Drag and connect a Results icon from Component Systems in Workbench. Connect the FLUENT solution panel to Results Double click and open the Results section (lower cell). This opens Post with the result of the radiation calculation as FLU
WS4-29
Case Comparison
The case comparison tool allows two different setups to be shown side by side and any differences between the two cases identified. We will compare the latest results (with radiation) with those saved earlier (no radiation) File Load Results and select the non-radiation case saved earlier. Select Keep Current Cases Loaded, then Open From the toolbar, select the Case Comparison Icon: In the Case Comparison details, check the box Case Comparison Active and check that:
Case 1 is the most recent results FLU (with radiation) Case 2 is the file saved earlier (no radiation) Apply.
Workshop Supplement
WS4-30
Displaying Temperature
Temperature will be a key variable for any electronics cooling application so it will be displayed in several locations, such as within the flow, on the surfaces of the solid region and by extracting the maximum temperature within the component. Create a YZ plane using Insert-Location-Plane:
Call it Center Located at X=0 Color it using the variable Temperature.
Workshop Supplement
WS4-31
Reporting Temperature
Move to the function calculator using the icon on the toolbar. Set the options to maxVal, solid_heatsource, All Cases, Temperature. Note that with radiation, the temperature in the solid is significantly lower than when radiation was not included. The cooling of the component is mirrored with an increase in the temperature of the walls around the fluid zone. This can be seen if you plot the temperature on the walls or use the Function Calculator with the areaAve function.
Workshop Supplement
WS4-32
Flow Displays
Workshop Supplement
To show the flow patterns a range of methods can be used including streamlines, vector plots and isosurfaces. Insert an isosurface using Insert-Location-Isosurface and set the Variable to Velocity with a value of 0.5[m s^-1]. Gradually reduce the value to 0.2 and notice that for the radiation case higher speed flow can be observed close to the fluid walls as well as the PCB. Insert a vector plot using Insert-Vector or click on . Set the location to Center. Change the sampling to Equally spaced with 1000 points. If you wish to see the pattern in the slow speed sections try going to the Symbol tab and select Normalize Symbols. Insert streamlines using Insert-Streamlines or by clicking on . Set Start From to be inlet. Apply 100 equally spaced points and set the Direction to Forward and Backward.
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.
WS4-33
WS5-1
Introduction
The Purpose of the tutorial is to model fluid flow in a centrifugal pump, which involves the use of rotation model. Problem consists of a five blade centrifugal pump operating at 2160 rpm. The working fluid is water and flow is assumed to be steady and incompressible. Due to rotational periodicity a single blade passage will be modeled.
Workshop Supplement
WS5-2
Workshop Supplement
1. Open the Workbench (Start > Programs > ANSYS 12.0 > ANSYS Workbench) 2. Drag FLUENT into the project schematic 3. Change the name to Duct 4. Double click on Setup 5. Choose 3D and Double Precision under Options and retain the other default settings
WS5-3
Import Mesh
Workshop Supplement
This starts a new Fluent session and the first step is to import the mesh that has already been created: 1. Under the File menu select Import> Mesh 2. Select the file tfa-pump-lite-cav-300k.msh and click OK to import the mesh 3. After reading the mesh, check the grid using Mesh>Check option or by using Check under Problem Setup>General
WS5-4
Workshop Supplement
Select Pressure Based, Steady state solver Problem Setup>General>Solver Specify Turbulence model Problem Setup > Models > Viscous Double click and Select k-epsilon (2 eqn) under Model and Realizable under k-epsilon model and retain the default settings for the other parameters
3. Make sure that the Energy Equation is disabled Problem Setup > Models> Energy
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.
WS5-5
Materials
Workshop Supplement
Define the materials. Problem Setup > Materials 1. Click on air to open Create/Edit Materials panel 2. Change Name to water and Density and Viscosity to 1000 kg/m3 and 0.001 kg/(m-s) respectively 3. Click on Change/Create 4. Click on Yes, on being asked for Change/Create mixture and Overwrite air
WS5-6
Workshop Supplement
Under Problem Setup >Cell Zone Conditions (operating conditions are also in BC panel) double click on Fluid
Select Material Name : water Select Motion Type: Moving Reference Frame Specify Rotational Velocity : 2160 rpm Click on OK
WS5-7
Operating Conditions
Workshop Supplement
Under Problem Setup >Cell Zone Conditions (operating conditions are also in BC panel) Click on Operating Conditions and set the Operating Pressure (Pascal) to 0
WS5-8
Boundary Conditions
Under Problem Setup > Boundary Conditions
Workshop Supplement
1.Select inlet under Zone and choose velocity-inlet from the drop down menu under Type 2.Now double click on inlet under Zone Input all the parameters in Momentum tab as shown below
WS5-9
Boundary Conditions
Under Problem Setup > Boundary Conditions
Workshop Supplement
1.Select outlet under Zone and choose pressure-outlet from the drop down menu under Type 2.Now double click on outlet under Zone Input all the parameters in Momentum tab as shown below
WS5-10
Boundary Conditions
Under Problem Setup > Boundary Conditions
Workshop Supplement
1.Select blade under Zone and choose wall from the drop down menu under Type 2.Now double click on blade under Zone Input all the parameters in Momentum tab as shown below
WS5-11
Boundary Conditions
Under Problem Setup > Boundary Conditions
Workshop Supplement
1.Select hub under Zone and choose wall from the drop down menu under Type 2.Now double click on hub under Zone Input all the parameters in Momentum tab as shown below
WS5-12
Boundary Conditions
Under Problem Setup > Boundary Conditions
Workshop Supplement
1.Select shroud under Zone and choose wall from the drop down menu under Type 2.Now double click on shroud under Zone Input all the parameters in Momentum tab as shown below
WS5-13
Boundary Conditions
Under Problem Setup > Boundary Conditions
Workshop Supplement
1.Select hub-outer under Zone and choose wall from the drop down menu under Type 2.Now double click on hub-outer under Zone Input all the parameters in Momentum tab as shown below
WS5-14
Boundary Conditions
Under Problem Setup > Boundary Conditions
Workshop Supplement
1.Select inlet-shroud under Zone and choose wall from the drop down menu under Type 2.Now double click on inlet-shroud under Zone Input all the parameters in Momentum tab as shown below
WS5-15
Boundary Conditions
Under Problem Setup > Boundary Conditions
Workshop Supplement
1.Select shroud-outer under Zone and choose wall from the drop down menu under Type 2.Now double click on shroud-outer under Zone Input all the parameters in Momentum tab as shown below
WS5-16
Boundary Conditions
Under Problem Setup > Boundary Conditions
Workshop Supplement
1.Select periodic.10 under Zone and choose periodic from the drop down menu under Type 2.Now double click on periodic.10 under Zone Select Periodic Type: Rotational Click on OK 3.Select periodic.10 under Zone and choose periodic from the drop down menu under Type 4.Now double click on periodic.11 under Zone Select Periodic Type: Rotational Click on OK
WS5-17
Monitors
Residual Monitoring Solution > Monitors 1.Double click on Residuals (By default it is on) 2.Enable Plot under Options. 3.Specify Absolute Criteria for continuity: 1e-5
Workshop Supplement
WS5-18
Workshop Supplement
Monitor points are used to monitor quantities of interest during the solution. They should be used to help judge convergence. In this case you will monitor the Total Pressure and Static Pressure at inlet. Solution > Monitors > Surface Monitors 1. Click on Create to create a new surface monitor 2. Type total_pressure under Name 3. Enable Printing, Plotting and writing of monitors by marking check boxes under Options 4. Select Mass-Weighted Average from the drop-down menu under Report Type 5. Select Pressure as the Field Variable and select Total Pressure under Pressure variable
WS5-19
Monitors
6. Select inlet as the Surfaces to be monitored 7. Click on OK to create the monitor and to close the panel
Workshop Supplement
WS5-20
Monitors
Workshop Supplement
Solution > Monitors > Surface Monitors 1. Click on Create to create a new surface monitor 2. Type static_pressure under Name 3. Enable Printing, Plotting and writing of monitors by marking check boxes under Options 4. Select Area-Weighted Average from the drop-down menu under Report Type 5. Select Pressure as the Field Variable and select Static Pressure under Pressure variable 6. Select inlet as the Surfaces to be monitored 7. Click on OK to create the monitor and to close the panel
WS5-21
Initialization
Workshop Supplement
Before starting the calculations we must initialize the flow field in the entire domain Solution > Monitors > Solution Initialization 1.Initializing the flow field with near steady state conditions will result in faster convergence 2.Select Compute from: inlet 3.Click on Initialize to initialize the solution
WS5-22
Run Calculations
Workshop Supplement
The solution process can be started in the following manner Solution >Run Calculation Enter 1000 for Number of Iterations and click on Calculate
During the iteration process, both the residue plot and monitor plots will be shown in different windows. If the velocity monitor is not changing further we can stop the iterations. You may specify more number of iterations if the monitors are still changing significantly. The magnitude of change of a monitor per iteration can be observed from the console (enabled by clicking on Print to Console while creating the monitor)
Note: Iterations can be stopped in between, by pressing Ctrl+ C together in the Fluents console.
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.
WS5-23
Workshop Supplement
Once first order run is converged (it takes 211 iterations) Under Solution>Solution Methods setup the parameters as shown below
The solution process can be started in the following manner Solution >Run Calculation Enter 1000 for Number of Iterations and click on Calculate
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved. April 28, 2009 Inventory #002601
WS5-24
Residuals
Workshop Supplement
WS5-25
Workshop Supplement
You can now save the project and proceed to write a case file for the solver: 1. To save the project, go to Project Page File>Save as 2. To write the case files, go to FLUENT session File>Export>Case..
WS5-26
Post Processing
To Draw Contours of Static Pressure on blade
Display > Graphics and Animations Double Click on Contours, a new window will pop up
Workshop Supplement
Select Pressure under Contours of and Static Pressure below that Select blade under Surfaces
WS5-27
Post Processing
To Draw Contours of Static Pressure on hub
Display > Graphics and Animations Double Click on Contours, a new window will pop up
Workshop Supplement
Select Pressure under Contours of and Static Pressure below that Select hub under Surfaces
WS5-28
Post Processing
To Draw Contours of Static Pressure on shroud
Display > Graphics and Animations Double Click on Contours, a new window will pop up
Workshop Supplement
Select Pressure under Contours of and Static Pressure below that Select shroud under Surfaces
WS5-29
WS6-1
Introduction
Workshop Supplement
A workshop to demonstrate how to model porous media in FLUENT Workshop models a catalytic convertor. Nitrogen flows in though inlet with an uniform velocity 22.6 m/s, passes through a ceramic monolith substrate with square shaped channels, and then exits through the outlet. Substrate is impermeable in Y and Z directions, which is modeled by specifying loss coefficients 3 order higher than in X direction
WS6-2
Inlet Outlet
Workshop Supplement
1. Open the Workbench (Start > Programs > ANSYS 12.0 > ANSYS Workbench) 2. Drag FLUENT into the project schematic 3. Change the name to Catalytic 4. Double click on Setup 5. Choose 3D and Double Precision under Options and retain the other default settings
WS6-3
Import Mesh
Workshop Supplement
This starts a new Fluent session and the first step is to import the mesh that has already been created: 1. Under the File menu select Import> Mesh 2. Select the file catalytic_converter_125k.msh.gz and click OK to import the mesh 3. After reading the mesh, check the grid using Mesh>Check option or by using Check under Problem Setup>General
WS6-4
Workshop Supplement
Select Pressure Based, Steady state solver Problem Setup>General>Solver Specify Turbulence model Problem Setup > Models > Viscous Double click and select k-epsilon (2 eqn) under Model and Realizable under k-epsilon model and retain the default settings for the other parameters
3. Make sure that the Energy Equation is disabled Problem Setup > Models> Energy
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.
WS6-5
Materials
Workshop Supplement
Define the materials. Problem Setup > Materials 1. Click on air to open Create/Edit Materials panel 2. Click on FLUENT Database> Select nitrogen(n2) from the list > Copy 3. Click on Change/Create
WS6-6
Workshop Supplement
Under Problem Setup >Cell Zone >Double click on part-in under Zone
Similarly, visit to part-out Zone and select the same settings as above
WS6-7
Workshop Supplement
Under Problem Setup ->Cell Zone ->Double click on part-catalyst under Zone
WS6-8
Operating Conditions
Workshop Supplement
Under Problem Setup >Cell Zone Conditions (operating conditions are also in BC panel) Click on Operating Conditions and set the Operating Pressure (Pascal) to 101325 pascal
WS6-9
Boundary Conditions
Under Problem Setup > Boundary Conditions
Workshop Supplement
1.Select inlet under Zone and choose velocity-inlet from the drop down menu under Type 2.Now double click on inlet under Zone Input all the parameters in Momentum tab as shown below
WS6-10
Workshop Supplement
1.Select outlet under Zone and choose pressure-outlet from the drop down menu under Type 2.Now double click on outlet under Zone Input all the parameters in Momentum tab as shown below
WS6-11
Workshop Supplement
1.Wall type boundary condition for the Zone: wall-part-catalyst, wall-part-in and wall-part-out 2.Interior type of boundary condition for the rest
WS6-12
Solution Methods
Under Problem Setup > Solution Methods
1.Select Coupled under Pressure-Velocity Coupling 2.Select Green-Gauss Node Based under Gradient 3.Default under other options
Workshop Supplement
WS6-13
Solution Controls
Under Problem Setup > Solution Controls
1.Use default settings
Workshop Supplement
WS6-14
Residual Monitors
Residual Monitoring Solution > Monitors 1. Double click on Residuals (By default it is on) 2. Enable Plot under Options. 3.Specify Absolute Criteria for continuity: 1e-4
Workshop Supplement
WS6-15
Workshop Supplement
Monitor points are used to monitor quantities of interest during the solution. They should be used to help judge convergence. In this case you will monitor the Mass Flow Rate at outlet and Static Pressure at inlet. Solution > Monitors > Surface Monitors
WS6-16
Initialization
Workshop Supplement
Before starting the calculations we must initialize the flow field in the entire domain Solution > Monitors > Solution Initialization 1.Initializing the flow field with near steady state conditions will result in faster convergence 2.Select Compute from: inlet 3.Click on Initialize to initialize the solution
WS6-17
Workshop Supplement
The solution process can be started in the following manner Solution >Run Calculation Enter 100 for Number of Iterations and click on Calculate
During the iteration process, the residuals and monitor plots will be shown in different windows. You will see that both monitors become flat at 100 iterations. However, this is a solution of first order discretization scheme. To get an accurate solution, we will use higher order discretization scheme for pressure and momentum equations and run further.
WS6-18
Workshop Supplement
The solution process can be started in the following manner Solution >Run Calculation Enter 100 for Number of Iterations and click on Calculate
WS6-19
Workshop Supplement
Scaled Residuals
Workshop Supplement
You can now save the project and proceed to write a case file for the solver: 1. To save the project, go to Project Page File>Save as 2. To write the case/data files, go to FLUENT session File>Export>Case and Data.. Case/Data File: catalytic_converter_second.cas.gz
WS6-21
Post Processing
To Draw Contours of Static Pressure on walls
Display > Graphics and Animations Double Click on Contours, a new window will pop up Select Pressure under Contours of and Static Pressure below that Select all walls under Surfaces
Workshop Supplement
WS6-22
Post Processing
Workshop Supplement
To get the pressure drop between inlet to outlet boundaries using the porous media model
Reports > Surface Integrals Select as per the GUI and click to Compute You will get the information below Hence, the pressure drop is around 734 pascal
WS6-23
Post Processing
Workshop Supplement
You can postprocess any results using the FLUENT postprocessing tools and/or CFD-Post.
WS6-24
WS7-1
Introduction
Workshop Supplement
In this workshop, you will model the filling and emptying of a water tank. The transient problem is solved as a multiphase (air/water) simulation using the volume of fluid (VOF) multiphase model. An initial water level is set in the tank. The water supply is turned on for the first second of the simulation and then shut off for the rest of the simulation. The water level rises until water flows out the U-tube generating a siphoning effect which effectively empties the tank.
WS7-2
Mesh Import
Start a new 3D FLUENT session Read or import the mesh file tankflush.msh.gz Click General in the outline tree. Scale the mesh to units of centimeters. Set View Length Unit In to cm to have FLUENT display lengths in centimeters. Verify the domain extents: 11.1 < x < 20 cm 19.8 < y < 27.9 cm 0 < z < 1 cm Check the mesh. Display the mesh.
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.
Workshop Supplement
WS7-3
Workshop Supplement
WS7-4
Workshop Supplement
WS7-5
Workshop Supplement
WS7-6
Phases
Define the phases.
Activate Phases in the outline tree. Double-click phase1-Primary Phase. In the Primary Phase panel, change the Name to water. Ensure that water-liquid is selected under Phase Material. Click OK. Double-click phase2-Secondary Phase. In the Secondary Phase panel, change the Name to air. Select air under Phase Material. Click OK.
Workshop Supplement
WS7-7
Workshop Supplement
WS7-8
Workshop Supplement
WS7-9
Workshop Supplement
WS7-10
Workshop Supplement
WS7-11
Workshop Supplement
Select air under Phase and click Copy. Click OK when asked if you want to copy the boundary conditions. Close the Copy Conditions panel.
WS7-12
Workshop Supplement
WS7-13
Workshop Supplement
WS7-14
Workshop Supplement
WS7-15
Workshop Supplement
WS7-16
Workshop Supplement
WS7-17
Workshop Supplement
Create a contour plot of air volume fraction on plane sym1 after patching. The variable to plot is under PhasesVolume Fraction.
Note that the color scheme can optionally be changed from the default BGR to the gray scheme. This can be done using the GUI menu: Display Colormap. Also, for clarity, the Colormap Size has been reduced to 10 which will use 10 colors instead of the default 20.
WS7-18
Workshop Supplement
In this step you will define activities that FLUENT will perform during the calculation. These activities are as follows:
Autosave case and data files. Generate a contour plot of air volume fraction. Write the contour plot to a PNG image file. These files can be assembled into an animation later. Set the inlet flow to be zero when t = 1 second.
WS7-19
Workshop Supplement
Instruct FLUENT to execute commands for contour plot generation and saving as well as changing inlet boundary conditions.
In the center pane, under Execute Commands, click Create/Edit. In the panel that opens, set Defined Commands to 3. Check Active next to each command line. Enter the following commands to be executed: command-1: display set-window 2 contour air vof 0 1 command-2: display hard-copy airvof%t.png command-3: define bc mass-flow-inlet inlet water y n 0 Set Every to 2 for command-1 and command-2. Set Every to 100 for command-3. Set When to Time Step for the three commands. Click OK.
Check the next page to ensure that your settings are correct before clicking OK. You can optionally set up animations in the Solution Animation portion of the Calculation Activities item of the outline tree.
WS7-20
Workshop Supplement
WS7-21
Workshop Supplement
To set the file size, resolution and color scheme for the output images, click the camera icon on the FLUENT toolbar. In the panel that opens, set the following:
Format PNG Coloring Color Options Select Landscape Orientation and deselect White Background. Resolution Set Width to 640 and Height to 480. Click Save
Save the initial image as airvof0000.png.
WS7-22
Workshop Supplement
WS7-23
Post-Process Results
Workshop Supplement
The results can be postprocessed by viewing the PNG files generated during the calculation. A few of these are shown below. These images can be assembled into an animation using a number of both commercially available and free utilities.
WS7-24