100% found this document useful (1 vote)
615 views886 pages

Ansys 19 Tutorial

FLUEND
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
615 views886 pages

Ansys 19 Tutorial

FLUEND
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 886

ANSYS Fluent Tutorial Guide

ANSYS, Inc. Release 19.0


Southpointe January 2018
2600 ANSYS Drive
Canonsburg, PA 15317 ANSYS, Inc. and
[email protected] ANSYS Europe,
Ltd. are UL
http://www.ansys.com registered ISO
(T) 724-746-3304 9001: 2008
(F) 724-514-9494 companies.
Copyright and Trademark Information

© 2017 ANSYS, Inc. Unauthorized use, distribution or duplication is prohibited.

ANSYS, ANSYS Workbench, AUTODYN, CFX, FLUENT and any and all ANSYS, Inc. brand, product, service and feature
names, logos and slogans are registered trademarks or trademarks of ANSYS, Inc. or its subsidiaries located in the
United States or other countries. ICEM CFD is a trademark used by ANSYS, Inc. under license. CFX is a trademark
of Sony Corporation in Japan. All other brand, product, service and feature names or trademarks are the property
of their respective owners. FLEXlm and FLEXnet are trademarks of Flexera Software LLC.

Disclaimer Notice

THIS ANSYS SOFTWARE PRODUCT AND PROGRAM DOCUMENTATION INCLUDE TRADE SECRETS AND ARE CONFID-
ENTIAL AND PROPRIETARY PRODUCTS OF ANSYS, INC., ITS SUBSIDIARIES, OR LICENSORS. The software products
and documentation are furnished by ANSYS, Inc., its subsidiaries, or affiliates under a software license agreement
that contains provisions concerning non-disclosure, copying, length and nature of use, compliance with exporting
laws, warranties, disclaimers, limitations of liability, and remedies, and other provisions. The software products
and documentation may be used, disclosed, transferred, or copied only in accordance with the terms and conditions
of that software license agreement.

ANSYS, Inc. and ANSYS Europe, Ltd. are UL registered ISO 9001: 2008 companies.

U.S. Government Rights

For U.S. Government users, except as specifically granted by the ANSYS, Inc. software license agreement, the use,
duplication, or disclosure by the United States Government is subject to restrictions stated in the ANSYS, Inc.
software license agreement and FAR 12.212 (for non-DOD licenses).

Third-Party Software

See the legal information in the product help files for the complete Legal Notice for ANSYS proprietary software
and third-party software. If you are unable to access the Legal Notice, contact ANSYS, Inc.

Published in the U.S.A.


Table of Contents
Using This Manual ...................................................................................................................................... xxi
1. What’s In This Manual ........................................................................................................................ xxi
2. How To Use This Manual .................................................................................................................... xxi
2.1. For the Beginner ....................................................................................................................... xxi
2.2. For the Experienced User .......................................................................................................... xxi
3. Typographical Conventions Used In This Manual ................................................................................ xxi
1. Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow .......................... 1
1.1. Introduction ..................................................................................................................................... 1
1.2. Prerequisites ..................................................................................................................................... 1
1.3. Problem Description ......................................................................................................................... 2
1.4. Setup and Solution ........................................................................................................................... 2
1.4.1. Preparation .............................................................................................................................. 3
1.4.2. Launching ANSYS Fluent .......................................................................................................... 3
1.4.3. Reading the Mesh .................................................................................................................... 7
1.4.4. Setting Up Domain ................................................................................................................. 10
1.4.5. Setting Up Physics .................................................................................................................. 13
1.4.6. Solving .................................................................................................................................. 25
1.4.7. Displaying the Preliminary Solution ........................................................................................ 35
1.4.8. Using the Coupled Solver ....................................................................................................... 49
1.4.9. Adapting the Mesh ................................................................................................................. 51
1.5. Summary ........................................................................................................................................ 64
2. Postprocessing ...................................................................................................................................... 65
2.1. Introduction ................................................................................................................................... 65
2.2. Prerequisites ................................................................................................................................... 66
2.3. Problem Description ....................................................................................................................... 66
2.4. Setup and Solution ......................................................................................................................... 66
2.4.1. Preparation ............................................................................................................................ 67
2.4.2. Reading the Mesh .................................................................................................................. 67
2.4.3. Manipulating the Mesh in the Viewer ...................................................................................... 67
2.4.4. Adding Lights ........................................................................................................................ 69
2.4.5. Creating Isosurfaces ............................................................................................................... 73
2.4.6. Generating Contours .............................................................................................................. 76
2.4.7. Generating Velocity Vectors .................................................................................................... 80
2.4.8. Creating an Animation ........................................................................................................... 86
2.4.9. Displaying Pathlines ............................................................................................................... 91
2.4.10. Creating a Scene With Vectors and Contours ......................................................................... 96
2.4.11. Advanced Overlay of Pathlines on a Scene ............................................................................ 98
2.4.12. Creating Exploded Views .................................................................................................... 100
2.4.13. Animating the Display of Results in Successive Streamwise Planes ....................................... 105
2.4.14. Generating XY Plots ............................................................................................................ 107
2.4.15. Creating Annotation ........................................................................................................... 111
2.4.16. Saving Picture Files ............................................................................................................. 113
2.4.17. Generating Volume Integral Reports ................................................................................... 113
2.5. Summary ...................................................................................................................................... 114
3. Modeling Periodic Flow and Heat Transfer ......................................................................................... 115
3.1. Introduction ................................................................................................................................. 115
3.2. Prerequisites ................................................................................................................................. 115
3.3. Problem Description ..................................................................................................................... 116
3.4. Setup and Solution ....................................................................................................................... 116
3.4.1. Preparation .......................................................................................................................... 117

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. iii
Tutorial Guide

3.4.2. Mesh .................................................................................................................................... 117


3.4.3. General Settings ................................................................................................................... 120
3.4.4. Models ................................................................................................................................. 120
3.4.5. Materials .............................................................................................................................. 121
3.4.6. Cell Zone Conditions ............................................................................................................ 122
3.4.7. Periodic Conditions .............................................................................................................. 123
3.4.8. Boundary Conditions ............................................................................................................ 123
3.4.9. Solution ............................................................................................................................... 124
3.4.10. Postprocessing ................................................................................................................... 129
3.5. Summary ...................................................................................................................................... 137
3.6. Further Improvements .................................................................................................................. 137
4. Modeling External Compressible Flow ............................................................................................... 139
4.1. Introduction ................................................................................................................................. 139
4.2. Prerequisites ................................................................................................................................. 139
4.3. Problem Description ..................................................................................................................... 139
4.4. Setup and Solution ....................................................................................................................... 140
4.4.1. Preparation .......................................................................................................................... 140
4.4.2. Mesh .................................................................................................................................... 140
4.4.3. Solver .................................................................................................................................. 142
4.4.4. Models ................................................................................................................................. 143
4.4.5. Materials .............................................................................................................................. 144
4.4.6. Boundary Conditions ............................................................................................................ 145
4.4.7. Operating Conditions ........................................................................................................... 148
4.4.8. Solution ............................................................................................................................... 149
4.4.9. Postprocessing ..................................................................................................................... 164
4.5. Summary ...................................................................................................................................... 170
4.6. Further Improvements .................................................................................................................. 170
5. Modeling Transient Compressible Flow .............................................................................................. 171
5.1. Introduction ................................................................................................................................. 171
5.2. Prerequisites ................................................................................................................................. 171
5.3. Problem Description ..................................................................................................................... 171
5.4. Setup and Solution ....................................................................................................................... 172
5.4.1. Preparation .......................................................................................................................... 172
5.4.2. Reading and Checking the Mesh ........................................................................................... 172
5.4.3. Solver and Analysis Type ....................................................................................................... 175
5.4.4. Models ................................................................................................................................. 176
5.4.5. Materials .............................................................................................................................. 177
5.4.6. Operating Conditions ........................................................................................................... 178
5.4.7. Boundary Conditions ............................................................................................................ 178
5.4.8. Solution: Steady Flow ........................................................................................................... 181
5.4.9. Enabling Time Dependence and Setting Transient Conditions ............................................... 194
5.4.10. Specifying Solution Parameters for Transient Flow and Solving ............................................ 197
5.4.11. Saving and Postprocessing Time-Dependent Data Sets ....................................................... 200
5.5. Summary ...................................................................................................................................... 213
5.6. Further Improvements .................................................................................................................. 213
6. Modeling Flow Through Porous Media ............................................................................................... 215
6.1. Introduction ................................................................................................................................. 215
6.2. Prerequisites ................................................................................................................................. 215
6.3. Problem Description ..................................................................................................................... 216
6.4. Setup and Solution ....................................................................................................................... 216
6.4.1. Preparation .......................................................................................................................... 216
6.4.2. Mesh .................................................................................................................................... 217

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
iv of ANSYS, Inc. and its subsidiaries and affiliates.
Tutorial Guide

6.4.3. General Settings ................................................................................................................... 219


6.4.4. Models ................................................................................................................................. 219
6.4.5. Materials .............................................................................................................................. 220
6.4.6. Cell Zone Conditions ............................................................................................................ 222
6.4.7. Boundary Conditions ............................................................................................................ 225
6.4.8. Solution ............................................................................................................................... 228
6.4.9. Postprocessing ..................................................................................................................... 232
6.5. Summary ...................................................................................................................................... 246
6.6. Further Improvements .................................................................................................................. 246
7. Modeling Radiation and Natural Convection ..................................................................................... 247
7.1. Introduction ................................................................................................................................. 247
7.2. Prerequisites ................................................................................................................................. 247
7.3. Problem Description ..................................................................................................................... 247
7.4. Setup and Solution ....................................................................................................................... 248
7.4.1. Preparation .......................................................................................................................... 248
7.4.2. Reading and Checking the Mesh ........................................................................................... 249
7.4.3. Solver and Analysis Type ....................................................................................................... 249
7.4.4. Models ................................................................................................................................. 250
7.4.5. Defining the Materials .......................................................................................................... 254
7.4.6. Operating Conditions ........................................................................................................... 255
7.4.7. Boundary Conditions ............................................................................................................ 256
7.4.8. Obtaining the Solution ......................................................................................................... 260
7.4.9. Postprocessing ..................................................................................................................... 267
7.4.10. Comparing the Contour Plots after Varying Radiating Surfaces ............................................ 280
7.4.11. S2S Definition, Solution, and Postprocessing with Partial Enclosure ...................................... 285
7.5. Summary ...................................................................................................................................... 289
7.6. Further Improvements .................................................................................................................. 289
8. Using a Single Rotating Reference Frame ........................................................................................... 291
8.1. Introduction ................................................................................................................................. 291
8.2. Prerequisites ................................................................................................................................. 291
8.3. Problem Description ..................................................................................................................... 291
8.4. Setup and Solution ....................................................................................................................... 292
8.4.1. Preparation .......................................................................................................................... 293
8.4.2. Mesh .................................................................................................................................... 293
8.4.3. General Settings ................................................................................................................... 293
8.4.4. Models ................................................................................................................................. 295
8.4.5. Materials .............................................................................................................................. 297
8.4.6. Cell Zone Conditions ............................................................................................................ 297
8.4.7. Boundary Conditions ............................................................................................................ 298
8.4.8. Solution Using the Standard k- ε Model ................................................................................. 301
8.4.9. Postprocessing for the Standard k- ε Solution ........................................................................ 308
8.4.10. Solution Using the RNG k- ε Model ...................................................................................... 317
8.4.11. Postprocessing for the RNG k- ε Solution ............................................................................. 319
8.5. Summary ...................................................................................................................................... 324
8.6. Further Improvements .................................................................................................................. 324
8.7. References .................................................................................................................................... 325
9. Using Multiple Reference Frames ....................................................................................................... 327
9.1. Introduction ................................................................................................................................. 327
9.2. Prerequisites ................................................................................................................................. 328
9.3. Problem Description ..................................................................................................................... 328
9.4. Setup and Solution ....................................................................................................................... 328
9.4.1. Preparation .......................................................................................................................... 329

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. v
Tutorial Guide

9.4.2. Reading and Checking the Mesh and Setting the Units .......................................................... 329
9.4.3. Specifying Solver and Analysis Type ...................................................................................... 331
9.4.4. Specifying the Models .......................................................................................................... 331
9.4.5. Specifying Materials ............................................................................................................. 332
9.4.6. Specifying Cell Zone Conditions ........................................................................................... 333
9.4.7. Setting Boundary Conditions ................................................................................................ 336
9.4.8. Defining Mesh Interfaces ...................................................................................................... 337
9.4.9. Obtaining the Solution ......................................................................................................... 338
9.4.10. Step 9: Postprocessing ........................................................................................................ 342
9.5. Summary ...................................................................................................................................... 348
9.6. Further Improvements .................................................................................................................. 349
10. Using Sliding Meshes ........................................................................................................................ 351
10.1. Introduction ............................................................................................................................... 351
10.2. Prerequisites ............................................................................................................................... 351
10.3. Problem Description ................................................................................................................... 351
10.4. Setup and Solution ..................................................................................................................... 352
10.4.1. Preparation ........................................................................................................................ 352
10.4.2. Mesh .................................................................................................................................. 353
10.4.3. General Settings ................................................................................................................. 353
10.4.4. Models ............................................................................................................................... 356
10.4.5. Materials ............................................................................................................................ 356
10.4.6. Cell Zone Conditions .......................................................................................................... 357
10.4.7. Boundary Conditions .......................................................................................................... 360
10.4.8. Operating Conditions ......................................................................................................... 366
10.4.9. Mesh Interfaces .................................................................................................................. 367
10.4.10. Solution ........................................................................................................................... 368
10.4.11. Postprocessing ................................................................................................................. 387
10.5. Summary .................................................................................................................................... 391
10.6. Further Improvements ................................................................................................................ 391
11. Using Overset and Dynamic Meshes ................................................................................................. 393
11.1. Prerequisites ............................................................................................................................... 393
11.2. Problem Description ................................................................................................................... 394
11.3. Preparation ................................................................................................................................. 395
11.4. Mesh .......................................................................................................................................... 395
11.5. Overset Interface Creation ........................................................................................................... 398
11.6. Steady-State Case Setup .............................................................................................................. 401
11.6.1. General Settings ................................................................................................................. 401
11.6.2. Models ............................................................................................................................... 401
11.6.3. Materials ............................................................................................................................ 402
11.6.4. Operating Conditions ......................................................................................................... 403
11.6.5. Boundary Conditions .......................................................................................................... 403
11.6.6. Reference Values ................................................................................................................ 404
11.6.7. Solution ............................................................................................................................. 405
11.7. Unsteady Setup .......................................................................................................................... 410
11.7.1. General Settings ................................................................................................................. 410
11.7.2. Compile the UDF ................................................................................................................ 411
11.7.3. Dynamic Mesh Settings ...................................................................................................... 411
11.7.4. Report Generation for Unsteady Case ................................................................................. 413
11.7.5. Run Calculations for Unsteady Case .................................................................................... 414
11.7.6. Overset Solution Checking ................................................................................................. 416
11.7.7. Postprocessing ................................................................................................................... 416
11.7.8. Diagnosing an Overset Case ............................................................................................... 419

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
vi of ANSYS, Inc. and its subsidiaries and affiliates.
Tutorial Guide

11.8. Summary .................................................................................................................................... 426


12. Modeling Species Transport and Gaseous Combustion ................................................................... 427
12.1. Introduction ............................................................................................................................... 427
12.2. Prerequisites ............................................................................................................................... 427
12.3. Problem Description ................................................................................................................... 427
12.4. Background ................................................................................................................................ 428
12.5. Setup and Solution ..................................................................................................................... 428
12.5.1. Preparation ........................................................................................................................ 428
12.5.2. Mesh .................................................................................................................................. 429
12.5.3. General Settings ................................................................................................................. 429
12.5.4. Models ............................................................................................................................... 432
12.5.5. Materials ............................................................................................................................ 435
12.5.6. Boundary Conditions .......................................................................................................... 438
12.5.7. Initial Reaction Solution ...................................................................................................... 444
12.5.8. Postprocessing ................................................................................................................... 450
12.5.9. NOx Prediction ................................................................................................................... 458
12.6. Summary .................................................................................................................................... 471
12.7. Further Improvements ................................................................................................................ 471
13. Using the Non-Premixed Combustion Model ................................................................................... 473
13.1. Introduction ............................................................................................................................... 473
13.2. Prerequisites ............................................................................................................................... 473
13.3. Problem Description ................................................................................................................... 474
13.4. Setup and Solution ..................................................................................................................... 475
13.4.1. Preparation ........................................................................................................................ 475
13.4.2. Reading and Checking the Mesh ......................................................................................... 476
13.4.3. Specifying Solver and Analysis Type .................................................................................... 479
13.4.4. Specifying the Models ........................................................................................................ 480
13.4.5. Defining Materials and Properties ....................................................................................... 487
13.4.6. Specifying Boundary Conditions ......................................................................................... 488
13.4.7. Specifying Operating Conditions ........................................................................................ 496
13.4.8. Obtaining Solution ............................................................................................................. 496
13.4.9. Postprocessing ................................................................................................................... 500
13.4.10. Energy Balances Reporting ............................................................................................... 503
13.5. Summary .................................................................................................................................... 505
13.6. References .................................................................................................................................. 505
13.7. Further Improvements ................................................................................................................ 505
14. Modeling Surface Chemistry ............................................................................................................. 507
14.1. Introduction ............................................................................................................................... 507
14.2. Prerequisites ............................................................................................................................... 507
14.3. Problem Description ................................................................................................................... 508
14.4. Setup and Solution ..................................................................................................................... 509
14.4.1. Preparation ........................................................................................................................ 509
14.4.2. Reading and Checking the Mesh ......................................................................................... 509
14.4.3. Solver and Analysis Type ..................................................................................................... 511
14.4.4. Specifying the Models ........................................................................................................ 512
14.4.5. Defining Materials and Properties ....................................................................................... 513
14.4.6. Specifying Boundary Conditions ......................................................................................... 524
14.4.7. Setting the Operating Conditions ....................................................................................... 530
14.4.8. Simulating Non-Reacting Flow ............................................................................................ 531
14.4.9. Simulating Reacting Flow ................................................................................................... 534
14.4.10. Postprocessing the Solution Results .................................................................................. 540
14.5. Summary .................................................................................................................................... 547

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. vii
Tutorial Guide

14.6. Further Improvements ................................................................................................................ 547


15. Modeling Evaporating Liquid Spray ................................................................................................. 549
15.1. Introduction ............................................................................................................................... 549
15.2. Prerequisites ............................................................................................................................... 549
15.3. Problem Description ................................................................................................................... 549
15.4. Setup and Solution ..................................................................................................................... 550
15.4.1. Preparation ........................................................................................................................ 550
15.4.2. Mesh .................................................................................................................................. 551
15.4.3. Solver ................................................................................................................................. 554
15.4.4. Models ............................................................................................................................... 554
15.4.5. Materials ............................................................................................................................ 557
15.4.6. Boundary Conditions .......................................................................................................... 558
15.4.7. Initial Solution Without Droplets ......................................................................................... 564
15.4.8. Creating a Spray Injection ................................................................................................... 574
15.4.9. Solution ............................................................................................................................. 581
15.4.10. Postprocessing ................................................................................................................. 591
15.5. Summary .................................................................................................................................... 601
15.6. Further Improvements ................................................................................................................ 601
16. Using the VOF Model ......................................................................................................................... 603
16.1. Introduction ............................................................................................................................... 603
16.2. Prerequisites ............................................................................................................................... 603
16.3. Problem Description ................................................................................................................... 603
16.4. Setup and Solution ..................................................................................................................... 605
16.4.1. Preparation ........................................................................................................................ 605
16.4.2. Reading and Manipulating the Mesh ................................................................................... 606
16.4.3. General Settings ................................................................................................................. 610
16.4.4. Models ............................................................................................................................... 612
16.4.5. Materials ............................................................................................................................ 613
16.4.6. Phases ................................................................................................................................ 615
16.4.7. Operating Conditions ......................................................................................................... 617
16.4.8. User-Defined Function (UDF) .............................................................................................. 618
16.4.9. Boundary Conditions .......................................................................................................... 619
16.4.10. Solution ........................................................................................................................... 622
16.4.11. Postprocessing ................................................................................................................. 629
16.5. Summary .................................................................................................................................... 633
16.6. Further Improvements ................................................................................................................ 633
17. Modeling Cavitation .......................................................................................................................... 635
17.1. Introduction ............................................................................................................................... 635
17.2. Prerequisites ............................................................................................................................... 635
17.3. Problem Description ................................................................................................................... 635
17.4. Setup and Solution ..................................................................................................................... 636
17.4.1. Preparation ........................................................................................................................ 636
17.4.2. Reading and Checking the Mesh ......................................................................................... 637
17.4.3. Solver Settings ................................................................................................................... 638
17.4.4. Models ............................................................................................................................... 639
17.4.5. Materials ............................................................................................................................ 641
17.4.6. Phases ................................................................................................................................ 644
17.4.7. Boundary Conditions .......................................................................................................... 647
17.4.8. Operating Conditions ......................................................................................................... 652
17.4.9. Solution ............................................................................................................................. 652
17.4.10. Postprocessing ................................................................................................................. 657
17.5. Summary .................................................................................................................................... 662

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
viii of ANSYS, Inc. and its subsidiaries and affiliates.
Tutorial Guide

17.6. Further Improvements ................................................................................................................ 662


18. Using the Mixture and Eulerian Multiphase Models ......................................................................... 663
18.1. Introduction ............................................................................................................................... 663
18.2. Prerequisites ............................................................................................................................... 663
18.3. Problem Description ................................................................................................................... 663
18.4. Setup and Solution ..................................................................................................................... 664
18.4.1. Preparation ........................................................................................................................ 664
18.4.2. Mesh .................................................................................................................................. 665
18.4.3. General Settings ................................................................................................................. 665
18.4.4. Models ............................................................................................................................... 667
18.4.5. Materials ............................................................................................................................ 670
18.4.6. Phases ................................................................................................................................ 670
18.4.7. Boundary Conditions .......................................................................................................... 674
18.4.8. Operating Conditions ......................................................................................................... 677
18.4.9. Solution Using the Mixture Model ....................................................................................... 678
18.4.10. Postprocessing for the Mixture Solution ............................................................................ 682
18.4.11. Higher Order Solution using the Mixture Model ................................................................ 686
18.4.12. Setup and Solution for the Eulerian Model ........................................................................ 687
18.4.13. Postprocessing for the Eulerian Model .............................................................................. 691
18.5. Summary .................................................................................................................................... 694
18.6. Further Improvements ................................................................................................................ 694
19. Modeling Solidification ..................................................................................................................... 695
19.1. Introduction ............................................................................................................................... 695
19.2. Prerequisites ............................................................................................................................... 695
19.3. Problem Description ................................................................................................................... 695
19.4. Setup and Solution ..................................................................................................................... 696
19.4.1. Preparation ........................................................................................................................ 697
19.4.2. Reading and Checking the Mesh ......................................................................................... 697
19.4.3. Specifying Solver and Analysis Type .................................................................................... 698
19.4.4. Specifying the Models ........................................................................................................ 700
19.4.5. Defining Materials .............................................................................................................. 701
19.4.6. Setting the Cell Zone Conditions ......................................................................................... 703
19.4.7. Setting the Boundary Conditions ........................................................................................ 704
19.4.8. Solution: Steady Conduction ............................................................................................... 712
19.4.9. Solution: Transient Flow and Heat Transfer ........................................................................... 723
19.5. Summary .................................................................................................................................... 734
19.6. Further Improvements ................................................................................................................ 734
20. Using the Eulerian Granular Multiphase Model with Heat Transfer ................................................. 735
20.1. Introduction ............................................................................................................................... 735
20.2. Prerequisites ............................................................................................................................... 735
20.3. Problem Description ................................................................................................................... 735
20.4. Setup and Solution ..................................................................................................................... 736
20.4.1. Preparation ........................................................................................................................ 736
20.4.2. Mesh .................................................................................................................................. 737
20.4.3. Solver Settings ................................................................................................................... 738
20.4.4. Models ............................................................................................................................... 739
20.4.5. UDF ................................................................................................................................... 740
20.4.6. Materials ............................................................................................................................ 741
20.4.7. Phases ................................................................................................................................ 742
20.4.8. Boundary Conditions .......................................................................................................... 745
20.4.9. Solution ............................................................................................................................. 752
20.4.10. Postprocessing ................................................................................................................. 765

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. ix
Tutorial Guide

20.5. Summary .................................................................................................................................... 767


20.6. Further Improvements ................................................................................................................ 767
20.7. References .................................................................................................................................. 768
21. Using the Adjoint Solver – 2D Laminar Flow Past a Cylinder ............................................................ 769
21.1. Introduction ............................................................................................................................... 769
21.2. Prerequisites ............................................................................................................................... 769
21.3. Problem Description ................................................................................................................... 770
21.4. Setup and Solution ..................................................................................................................... 770
21.4.1. Step 1: Preparation ............................................................................................................. 770
21.4.2. Step 2: Define Observables ................................................................................................. 771
21.4.3. Step 3: Compute the Drag Sensitivity .................................................................................. 775
21.4.4. Step 4: Postprocess and Export Drag Sensitivity ................................................................... 779
21.4.4.1. Boundary Condition Sensitivity .................................................................................. 780
21.4.4.2. Momentum Source Sensitivity ................................................................................... 780
21.4.4.3. Shape Sensitivity ....................................................................................................... 782
21.4.4.4. Exporting Drag Sensitivity Data .................................................................................. 784
21.4.5. Step 5: Compute Lift Sensitivity ........................................................................................... 786
21.4.6. Step 6: Modify the Shape .................................................................................................... 787
21.5. Summary .................................................................................................................................... 792
22. Simulating a Single Battery Cell Using the MSMD Battery Model .................................................... 795
22.1. Introduction ............................................................................................................................... 795
22.2. Prerequisites ............................................................................................................................... 795
22.3. Problem Description ................................................................................................................... 795
22.4. Setup and Solution ..................................................................................................................... 796
22.4.1. Preparation ........................................................................................................................ 796
22.4.2. Reading and Scaling the Mesh ............................................................................................ 797
22.4.3. Loading the MSMD battery Add-on ..................................................................................... 797
22.4.4. NTGK Battery Model Setup ................................................................................................. 797
22.4.4.1. Specifying Solver and Models ..................................................................................... 798
22.4.4.2. Defining New Materials for Cell and Tabs .................................................................... 803
22.4.4.3. Defining Cell Zone Conditions .................................................................................... 807
22.4.4.4. Defining Boundary Conditions ................................................................................... 808
22.4.4.5. Specifying Solution Settings ....................................................................................... 809
22.4.4.6. Obtaining Solution .................................................................................................... 812
22.4.5. Postprocessing ................................................................................................................... 814
22.4.6. Simulating the Battery Pulse Discharge Using the ECM Model ............................................. 824
22.4.7. Using the Reduced Order Method (ROM) ............................................................................ 825
22.4.8. External and Internal Short-Circuit Treatment ...................................................................... 826
22.4.8.1. Setting up and Solving a Short-Circuit Problem .......................................................... 826
22.4.8.2. Postprocessing .......................................................................................................... 828
22.5. Summary .................................................................................................................................... 835
22.6. Appendix .................................................................................................................................... 835
22.7. References .................................................................................................................................. 836
23. Simulating a 1P3S Battery Pack Using the MSMD Battery Model .................................................... 837
23.1. Introduction ............................................................................................................................... 837
23.2. Prerequisites ............................................................................................................................... 837
23.3. Problem Description ................................................................................................................... 837
23.4. Setup and Solution ..................................................................................................................... 838
23.4.1. Preparation ........................................................................................................................ 838
23.4.2. Reading and Scaling the Mesh ............................................................................................ 839
23.4.3. Loading the MSMD battery Add-on ..................................................................................... 840
23.4.4. Battery Model Setup ........................................................................................................... 840

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
x of ANSYS, Inc. and its subsidiaries and affiliates.
Tutorial Guide

23.4.4.1. Specifying Solver and Models ..................................................................................... 840


23.4.4.2. Defining New Materials .............................................................................................. 845
23.4.4.3. Defining Cell Zone Conditions .................................................................................... 849
23.4.4.4. Defining Boundary Conditions ................................................................................... 849
23.4.4.5. Specifying Solution Settings ....................................................................................... 850
23.4.4.6. Obtaining Solution .................................................................................................... 853
23.4.5. Postprocessing ................................................................................................................... 855
23.5. Summary .................................................................................................................................... 862

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. xi
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
xii of ANSYS, Inc. and its subsidiaries and affiliates.
List of Figures
1.1. Problem Specification ............................................................................................................................. 2
1.2. The Hexahedral Mesh for the Mixing Elbow ........................................................................................... 10
1.3. Convergence History of the Mass-Weighted Average Temperature ......................................................... 32
1.4. Residuals .............................................................................................................................................. 33
1.5. Predicted Velocity Distribution after the Initial Calculation ..................................................................... 37
1.6. Predicted Temperature Distribution after the Initial Calculation .............................................................. 39
1.7. Velocity Vectors Colored by Velocity Magnitude ..................................................................................... 41
1.8. Resized Velocity Vectors ........................................................................................................................ 42
1.9. Magnified View of Resized Velocity Vectors ............................................................................................ 43
1.10. Outlet Temperature Profile for the Initial Solution ................................................................................ 46
1.11. Contours of the Dynamic Head Custom Field Function ......................................................................... 48
1.12. Residuals for the Coupled Solver Calculation ....................................................................................... 50
1.13. Convergence History of Mass-Weighted Average Temperature ............................................................. 51
1.14. Cells Marked for Adaption ................................................................................................................... 54
1.15. Alternative Display of Cells Marked for Adaption .................................................................................. 56
1.16. The Adapted Mesh .............................................................................................................................. 58
1.17. The Complete Residual History ............................................................................................................ 59
1.18. Convergence History of Mass-Weighted Average Temperature ............................................................. 59
1.19. Filled Contours of Temperature Using the Adapted Mesh ..................................................................... 60
1.20. Outlet Temperature Profile for the Adapted Coupled Solver Solution .................................................... 62
1.21. Outlet Temperature Profiles for the Two Solutions ................................................................................ 64
2.1. Problem Specification ........................................................................................................................... 66
2.2. Mesh Display of the Chip and Board Surfaces ........................................................................................ 69
2.3. Graphics Window with Default Lighting ................................................................................................ 71
2.4. Display with Additional Lighting: - Headlight Off .................................................................................... 72
2.5. Display with Additional Lighting ........................................................................................................... 73
2.6. Filled Contours of Temperature on the Symmetry Surfaces ..................................................................... 78
2.7. Filled Contours of Temperature on the Clipped Surface .......................................................................... 79
2.8. Temperature Contours on the Surface, Y= 0.25 in. .................................................................................. 80
2.9. Velocity Vectors in the Module Symmetry Plane ..................................................................................... 82
2.10. Velocity Vectors Intersecting the Surface .............................................................................................. 84
2.11. Velocity Vectors After Mirroring ........................................................................................................... 86
2.12. Filled Temperature Contours on the Chip and Board Top Surfaces ........................................................ 88
2.13. Filled Temperature Contours on the Chip and Board Top Surfaces ........................................................ 90
2.14. Pathlines Display Colored by Static Pressure ........................................................................................ 93
2.15. Sphere Pathlines Display Colored by Static Pressure ............................................................................. 95
2.16. Sphere Pathlines Colored by Static Temperature .................................................................................. 96
2.17. Temperature Contours and Velocity Vectors Scene ............................................................................... 98
2.18. Overlay of Pathlines Colored by Pressure on Velocity Vectors and Temperature Contours Scene .......... 100
2.19. Exploded Scene Display of Temperature and Velocity ......................................................................... 105
2.20. Temperature Along the Top Centerline of the Module ........................................................................ 111
2.21. A Display with Annotation ................................................................................................................. 112
3.1. Schematic of the Problem ................................................................................................................... 116
3.2. Mesh for the Periodic Tube Bank .......................................................................................................... 119
3.3. Contours of Static Pressure .................................................................................................................. 130
3.4. Contours of Static Pressure with Symmetry .......................................................................................... 131
3.5. Contours of Static Temperature ........................................................................................................... 132
3.6. Velocity Vectors ................................................................................................................................... 134
3.7. Static Temperature at x=0.01, 0.02, and 0.03 m ..................................................................................... 137
4.1. Problem Specification ......................................................................................................................... 140

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. xiii
Tutorial Guide

4.2. The Entire Mesh .................................................................................................................................. 141


4.3. Magnified View of the Mesh Around the Airfoil .................................................................................... 142
4.4. Pressure Contours After 50 Iterations ................................................................................................... 158
4.5. Magnified View of Pressure Contours Showing Wall-Adjacent Cells ....................................................... 159
4.6. Pressure Contours after Creating a Point with the Mouse ..................................................................... 161
4.7. Velocity Magnitude History ................................................................................................................. 163
4.8. Drag Coefficient Convergence History ................................................................................................. 163
4.9. Lift Coefficient Convergence History .................................................................................................... 164
4.10. Moment Coefficient Convergence History .......................................................................................... 164
4.11. XY Plot of y+ Distribution .................................................................................................................. 166
4.12. Contour Plot of Mach Number ........................................................................................................... 167
4.13. XY Plot of Pressure ............................................................................................................................ 167
4.14. XY Plot of x Wall Shear Stress ............................................................................................................. 168
4.15. Contour Plot of x Component of Velocity ........................................................................................... 169
4.16. Plot of Velocity Vectors Downstream of the Shock .............................................................................. 169
5.1. Problem Specification ......................................................................................................................... 172
5.2. 2D Nozzle Mesh Display with Mirroring ............................................................................................... 174
5.3. Mass Flow Rate History ........................................................................................................................ 188
5.4. 2D Nozzle Mesh after Adaption ........................................................................................................... 190
5.5. Contours of Static Pressure (Steady Flow) ............................................................................................. 191
5.6. Velocity Vectors Showing Recirculation (Steady Flow) .......................................................................... 193
5.7. Mass Flow Rate History (Transient Flow) .............................................................................................. 200
5.8. Pressure Contours at t=0.017136 s ....................................................................................................... 204
5.9. Mach Number Contours at t=0.017136 s .............................................................................................. 206
5.10. Pressure Contours at t=0.017993 s ..................................................................................................... 209
5.11. Pressure Contours at t=0.019135 s ..................................................................................................... 209
5.12. Mach Number Contours at t=0.017993 s ............................................................................................ 210
5.13. Mach Number Contours at t=0.019135 s ............................................................................................ 211
5.14. Velocity Vectors at t=0.018849 s ......................................................................................................... 213
6.1. Catalytic Converter Geometry for Flow Modeling ................................................................................. 216
6.2. Mesh for the Catalytic Converter Geometry ......................................................................................... 219
6.3. Mass Flow Rate History ........................................................................................................................ 231
6.4. Velocity Vectors on the y=0 Plane ........................................................................................................ 239
6.5. Contours of Static Pressure on the y=0 plane ....................................................................................... 241
6.6. Plot of Static Pressure on the porous-cl Line Surface ............................................................................ 242
6.7. Contours of the X Velocity on the x=95, x=130, and x=165 Surfaces ...................................................... 244
7.1. Schematic of the Problem ................................................................................................................... 248
7.2. Graphics Display of Mesh .................................................................................................................... 249
7.3. Temperature Surface Report ................................................................................................................ 266
7.4. Scaled Residuals ................................................................................................................................. 266
7.5. Contours of Static Temperature ........................................................................................................... 269
7.6. Contours of Wall Temperature ............................................................................................................. 271
7.7. Contours of Radiation Heat Flux .......................................................................................................... 273
7.8. Vectors of Velocity Magnitude ............................................................................................................. 275
7.9. Temperature Profile Along the Outer Surface of the Box ....................................................................... 280
7.10. Contours of Wall Temperature: 100 Face per Surface Cluster ............................................................... 281
7.11. Contours of Wall Temperature: 800 Faces per Surface Cluster .............................................................. 282
7.12. Contours of Wall Temperature: 1600 Faces per Surface Cluster ............................................................ 282
7.13. A Comparison of Temperature Profiles along the Outer Surface of the Box .......................................... 285
7.14. Wall Temperature Profile Comparison ................................................................................................ 289
8.1. Problem Specification ......................................................................................................................... 292
8.2. Mesh Display for the Disk Cavity .......................................................................................................... 294

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
xiv of ANSYS, Inc. and its subsidiaries and affiliates.
Tutorial Guide

8.3. Mass Flow Rate History (k- ε Turbulence Model) ................................................................................... 307
8.4. Magnified View of Velocity Vectors within the Disk Cavity ..................................................................... 310
8.5. Contours of Static Pressure for the Entire Disk Cavity ............................................................................ 312
8.6. Radial Velocity Distribution—Standard k- ε Solution ............................................................................ 314
8.7. Wall Yplus Distribution on wall-6— Standard k- ε Solution ................................................................... 317
8.8. Radial Velocity Distribution — RNG k- ε and Standard k- ε Solutions ..................................................... 321
8.9. RNG k- ε and Standard k- ε Solutions (x=0 cm to x=1 cm) ..................................................................... 322
8.10. wall-6 — RNG k- ε and Standard k- ε Solutions (x=0 cm to x=43 cm) ................................................... 324
9.1. Schematic of the Problem ................................................................................................................... 328
9.2. Mesh of the 2D Centrifugal Blower ...................................................................................................... 330
9.3. Scaled Residuals ................................................................................................................................. 341
9.4. Contours of Static Pressure .................................................................................................................. 343
9.5. Velocity Vectors ................................................................................................................................... 345
9.6. Relative Velocity Vectors ...................................................................................................................... 347
10.1. Rotor-Stator Problem Description ...................................................................................................... 352
10.2. Rotor-Stator Display .......................................................................................................................... 354
10.3. Residual History for the First Revolution of the Rotor .......................................................................... 377
10.4. Mass Flow Rate at the Inlet During the First Revolution ...................................................................... 378
10.5. Mass Flow Rate at the Outlet During the First Revolution .................................................................... 378
10.6. Static Pressure at the Interface During the First Revolution ................................................................. 379
10.7. Mass Flow Rate at the Inlet During the Next 3 Revolutions ................................................................. 382
10.8. Mass Flow Rate at the Outlet During the Next 3 Revolutions ............................................................... 382
10.9. Static Pressure at the Interface During the Next 3 Revolutions ............................................................ 383
10.10. Static Pressure at a Point on The Stator Interface During the Final Revolution .................................... 387
10.11. FFT of Static Pressure at the Stator ................................................................................................... 389
10.12. Mean Static Pressure on the Outer Shroud of the Axial Compressor .................................................. 391
11.1. Schematic of Problem ....................................................................................................................... 394
11.2. Close View of Bay Area ...................................................................................................................... 395
11.3. Cell Marking on component .............................................................................................................. 423
11.4. Cell Marking on fluid-background ..................................................................................................... 423
11.5. Dead Cells in the Component ............................................................................................................ 425
11.6. Dead Cells in the Background ............................................................................................................ 426
12.1. Combustion of Methane Gas in a Turbulent Diffusion Flame Furnace .................................................. 428
12.2. The Quadrilateral Mesh for the Combustor Model .............................................................................. 431
12.3. Contours of Temperature ................................................................................................................... 451
12.4. Velocity Vectors ................................................................................................................................. 453
12.5. Contours of CH4 Mass Fraction .......................................................................................................... 454
12.6. Contours of O2 Mass Fraction ............................................................................................................ 455
12.7. Contours of CO2 Mass Fraction .......................................................................................................... 455
12.8. Contours of H2O Mass Fraction .......................................................................................................... 456
12.9. Contours of NO Mass Fraction — Prompt and Thermal NOx Formation ............................................... 465
12.10. Contours of NO Mass Fraction—Thermal NOx Formation ................................................................. 467
12.11. Contours of NO Mass Fraction—Prompt NOx Formation .................................................................. 468
12.12. Contours of NO ppm — Prompt NOx Formation ............................................................................... 470
13.1. Problem Description ......................................................................................................................... 474
13.2. Close-Up of the Burner ...................................................................................................................... 475
13.3. 2D BERL Combustor Mesh Display ..................................................................................................... 477
13.4. 2D BERL Combustor Mesh Display Including the Symmetry Plane ...................................................... 479
13.5. Non-Adiabatic Temperature Look-Up Table on the Adiabatic Enthalpy Slice ........................................ 486
13.6. Profile Plot of Temperature for wall-9 ................................................................................................. 493
13.7. Profile Plot of Axial-Velocity for the Swirling Air Inlet (air-inlet-4) ......................................................... 494
13.8. Profile Plot of Swirl-Velocity for the Swirling Air Inlet (air-inlet-4) ......................................................... 495

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. xv
Tutorial Guide

13.9. Temperature Contours ...................................................................................................................... 501


13.10. Velocity Contours ............................................................................................................................ 502
13.11. Contours of Mass Fraction of o2 ....................................................................................................... 503
14.1. Schematic of the Reactor Configuration ............................................................................................. 508
14.2. Mesh Display .................................................................................................................................... 511
14.3. Contours of Surface Deposition Rate of Ga ......................................................................................... 538
14.4. Scaled Residuals ................................................................................................................................ 539
14.5. Temperature Contours Near wall-4 .................................................................................................... 542
14.6. Contours of Surface Deposition Rate of ga ......................................................................................... 543
14.7. Contours of Surface Coverage of ga_s ................................................................................................ 544
14.8. Plot of Surface Deposition Rate of Ga ................................................................................................. 547
15.1. Problem Specification ....................................................................................................................... 550
15.2. Air-Blast Atomizer Mesh Display ........................................................................................................ 554
15.3. Scaled Residuals ................................................................................................................................ 568
15.4. Velocity Magnitude at Mid-Point of Atomizer Section ......................................................................... 571
15.5. Pathlines of Air in the Swirling Annular Stream ................................................................................... 574
15.6. Convergence History of Mass Fraction of ch3oh on Fluid .................................................................... 589
15.7. Convergence History of DPM Mass Source on Fluid ............................................................................ 590
15.8. Convergence History of Total Mass in Domain .................................................................................... 590
15.9. Convergence History of Evaporated Particle Mass .............................................................................. 591
15.10. Particle Tracks for the Spray Injection ............................................................................................... 593
15.11. Contours of DPM Temperature ......................................................................................................... 595
15.12. Contours of DPM Sauter Diameter ................................................................................................... 595
15.13. Vectors of DPM Mean Velocity Colored by DPM Velocity Magnitude .................................................. 597
15.14. Full Atomizer Display with Surface of Constant Methanol Mass Fraction ........................................... 600
15.15. Atomizer Display with Surface of Constant Methanol Mass Fraction Enhanced .................................. 601
16.1. Schematic of the Problem ................................................................................................................. 604
16.2. Default Display of the Nozzle Mesh .................................................................................................... 606
16.3. The Quadrilateral Mesh ..................................................................................................................... 607
16.4. Mesh Display of the Nozzle Mirrored and Upright .............................................................................. 610
16.5. Contours of Water Volume Fraction After 6 μs .................................................................................... 631
16.6. Contours of Water Volume Fraction After 12 μs ................................................................................... 631
16.7. Contours of Water Volume Fraction After 18 μs ................................................................................... 632
16.8. Contours of Water Volume Fraction After 24 μs ................................................................................... 632
16.9. Contours of Water Volume Fraction After 30 μs ................................................................................... 633
17.1. Problem Schematic ........................................................................................................................... 636
17.2. The Mesh in the Orifice ...................................................................................................................... 638
17.3. Contours of Static Pressure ................................................................................................................ 659
17.4. Mirrored View of Contours of Static Pressure ...................................................................................... 660
17.5. Contours of Turbulent Kinetic Energy ................................................................................................. 661
17.6. Contours of Vapor Volume Fraction .................................................................................................... 662
18.1. Problem Specification ....................................................................................................................... 664
18.2. Mesh Display .................................................................................................................................... 666
18.3. Contours of Static Pressure ................................................................................................................ 684
18.4. Contours of Velocity Magnitude ........................................................................................................ 685
18.5. Contours of Air Volume Fraction ........................................................................................................ 686
18.6. Contours of Air Volume Fraction — Higher Order Solution ................................................................. 687
18.7. Contours of Static Pressure — Eulerian Model .................................................................................... 692
18.8. Contours of Water Velocity Magnitude — Eulerian Model ................................................................... 693
18.9. Contours of Air Volume Fraction — Eulerian model ............................................................................ 694
19.1. Solidification in Czochralski Model .................................................................................................... 696
19.2. Mesh Display .................................................................................................................................... 698

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
xvi of ANSYS, Inc. and its subsidiaries and affiliates.
Tutorial Guide

19.3. Contours of Temperature for the Steady Conduction Solution ............................................................ 721
19.4. Contours of Temperature (Mushy Zone) for the Steady Conduction Solution ...................................... 723
19.5. Contours of Temperature at t=0.2 s .................................................................................................... 729
19.6. Contours of Stream Function at t=0.2 s .............................................................................................. 730
19.7. Contours of Liquid Fraction at t=0.2 s ................................................................................................. 731
19.8. Contours of Temperature at t=5 s ....................................................................................................... 732
19.9. Contours of Stream Function at t=5 s ................................................................................................. 733
19.10. Contours of Liquid Fraction at t=5 s ................................................................................................. 734
20.1. Problem Schematic ........................................................................................................................... 736
20.2. Mesh Display of the Fluidized Bed ..................................................................................................... 738
20.3. Region Marked for Patching .............................................................................................................. 761
20.4. Initial Volume Fraction of Granular Phase (solids) ............................................................................... 763
20.5. Plot of Mixture-Averaged Heat Transfer Coefficient in the Cell Next to the Heated Wall Versus Time ..... 765
20.6. Contours of Static Pressure ................................................................................................................ 766
20.7. Contours of Volume Fraction of Solids ................................................................................................ 767
21.1. Mesh Close to the Cylinder Surface .................................................................................................... 771
21.2. Contours of Velocity Magnitude ........................................................................................................ 771
21.3. Adjoint Observables Dialog Box ........................................................................................................ 772
21.4. Manage Adjoint Observables Dialog Box ........................................................................................... 772
21.5. Create New Observable Dialog Box .................................................................................................... 773
21.6. Manage Observables Dialog Box ....................................................................................................... 774
21.7. Adjoint Observables Dialog Box ........................................................................................................ 775
21.8. Adjoint Solution Controls Dialog Box ................................................................................................. 776
21.9. Adjoint Residual Monitors Dialog Box ................................................................................................ 778
21.10. Run Adjoint Calculation Dialog Box .................................................................................................. 779
21.11. Residuals for the Converged Solution .............................................................................................. 779
21.12. Adjoint Reporting Dialog Box .......................................................................................................... 780
21.13. Contours Dialog Box When Plotting Adjoint Fields ........................................................................... 781
21.14. Adjoint Sensitivity to Body Force X-Component Contours ................................................................ 782
21.15. Vectors Dialog Box .......................................................................................................................... 783
21.16. Shape Sensitivity Colored by Sensitivity to Mass Sources (Cell Values) ............................................... 784
21.17. The Design Tool Dialog Box ............................................................................................................. 785
21.18. Morphing Region Around Cylinder .................................................................................................. 786
21.19. Mesh After Deformation .................................................................................................................. 792
22.1. Schematic of the Battery Cell Problem ............................................................................................... 796
22.2. Model Options .................................................................................................................................. 799
22.3. Conductive Zones ............................................................................................................................. 801
22.4. Electric Contacts ............................................................................................................................... 802
22.5. Residual History of the Simulation ..................................................................................................... 813
22.6. Report Plot of Discharge Curve at 1 C ................................................................................................ 813
22.7. History of Maximum Temperature in the Domain ............................................................................... 814
22.8. Contour Plot of Phase Potential for the Positive Electrode .................................................................. 816
22.9. Contour Plot of Phase Potential for the Negative Electrode ................................................................. 818
22.10. Contour Plot of Temperature ........................................................................................................... 820
22.11. Vector Plot of Current Density .......................................................................................................... 822
22.12. NTGK Model: Discharge Curves ........................................................................................................ 823
22.13. NTGK Model: Maximum Temperature in the Domain ........................................................................ 824
22.14. Battery Pulse Discharge ................................................................................................................... 825
22.15. Internal Short Circuit Region Marked for Patching ............................................................................ 827
22.16. The Vector Plots of Current at the Positive Current Collectors ............................................................ 831
22.17. The Vector Plots of Current at the Negative Current Collectors .......................................................... 832
22.18. Contour Plot of Temperature ........................................................................................................... 834

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. xvii
Tutorial Guide

23.1. Schematic of the Battery Pack Problem .............................................................................................. 838


23.2. Model Options .................................................................................................................................. 841
23.3. Conductive Zones ............................................................................................................................. 843
23.4. Electric Contacts ............................................................................................................................... 844
23.5. Residual History of the Simulation ..................................................................................................... 854
23.6. Surface Report Plot of Discharge Curve at 200W ................................................................................ 854
23.7. Volume Report Plot of Maximum Temperature in the Domain ............................................................ 855
23.8. Vector Plot of Current Density ............................................................................................................ 857
23.9. Contour Plot of Temperature ............................................................................................................. 859
23.10. Ohmic Heat Generation Rate ........................................................................................................... 860
23.11. Total Heat Generation Rate .............................................................................................................. 861

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
xviii of ANSYS, Inc. and its subsidiaries and affiliates.
List of Tables
1. Mini Flow Chart Symbol Descriptions ..................................................................................................... xxii
1.1. View Manipulation Instructions ............................................................................................................... 8
6.1. Values for the Principle Direction Vectors ............................................................................................. 225
6.2. Values for the Viscous and Inertial Resistance ....................................................................................... 225
11.1. Meaning of Values ............................................................................................................................. 421
14.1. Selected Species ............................................................................................................................... 516
14.2. Selected Site and Solid Species .......................................................................................................... 518
14.3. Reaction Parameters ......................................................................................................................... 519
14.4. Properties of Species ......................................................................................................................... 522
14.5. Properties of Species ......................................................................................................................... 523
16.1. Ink Chamber Dimensions .................................................................................................................. 604

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. xix
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
xx of ANSYS, Inc. and its subsidiaries and affiliates.
Using This Manual
This preface is divided into the following sections:
1. What’s In This Manual
2. How To Use This Manual
3.Typographical Conventions Used In This Manual

1. What’s In This Manual


The ANSYS Fluent Tutorial Guide contains a number of tutorials that teach you how to use ANSYS Flu-
ent to solve different types of problems. In each tutorial, features related to problem setup and postpro-
cessing are demonstrated.

2. How To Use This Manual


Depending on your familiarity with computational fluid dynamics and the ANSYS Fluent software, you
can use this tutorial guide in a variety of ways.

2.1. For the Beginner


If you are a beginning user of ANSYS Fluent you should first read and solve Tutorial 1, in order to famil-
iarize yourself with the interface and with basic setup and solution procedures. You may then want to
try a tutorial that demonstrates features that you are going to use in your application. For example, if
you are planning to solve a problem using the non-premixed combustion model, you should look at
Using the Non-Premixed Combustion Model (p. 473).

You may want to refer to other tutorials for instructions on using specific features, such as custom field
functions, mesh scaling, and so on, even if the problem solved in the tutorial is not of particular interest
to you. To learn about postprocessing, you can look at Postprocessing (p. 65), which is devoted entirely
to postprocessing (although the other tutorials all contain some postprocessing as well).

2.2. For the Experienced User


If you are an experienced ANSYS Fluent user, you can read and/or solve the tutorial(s) that demonstrate
features that you are going to use in your application. For example, if you are planning to solve a
problem using the non-premixed combustion model, you should look at Using the Non-Premixed
Combustion Model (p. 473).

You may want to refer to other tutorials for instructions on using specific features, such as custom field
functions, mesh scaling, and so on, even if the problem solved in the tutorial is not of particular interest
to you. To learn about postprocessing, you can look at Postprocessing (p. 65), which is devoted entirely
to postprocessing (although the other tutorials all contain some postprocessing as well).

3. Typographical Conventions Used In This Manual


Several typographical conventions are used in this manual’s text to help you find commands in the
user interface.

• Different type styles are used to indicate graphical user interface items and text interface items. For example:

Iso-Surface dialog box


surface/iso-surface text command

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. xxi
Using This Manual

• The text interface type style is also used when illustrating exactly what appears on the screen to distinguish
it from the narrative text. In this context, user inputs are typically shown in boldface. For example,
solve/initialize/set-fmg-initialization

Customize your FMG initialization:


set the number of multigrid levels [5]

set FMG parameters on levels ..

residual reduction on level 1 is: [0.001]


number of cycles on level 1 is: [10] 100

residual reduction on level 2 is: [0.001]


number of cycles on level 2 is: [50] 100

• Mini flow charts are used to guide you through the ribbon or the tree, leading you to a specific option, dialog
box, or task page. The following tables list the meaning of each symbol in the mini flow charts.

Table 1: Mini Flow Chart Symbol Descriptions

Symbol Indicated Action


Look at the ribbon

Look at the tree


Double-click to open task page

Select from task page

Right-click the preceding item

For example,

Setting Up Domain → Mesh → Transform → Translate...

indicates selecting the Setting Up Domain ribbon tab, clicking Transform (in the Mesh group box)
and selecting Translate..., as indicated in the figure below:

And

Setup → Models → Viscous Model → Realizable k-epsilon

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
xxii of ANSYS, Inc. and its subsidiaries and affiliates.
Typographical Conventions Used In This Manual

indicates expanding the Setup and Models branches, right-clicking Viscous, and selecting Realizable
k-epsilon from the Model sub-menu, as shown in the following figure:

And

Setup → Boundary Conditions → velocity-inlet-5

indicates opening the task page as shown below:

In this manual, mini flow charts usually accompany a description of a dialog box or command, or a
screen illustration showing how to use the dialog box or command. They show you how to quickly
access a command or dialog box without having to search the surrounding material.

• In-text references to File ribbon tab selections can be indicated using a “/”. For example File/Write/Case...
indicates clicking the File ribbon tab and selecting Case... from the Write submenu (which opens the Select
File dialog box).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. xxiii
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
xxiv of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 1: Introduction to Using ANSYS Fluent: Fluid Flow and Heat
Transfer in a Mixing Elbow
This tutorial is divided into the following sections:
1.1. Introduction
1.2. Prerequisites
1.3. Problem Description
1.4. Setup and Solution
1.5. Summary

1.1. Introduction
This tutorial illustrates the setup and solution of a three-dimensional turbulent fluid flow and heat
transfer problem in a mixing elbow. The mixing elbow configuration is encountered in piping systems
in power plants and process industries. It is often important to predict the flow field and temperature
field in the area of the mixing region in order to properly design the junction.

This tutorial demonstrates how to do the following:

• Launch the serial version of ANSYS Fluent.

• Read an existing mesh file into ANSYS Fluent.

• Use mixed units to define the geometry and fluid properties.

• Set material properties and boundary conditions for a turbulent forced-convection problem.

• Create a surface report definition and use it as a convergence criterion.

• Calculate a solution using the pressure-based solver.

• Visually examine the flow and temperature fields using the postprocessing tools available in ANSYS Fluent.

• Change the solver method to coupled in order to increase the convergence speed.

• Adapt the mesh based on the temperature gradient to further improve the prediction of the temperature
field.

• Run the ANSYS Fluent solver in parallel.

1.2. Prerequisites
This tutorial assumes that you have little or no experience with ANSYS Fluent, and so each step will be
explicitly described.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow

1.3. Problem Description


The problem to be considered is shown schematically in Figure 1.1: Problem Specification (p. 2). A
cold fluid at 20° C flows into the pipe through a large inlet, and mixes with a warmer fluid at 40° C that
enters through a smaller inlet located at the elbow. The pipe dimensions are in inches and the fluid
properties and boundary conditions are given in SI units. The Reynolds number for the flow at the larger
inlet is 50,800, so a turbulent flow model will be required.

Note

Since the geometry of the mixing elbow is symmetric, only half of the elbow must be modeled
in ANSYS Fluent.

Figure 1.1: Problem Specification

1.4. Setup and Solution


To help you quickly identify graphical user interface items at a glance and guide you through the steps
of setting up and running your simulation, the ANSYS Fluent Tutorial Guide uses several type styles and
mini flow charts. See Typographical Conventions Used In This Manual (p. xxi) for detailed information.

The following sections describe the setup and solution steps for running this tutorial in serial:
1.4.1. Preparation
1.4.2. Launching ANSYS Fluent

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
2 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

1.4.3. Reading the Mesh


1.4.4. Setting Up Domain
1.4.5. Setting Up Physics
1.4.6. Solving
1.4.7. Displaying the Preliminary Solution
1.4.8. Using the Coupled Solver
1.4.9. Adapting the Mesh

1.4.1. Preparation
1. Download the introduction.zip file here.

2. Unzip introduction.zip to your working directory.

3. The elbow.msh can be found in the folder.

Note

ANSYS Fluent tutorials are prepared using ANSYS Fluent on a Windows system. The screen
shots and graphic images in the tutorials may be slightly different than the appearance on
your system, depending on the operating system and/or graphics card.

1.4.2. Launching ANSYS Fluent


1. From the Windows Start menu, select Start > All Programs > ANSYS 19.0 > Fluid Dynamics > Fluent
19.0 to start Fluent Launcher.

Fluent Launcher allows you to decide which version of ANSYS Fluent you will use, based on your
geometry and on your processing capabilities.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 3
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow

2. Ensure that the proper options are enabled.

a. Select 3D from the Dimension list by clicking the radio button or the text.

b. Select Parallel under Processing Options.

c. Set Processes to 4.

To show details of the parallel settings, click Show More Options, then go to the Parallel Settings
tab. Note that your Run Types will be Shared Memory on Local Machine.

d. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.

Note

An option is enabled when there is a check mark in the check box, and disabled when
the check box is empty. To change an option from disabled to enabled (or vice versa),
click the check box or the text.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
4 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

e. Ensure that the Double Precision option is enabled.

Note

Fluent will retain your preferences for future sessions.

Extra

You can also restore the default settings by clicking the Default button.

3. Set the working folder to the one created when you unzipped introduction_R190.zip.

a. Click the Show More Options button to reveal additional options.

b. Enter the path to your working folder for Working Directory by double-clicking the text box and typing.

Alternatively, you can click the browse button ( ) next to the Working Directory text box
and browse to the directory, using the Browse For Folder dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 5
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow

4. Click OK to launch ANSYS Fluent.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
6 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

1.4.3. Reading the Mesh


1. Read the mesh file elbow.msh.

Click the File ribbon tab, then click Read and Mesh... in the menus that open in order to open the
Select File dialog box.

File → Read → Mesh...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 7
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow

a. Select the mesh file by clicking elbow.msh in the introduction folder created when you unzipped the
original file.

b. Enable the Display Mesh After Reading in the Select File panel.

c. Click OK to read the file and close the Select File dialog box.

As the mesh file is read by ANSYS Fluent, messages will appear in the console reporting the progress
of the conversion. ANSYS Fluent will report that 13,852 hexahedral fluid cells have been read, along
with a number of boundary faces with different zone identifiers.

After having completed reading mesh, ANSYS Fluent displays the mesh in the graphics window.

Extra

You can use the mouse to probe for mesh information in the graphics window. If you
click the right mouse button with the pointer on any node in the mesh, information
about the associated zone will be displayed in the console, including the name of the
zone.

Alternatively, you can click the probe button ( ) in the graphics toolbar and click the
left mouse button on any node. This feature is especially useful when you have several
zones of the same type and you want to distinguish between them quickly.

For this 3D problem, you can make it easier to probe particular nodes by changing the
view. The following table describes how to manipulate objects in the graphics window:

Table 1.1: View Manipulation Instructions

Action Using Graphics Toolbar Buttons and the Mouse


Rotate view
(vertical, After clicking the Rotate View icon, , press and hold the left mouse
horizontal) button and drag the mouse. Dragging side to side rotates the view about
the vertical axis, and dragging up and down rotates the view about the
horizontal axis.
Translate or
pan view After clicking the Pan icon, , press and hold the left mouse button
and drag the object with the mouse until the view is satisfactory.
Zoom in and
out of view After clicking the Zoom In/Out icon, , press and hold the left mouse
button and drag the mouse up and down to zoom in and out of the view.
Zoom to
selected area After clicking the Zoom to Area icon, , press and hold the left mouse
button and drag the mouse diagonally to the right. This action will cause
a rectangle to appear in the display. When you release the mouse button,
a new view will be displayed that consists entirely of the contents of the
rectangle. Note that to zoom in, you must drag the mouse to the right,
and to zoom out, you must drag the mouse to the left.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
8 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Clicking the Fit to Window icon, , will cause the object to fit exactly and be centered
in the window.

After you have clicked a button in the graphics toolbar, you can return to the default

mouse button settings by clicking .

To judge the scale of your 3D geometry, you can click the Orthographic Projection icon,

. This will display the length scale ruler near the bottom of the graphics window.

Note that you can change the default mouse button actions in the Viewing tab (in the
Mouse group box). For more information, see the Fluent User's Guide.

2. Manipulate the mesh display using the axis triad to obtain a front view as shown in Figure 1.2: The Hexa-
hedral Mesh for the Mixing Elbow (p. 10).

a. Click the z-axis.

b. Clicking the Fit to Window icon, , will cause the object to fit exactly and be centered in the window.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 9
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow

c. Figure 1.2: The Hexahedral Mesh for the Mixing Elbow

Extra

You can also change the orientation of the objects in the graphics window using the

axis triad as follows:

• To orient the model in the positive/negative direction, click an axis/semi-sphere.

• To orient the model in the negative/positive direction, right-click an axis/semi-sphere.

• To set the isometric view, click the cyan iso-ball.

• To perform in-plane clockwise or counterclockwise 90° rotations, click the white rotational
arrows .

• To perform free rotations in any direction, click and hold—in the vicinity of the triad—and
use the mouse. Release the left mouse button to stop rotating.

1.4.4. Setting Up Domain


In this step, you will perform the mesh-related activities using the Setting Up Domain ribbon tab (Mesh
group box).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
10 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

1. Check the mesh.

Setting Up Domain → Mesh → Check

ANSYS Fluent will report the results of the mesh check in the console.
Domain Extents:
x-coordinate: min (m) = -8.000000e+00, max (m) = 8.000000e+00
y-coordinate: min (m) = -9.134634e+00, max (m) = 8.000000e+00
z-coordinate: min (m) = 0.000000e+00, max (m) = 2.000000e+00
Volume statistics:
minimum volume (m3): 5.098304e-04
maximum volume (m3): 2.330736e-02
total volume (m3): 1.607154e+02
Face area statistics:
minimum face area (m2): 4.865882e-03
maximum face area (m2): 1.017924e-01
Checking mesh....................................
Done

The mesh check will list the minimum and maximum x, y, and z values from the mesh in the default
SI unit of meters. It will also report a number of other mesh features that are checked. Any errors
in the mesh will be reported at this time. Ensure that the minimum volume is not negative, since
ANSYS Fluent cannot begin a calculation when this is the case.

Note

The minimum and maximum values may vary slightly when running on different platforms.

2. Scale the mesh.

Setting Up Domain → Mesh → Scale...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 11
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow

a. Ensure that Convert Units is selected in the Scaling group box.

b. From the Mesh Was Created In drop-down list, select in by first clicking the down-arrow button and
then clicking the in item from the list that appears.

c. Click Scale to scale the mesh.

Warning

Be sure to click the Scale button only once.

Domain Extents will continue to be reported in the default SI unit of meters.

d. Select in from the View Length Unit In drop-down list to set inches as the working unit for length.

e. Confirm that the domain extents are as shown in the previous dialog box.

f. Close the Scale Mesh dialog box.

The mesh is now sized correctly and the working unit for length has been set to inches.

Note

Because the default SI units will be used for everything except length, there is no need
to change any other units in this problem. The choice of inches for the unit of length has
been made by the actions you have just taken. If you want a different working unit for
length, other than inches (for example, millimeters), click Units... in the Setting Up Do-
main ribbon tab (Mesh group box) and make the appropriate change in the Set Units
dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
12 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

3. Right click in the graphics window and select Refresh Display

4. Clicking the Fit to Window icon, , will cause the object to fit exactly and be centered in the window.

5. Check the mesh.

Setting Up Domain → Mesh → Check

Note

It is a good idea to check the mesh after you manipulate it (that is, scale, convert to
polyhedra, merge, separate, fuse, add zones, or smooth and swap). This will ensure that
the quality of the mesh has not been compromised.

1.4.5. Setting Up Physics


In the steps that follow, you will select a solver and specify physical models, material properties, and
zone conditions for your simulation using the Setting Up Physics ribbon tab.

1. In the Solver group box of the Setting Up Physics ribbon tab, retain the default selection of the steady
pressure-based solver.

Setting Up Physics → Solver

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 13
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow

2. Set up your models for the CFD simulation using the Models group box of the Setting Up Physics ribbon
tab.

Note

You can also use the Models task page, which can be accessed from the tree by expanding
Setup and double-clicking the Models tree item.

a. Enable heat transfer by activating the energy equation.

In the Setting Up Physics ribbon tab, enable Energy (Models group box).

Setting Up Physics → Models → Energy

Note

You can also double-click the Setup/Models/Energy tree item and enable the energy
equation in the Energy dialog box.

b. Enable the - turbulence model.

Setting Up Physics → Models → Viscous...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
14 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

i. Select k-epsilon from the Model list.

The Viscous Model dialog box will expand.

ii. Retain the default selection of Standard in the k-epsilon Model group box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 15
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow

iii. Select Enhanced Wall Treatment in the Near-Wall Treatment group box.

Note

The default Standard Wall Functions are generally applicable if the first cell center
adjacent to the wall has a y+ larger than 30. In contrast, the Enhanced Wall
Treatment option provides consistent solutions for all y+ values. Enhanced Wall
Treatment is recommended when using the k-epsilon model for general single-
phase fluid flow problems. For more information about Near Wall Treatments in
the k-epsilon model, refer to the Fluent User's Guide.

iv. Click OK to accept all the other default settings and close the Viscous Model dialog box.

Note that the Viscous... label in the ribbon is displayed in blue to indicate that the Viscous
model is enabled. Also Energy and Viscous appear as enabled under the Setup/Models tree
branch.

Note

While the ribbon is the primary tool for setting up and solving your problem, the
tree is a dynamic representation of your case. The models, materials, conditions,
and other settings that you have specified in your problem will appear in the tree.
Many of the frequently used ribbon items are also available via the right-click
functionality of the tree.

3. Set up the materials for the CFD simulation using the Materials group box of the Setting Up Physics ribbon
tab.

Create a new material called water using the Create/Edit Materials dialog box.

a. In the Setting Up Physics ribbon tab, click Create/Edit... (Materials group box).

Setting Up Physics → Materials → Create/Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
16 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

b. Copy the material water-liquid (h2o < l >) from the materials database (accessed by clicking the Fluent
Database... button).

c. Select water-liquid (h2o < l >) from the materials list and Click Copy, then close the Fluent Database...
panel.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 17
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow

d. Ensure that there are now two materials (water-liquid and air) defined locally by examining the Fluent
Fluid Materials drop-down list.

Both the materials will also be listed under Fluid in the Materials task page and under the Materials
tree branch.

e. Close the Create/Edit Materials dialog box.

4. Set up the cell zone conditions for the fluid zone (fluid) using the Zones group box of the Setting Up
Physics ribbon tab.

a. In the Setting Up Physics tab, click Cell Zones (Zones group box).

Setting Up Physics → Zones → Cell Zones

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
18 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

This opens the Cell Zone Conditions task page.

b. Double-click fluid in the Zone list to open the Fluid dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 19
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow

Note

You can also double-click the Setup/Cell Zone Conditions/fluid tree item in order
to open the corresponding dialog box.

c. Select water-liquid from the Material Name drop-down list.

d. Click OK to close the Fluid dialog box.

5. Set up the boundary conditions for the inlets, outlet, and walls for your CFD analysis using the Zones group
box of the Setting Up Physics ribbon tab.

a. In the Setting Up Physics tab, click Boundaries (Zones group box).

Setting Up Physics → Zones → Boundaries

This opens the Boundary Conditions task page where the boundaries defined in your simulation
are displayed in the Zone selection list.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
20 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Note

To display boundary zones grouped by zone type (as shown previously), click the

Toggle Tree View button ( ) in the upper right corner of the Boundary Conditions
task page and select Zone Type under Group By.

Here the zones have names with numerical identifying tags. It is good practice to give boundaries
meaningful names in a meshing application to help when you set up the model. You can also
change boundary names in Fluent by simply editing the boundary and making revisions in the
Zone Name text box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 21
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow

b. Set the boundary conditions at the cold inlet (velocity-inlet-5).

Tip

If you are unsure of which inlet zone corresponds to the cold inlet, you can probe
the mesh display using the right mouse button or the probe toolbar button

( ) as described previously in this tutorial. The information will be displayed


in the ANSYS Fluent console, and the zone you probed will be automatically se-
lected from the Zone selection list in the Boundary Conditions task page.

i. Double-click velocity-inlet-5 to open the Velocity Inlet dialog box.

ii. Retain the default selection of Magnitude, Normal to Boundary from the Velocity Specification
Method drop-down list.

iii. Enter 0.4 [m/s] for Velocity Magnitude.

iv. In the Turbulence group box, select Intensity and Hydraulic Diameter from the Specification
Method drop-down list.

v. Retain the default value of 5 [%] for Turbulent Intensity.

vi. Enter 4 [inches] for Hydraulic Diameter.

The hydraulic diameter is defined as:

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
22 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

where is the cross-sectional area and is the wetted perimeter.

vii. Click the Thermal tab.

viii.Enter 293.15 [K] for Temperature.

ix. Click OK to close the Velocity Inlet dialog box.

Note

You can also access the Velocity Inlet dialog box by double-clicking the
Setup/Boundary Conditions/velocity-inlet-5 tree item.

c. In a similar manner, set the boundary conditions at the hot inlet (velocity-inlet-6), using the values in
the following table:

Setting Value
Velocity Specification Method Magnitude, Normal to Boundary
Velocity Magnitude 1.2 [m/s]
Specification Method Intensity and Hydraulic Diameter
Turbulent Intensity 5 [%]
Hydraulic Diameter 1 [inch]
Temperature 313.15 [K]

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 23
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow

d. Double-click pressure-outlet-7 in the Zone selection list and set the boundary conditions at the outlet,
as shown in the following figure.

Note

• You do not need to set a backflow temperature in this case (in the Thermal tab) because
the material properties are not functions of temperature. If they were, a flow-weighted
average of the inlet conditions would be a good starting value.

• ANSYS Fluent will use the backflow conditions only if the fluid is flowing into the compu-
tational domain through the outlet. Since backflow might occur at some point during the
solution procedure, you should set reasonable backflow conditions to prevent convergence
from being adversely affected.

e. For the wall of the pipe (wall), retain the default value of 0 W/m2 for Heat Flux in the Thermal tab.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
24 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

1.4.6. Solving
In the steps that follow, you will set up and run the calculation using the Solving ribbon tab.

Note

You can also use the task pages listed under the Solution tree branch to perform solution-
related activities.

1. Select a solver scheme.

a. In the Solving ribbon tab, click Methods... (Solution group box).

Solving → Solution → Methods...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 25
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow

b. In the Solution Methods task page, retain the default selections for the Scheme and Spatial Discret-
ization.

2. Enable the plotting of residuals during the calculation.

a. In the Solving ribbon tab, click Residuals... (Reports group box).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
26 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Solving → Reports → Residuals...

Note

You can also access the Residual Monitors dialog box by double-clicking the Solu-
tion/Monitors/Residual tree item.

b. Ensure that Plot is enabled in the Options group box.

c. Retain the default value of 0.001 for the Absolute Criteria of continuity.

d. Click OK to close the Residual Monitors dialog box.

Note

By default, the residuals of all of the equations solved for the physical models enabled
for your case will be monitored and checked by ANSYS Fluent as a means to determine
the convergence of the solution. It is a good practice to also create and plot a surface
report definition that can help evaluate whether the solution is truly converged. You will
do this in the next step.

3. Create a surface report definition of average temperature at the outlet (pressure-outlet-7).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 27
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow

Solving → Reports → Definitions → New → Surface Report → Mass-Weighted Average...

Note

You can also access the Surface Report Definition dialog box by right-clicking Report
Definitions in the tree (under Solution) and selecting New/Surface Report/Mass-
Weighted Average... from the menu that opens.

a. Enter outlet-temp-avg for the Name of the report definition.

b. Enable Report File, Report Plot, and Print to Console in the Create group box.

During a solution run, ANSYS Fluent will write solution convergence data in a report file, plot the
solution convergence history in a graphics window, and print the value of the report definition to the
console.

c. Set Frequency to 3 by clicking the up-arrow button.

This setting instructs ANSYS Fluent to update the plot of the surface report, write data to a file, and
print data in the console after every 3 iterations during the solution.

d. Select Temperature... and Static Temperature from the Field Variable drop-down lists.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
28 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

e. Select pressure-outlet-7 from the Surfaces selection list.

f. Click OK to save the surface report definition and close the Surface Report Definition dialog box.

The new surface report definition outlet-temp-avg will appear under the Solution/Report
Definitions tree item. ANSYS Fluent also automatically creates the following items:

• outlet-temp-avg-rfile (under the Solution/Monitors/Report Files tree branch)

• outlet-temp-avg-rplot (under the Solution/Monitors/Report Plots tree branch)

4. In the tree, double-click outlet-temp-avg-rfile (under Solution/Monitors/Report Files) and examine the
report file settings in the Edit Report File dialog box.

The dialog box is automatically populated with data from the outlet-temp-avg report definition.

a. Verify that outlet-temp-avg is in the Selected Report Definitions list.

If you had created multiple report definitions, the additional ones would be listed under Available
Report Definitions, and you could use the Add>> and <<Remove buttons to manage which were
written in this particular report definition file.

b. (optional) Edit the name and location of the resulting file as necessary using the Output File Base
Name field or Browse... button.

c. Click OK to close the Edit Report File dialog box.

5. Create a convergence condition for outlet-temp-avg.

Solving → Reports → Convergence...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 29
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow

a. Click the Add button.

b. Enter con-outlet-temp-avg for Conditions.

c. Select outlet-temp-avg from the Report Definition drop-down list.

d. Enter 1e-5 for Stop Criterion.

e. Enter 20 for Ignore Iterations Before.

f. Enter 15 for Use Iterations.

g. Enable Print.

h. Set Every Iteration to 3.

i. Click OK to save the convergence condition settings and close the Convergence Conditions dialog
box.

These settings will cause Fluent to consider the solution converged when the surface report definition
value for each of the previous 15 iterations is within 0.001% of the current value. Convergence of the
values will be checked every 3 iterations. The first 20 iterations will be ignored, allowing for any initial
solution dynamics to settle out. Note that the value printed to the console is the deviation between the
current and previous iteration values only.

6. Initialize the flow field using the Initialization group box of the Solving ribbon tab.

Solving → Initialization

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
30 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Retain the default selection of Hybrid from the Method list.

b. Click Initialize.

7. Save the case file (elbow1.cas.gz).

File → Write → Case...

a. (optional) Indicate the folder in which you would like the file to be saved.

By default, the file will be saved in the folder from which you read in elbow.msh (that is, the in-
troduction folder). You can indicate a different folder by browsing to it or by creating a new
folder.

b. Enter elbow1.cas.gz for Case File.

Adding the extension .gz to the end of the file name extension instructs ANSYS Fluent to save
the file in a compressed format. You do not have to include .cas in the extension (for example,
if you enter elbow1.gz, ANSYS Fluent will automatically save the file as elbow1.cas.gz).
The .gz extension can also be used to save data files in a compressed format.

c. Ensure that the default Write Binary Files option is enabled, so that a binary file will be written.

d. Click OK to save the case file and close the Select File dialog box.

8. Start the calculation by requesting 150 iterations in the Solving ribbon tab (Run Calculation group box).

Solving → Run Calculation

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 31
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow

a. Enter 150 for No. of Iterations.

b. Click Calculate.

Note

By starting the calculation, you are also starting to save the surface report data at the
rate specified in the Surface Report Definition dialog box. If a file already exists in
your working directory with the name you specified in the Edit Report File dialog
box, then a Question dialog box will open, asking if you would like to append the
new data to the existing file. Click No in the Question dialog box, and then click OK
in the Warning dialog box that follows to overwrite the existing file.

As the calculation progresses, the surface report history will be plotted in the outlet-temp-avg-
rplot tab in the graphics window (Figure 1.3: Convergence History of the Mass-Weighted Average
Temperature (p. 32)).

Figure 1.3: Convergence History of the Mass-Weighted Average Temperature

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
32 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Similarly, the residuals history will be plotted in the Scaled Residuals tab in the graphics window
(Figure 1.4: Residuals (p. 33)).

Figure 1.4: Residuals

Note

You can monitor the two convergence plots simultaneously by right-clicking a tab in
the graphics window and selecting SubWindow View from the menu that opens. To
return to a tabbed graphics window view, right-click a graphics window title area and
select Tabbed View.

Since the residual values vary slightly by platform, the plot that appears on your screen may not
be exactly the same as the one shown here.

The solution will be stopped by ANSYS Fluent when any of the following occur:

• the surface report definition converges to within the tolerance specified in the Convergence
Conditions dialog box

• the residual monitors converge to within the tolerances specified in the Residual Monitors
dialog box

• the number of iterations you requested in the Run Calculation task page has been reached

In this case, the solution is stopped when the convergence criterion on outlet temperature is
satisfied, after approximately 72 iterations. The exact number of iterations for convergence will
vary, depending on the platform being used. An Information dialog box will open to alert you
that the calculation is complete. Click OK in the Information dialog box to proceed.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 33
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow

9. Examine the plots for convergence (Figure 1.3: Convergence History of the Mass-Weighted Average Tem-
perature (p. 32) and Figure 1.4: Residuals (p. 33)).

Note

There are no universal metrics for judging convergence. Residual definitions that are
useful for one class of problem are sometimes misleading for other classes of problems.
Therefore it is a good idea to judge convergence not only by examining residual levels,
but also by monitoring relevant integrated quantities and checking for mass and energy
balances.

There are three indicators that convergence has been reached:

• The residuals have decreased to a sufficient degree.

The solution has converged when the Convergence Criterion for each variable has
been reached. The default criterion is that each residual will be reduced to a value of
less than 10–3, except the energy residual, for which the default criterion is 10–6.

• The solution no longer changes with more iterations.

Sometimes the residuals may not fall below the convergence criterion set in the case
setup. However, monitoring the representative flow variables through iterations may
show that the residuals have stagnated and do not change with further iterations. This
could also be considered as convergence.

• The overall mass, momentum, energy, and scalar balances are obtained.

You can examine the overall mass, momentum, energy and scalar balances in the Flux
Reports dialog box. The net imbalance should be less than 0.2 % of the net flux through
the domain when the solution has converged. In the next step you will check to see
if the mass balance indicates convergence.

10. Examine the mass flux report for convergence using the Postprocessing ribbon tab.

Postprocessing → Reports → Fluxes...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
34 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Ensure that Mass Flow Rate is selected from the Options list.

b. Select pressure-outlet-7, velocity-inlet-5, and velocity-inlet-6 from the Boundaries selection list.

c. Click Compute.

The individual and net results of the computation will be displayed in the Results and Net Results
boxes, respectively, in the Flux Reports dialog box, as well as in the console.

The sum of the flux for the inlets should be very close to the sum of the flux for the outlets. The net
results show that the imbalance in this case is well below the 0.2% criterion suggested previously.

d. Close the Flux Reports dialog box.

11. Save the data file (elbow1.dat.gz).

File → Write → Data...

In later steps of this tutorial you will save additional case and data files with different suffixes.

1.4.7. Displaying the Preliminary Solution


In the steps that follow, you will visualize various aspects of the flow for the preliminary solution using
the Postprocessing ribbon tab.

1. Display filled contours of velocity magnitude on the symmetry plane (Figure 1.5: Predicted Velocity Distri-
bution after the Initial Calculation (p. 37)).

Postprocessing → Graphics → Contours → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 35
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow

a. Enable Filled in the Options group box.

b. Ensure that Node Values is enabled in the Options group box.

c. Select Velocity... and Velocity Magnitude from the Contours of drop-down lists.

d. Select symmetry from the Surfaces selection list.

e. Click Display to display the contours in the active graphics window. Clicking the Fit to Window icon

( ) will cause the object to fit exactly and be centered in the window.

Note

If you cannot see the velocity contour display, select the appropriate tab in the
graphics window.

f. Close the Contours dialog box.

Viewing → Display

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
36 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Disable the Headlight and Lighting options.

Figure 1.5: Predicted Velocity Distribution after the Initial Calculation

Extra

When you probe a point in the displayed domain with the right mouse button or the
probe tool, the level of the corresponding contour is highlighted in the colormap in the
graphics window, and is also reported in the console.

2. Create and display a definition for temperature contours on the symmetry plane (Figure 1.6: Predicted
Temperature Distribution after the Initial Calculation (p. 39)).

Postprocessing → Graphics → Contours → New...

You can create contour definitions and save them for later use.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 37
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow

a. Enter contour-temp for Contour Name.

b. Select Temperature... and Static Temperature from the Contours of drop-down lists.

c. Click Save/Display and close the Contours dialog box.

The new contour-temp definition appears under the Results/Graphics/Contours tree branch.
To edit your contour definition, right-click it and select Edit... from the menu that opens.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
38 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 1.6: Predicted Temperature Distribution after the Initial Calculation

3. Display velocity vectors on the symmetry plane (Figure 1.9: Magnified View of Resized Velocity Vec-
tors (p. 43)).

Postprocessing → Graphics → Vectors → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 39
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow

a. Select symmetry from the Surfaces selection list.

b. Click Display to plot the velocity vectors.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
40 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 1.7: Velocity Vectors Colored by Velocity Magnitude

The Auto Scale option is enabled by default in the Options group box. This scaling sometimes
creates vectors that are too small or too large in the majority of the domain. You can improve
the clarity by adjusting the Scale and Skip settings, thereby changing the size and number of
the vectors when they are displayed.

c. Enter 4 for Scale.

d. Set Skip to 2.

e. Click Display again to redisplay the vectors.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 41
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow

Figure 1.8: Resized Velocity Vectors

f. Close the Vectors dialog box.

g. Zoom in on the vectors in the display.

To manipulate the image, refer to Table 1.1: View Manipulation Instructions (p. 8). The image will
be redisplayed at a higher magnification (Figure 1.9: Magnified View of Resized Velocity Vectors (p. 43)).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
42 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 1.9: Magnified View of Resized Velocity Vectors

h. Zoom out to the original view.

Clicking the Fit to Window icon, , will cause the object to fit exactly and be centered in
the window.

4. Create a line at the centerline of the outlet. For this task, you will use the Surface group box of the Post-
processing tab.

Postprocessing → Surface → Create → Iso-Surface...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 43
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow

a. Select Mesh... and Z-Coordinate from the Surface of Constant drop-down lists.

b. Click Compute to obtain the extent of the mesh in the z-direction.

The range of values in the z-direction is displayed in the Min and Max fields.

c. Retain the default value of 0 inches for Iso-Values.

d. Select pressure-outlet-7 from the From Surface selection list.

e. Enter z=0_outlet for New Surface Name.

f. Click Create.

The new line surface representing the intersection of the plane z=0 and the surface pressure-
outlet-7 is created, and its name z=0_outlet appears in the From Surface selection list.

Note

• After the line surface z=0_outlet is created, a new entry will automatically be generated
for New Surface Name, in case you would like to create another surface.

• If you want to delete or otherwise manipulate any surfaces, click Manage... to open the
Surfaces dialog box.

g. Close the Iso-Surface dialog box.

5. Display and save an XY plot of the temperature profile across the centerline of the outlet for the initial
solution (Figure 1.10: Outlet Temperature Profile for the Initial Solution (p. 46)).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
44 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Postprocessing → Plots → XY Plot → Edit...

a. Select Temperature... and Static Temperature from the Y Axis Function drop-down lists.

b. Select the z=0_outlet surface you just created from the Surfaces selection list.

c. Click Plot.

d. Enable Write to File in the Options group box.

The button that was originally labeled Plot will change to Write....

e. Click Write....

i. In the Select File dialog box, enter outlet_temp1.xy for XY File.

ii. Click OK to save the temperature data and close the Select File dialog box.

f. Close the Solution XY Plot dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 45
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow

Figure 1.10: Outlet Temperature Profile for the Initial Solution

6. Define a custom field function for the dynamic head formula ( ).

User Defined → Field Functions → Custom...

a. Select Density... and Density from the Field Functions drop-down lists, and click the Select button
to add density to the Definition field.

b. Click the X button to add the multiplication symbol to the Definition field.

c. Select Velocity... and Velocity Magnitude from the Field Functions drop-down lists, and click the
Select button to add |V| to the Definition field.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
46 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

d. Click y^x to raise the last entry in the Definition field to a power, and click 2 for the power.

e. Click the / button to add the division symbol to the Definition field, and then click 2.

f. Enter dynamic-head for New Function Name.

g. Click Define and close the Custom Field Function Calculator dialog box.

The dynamic-head tree item will appear under the Parameters & Customization/Custom Field
Functions tree branch.

7. Display filled contours of the custom field function (Figure 1.11: Contours of the Dynamic Head Custom
Field Function (p. 48)).

Postprocessing → Graphics → Contours → Edit...

a. Select Custom Field Functions... and dynamic-head from the Contours of drop-down lists.

Tip

Custom Field Functions... is at the top of the upper Contours of drop-down


list.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 47
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow

b. Ensure that symmetry is selected from the Surfaces selection list.

c. Click Display and close the Contours dialog box.

Figure 1.11: Contours of the Dynamic Head Custom Field Function

Note

You may need to change the view by zooming out after the last vector display, if you
have not already done so.

8. Save the settings for the custom field function by writing the case and data files (elbow1.cas.gz and
elbow1.dat.gz).

File → Write → Case & Data...

a. Ensure that elbow1.cas.gz is entered for Case/Data File.

Note

When you write the case and data file at the same time, it does not matter whether
you specify the file name with a .cas or .dat extension, as both will be saved.

b. Click OK to save the files and close the Select File dialog box.

c. Click OK to overwrite the files that you had saved earlier.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
48 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

1.4.8. Using the Coupled Solver


The elbow solution computed in the first part of this tutorial used the SIMPLE solver scheme for Pressure-
Velocity coupling. For many general fluid-flow problems, convergence speed can be improved by using the
Coupled solver. You will now change the Solution Method to a coupled scheme and compare the convergence
speed of the SIMPLE and Coupled solvers.

1. Change the solver settings.

Solving → Solution → Methods...

a. Select Coupled from the Scheme drop-down list.

b. Leave the Spatial Discretization options at their default settings.

2. Re-initialize the flow field.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 49
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow

Solving → Initialization → Initialize

3. Run the solution for an additional 90 iterations.

Solving → Run Calculation

a. Enter 90 for No. of Iterations.

b. Click Calculate.

A dialog box will appear stating that outlet-temp-avg-rfile.out already exists, and
asking if you want to create a new file. Click No. Another dialog box will appear asking whether
it is OK to overwrite the file. Click Yes.

The solution will converge in approximately 36 iterations (Figure 1.12: Residuals for the Coupled
Solver Calculation (p. 50)). Note that this is faster than the convergence rate using the SIMPLE
pressure-velocity coupling. The convergence history is shown in Figure 1.13: Convergence History
of Mass-Weighted Average Temperature (p. 51).

Figure 1.12: Residuals for the Coupled Solver Calculation

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
50 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 1.13: Convergence History of Mass-Weighted Average Temperature

1.4.9. Adapting the Mesh


For the first two runs of this tutorial, you have solved the elbow problem using a fairly coarse mesh.
The elbow solution can be improved further by refining the mesh to better resolve the flow details.
ANSYS Fluent provides a built-in capability to easily adapt (locally refine) the mesh according to solution
gradients. In the following steps you will adapt the mesh based on the temperature gradients in the
current solution and compare the results with the previous results.

1. Adapt the mesh in the regions of high temperature gradient. For this task, you will use the Adapt group
box in the Setting Up Domain ribbon tab.

Setting Up Domain → Adapt → Mark/Adapt Cells → Gradient...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 51
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow

a. Ensure that Refine is enabled in the Options group box.

ANSYS Fluent will not coarsen beyond the original mesh for a 3D mesh. Hence, it is not necessary to
deselect Coarsen in this instance.

b. Select Temperature... and Static Temperature from the Gradients of drop-down lists.

c. Click Compute.

ANSYS Fluent will update the Min and Max values to show the minimum and maximum temperature
gradient.

d. Enter 0.003 for Refine Threshold.

A general rule is to use 10% of the maximum gradient when setting the value for Refine Threshold.

e. Click Mark.

ANSYS Fluent will report in the console that approximately 1289 cells were marked for refinement.

f. Click Manage... to open the Manage Adaption Registers dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
52 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

i. Click Display.

ANSYS Fluent will display the cells marked for adaption in the graphics window (Figure 1.14: Cells
Marked for Adaption (p. 54)).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 53
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow

Figure 1.14: Cells Marked for Adaption

Extra You can change the way ANSYS Fluent displays cells marked for adaption (Fig-
ure 1.15: Alternative Display of Cells Marked for Adaption (p. 56)) by performing the following
steps:

A. Click Options... in the Manage Adaption Registers dialog box to open the Adaption
Display Options dialog box.

B. Enable Wireframe in the Refine group box.

C. Enable Filled in the Options group box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
54 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

D. Enable Draw Mesh in the Options group box.

The Mesh Display dialog box will open.

E. Ensure that only the Edges option is enabled in the Options group box.

F. Select Feature from the Edge Type list.

G. Select all of the items except default-interior and z=0_outlet from the Surfaces selection
list.

H. Click Display and close the Mesh Display dialog box.

I. Click OK to close the Adaption Display Options dialog box.

J. Click Display in the Manage Adaption Registers dialog box.

K. Rotate the view and zoom in to get the display shown in Figure 1.15: Alternative Display
of Cells Marked for Adaption (p. 56).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 55
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow

Figure 1.15: Alternative Display of Cells Marked for Adaption

L. After viewing the marked cells, rotate the view back and zoom out again.

M. Click Options... in the Manage Adaption Registers dialog box to open the Adaption
Display Options dialog box again.

N. In the Adaption Display Options dialog box, disable the Draw Mesh option and click
OK to close it.

ii. In the Manage Adaption Registers dialog box, ensure that gradient-r0 is selected from the Re-
gisters selection list.

iii. Click Adapt in the Manage Adaption Registers dialog box.

A Question dialog box will open, confirming your intention to adapt the mesh. Click Yes to pro-
ceed.

iv. Close the Manage Adaption Registers dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
56 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

g. Close the Gradient Adaption dialog box.

2. Display the adapted mesh (Figure 1.16: The Adapted Mesh (p. 58)).

Setting Up Domain → Mesh → Display...

a. Select All from the Edge Type list.

b. Deselect all of the highlighted items from the Surfaces selection list except for symmetry.

Tip

To deselect all surfaces, click the Deselect All Shown button ( ) at the top of the
Surfaces selection list. Then select the desired surface from the Surfaces selection
list.

c. Click Display and close the Mesh Display dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 57
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow

Figure 1.16: The Adapted Mesh

3. Request an additional 90 iterations.

Solving → Run Calculation → Calculate

The solution will converge after approximately 30 additional iterations (Figure 1.17: The Complete Residual
History (p. 59) and Figure 1.18: Convergence History of Mass-Weighted Average Temperature (p. 59)).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
58 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 1.17: The Complete Residual History

Figure 1.18: Convergence History of Mass-Weighted Average Temperature

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 59
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow

4. Save the case and data files for the Coupled solver solution with an adapted mesh (elbow2.cas.gz and
elbow2.dat.gz).

File → Write → Case & Data...

a. Enter elbow2.gz for Case/Data File.

b. Click OK to save the files and close the Select File dialog box.

The files elbow2.cas.gz and elbow2.dat.gz will be saved in your default folder.

5. Display the temperature distribution (using node values) on the revised mesh using the temperature contours
definition that you created earlier (Figure 1.19: Filled Contours of Temperature Using the Adapted
Mesh (p. 60)).

Right-click the Results/Graphics/Contours/contour-temp tree item and select Display from the
menu that opens.

Results → Graphics → Contours → contour-temp Display

Figure 1.19: Filled Contours of Temperature Using the Adapted Mesh

6. Display and save an XY plot of the temperature profile across the centerline of the outlet for the adapted
solution (Figure 1.20: Outlet Temperature Profile for the Adapted Coupled Solver Solution (p. 62)).

Postprocessing → Plots → XY Plot → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
60 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Ensure that the Write to File option is disabled in the Options group box.

b. Ensure that Temperature... and Static Temperature are selected from the Y Axis Function drop-down
lists.

c. Ensure that z=0_outlet is selected from the Surfaces selection list.

d. Click Plot.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 61
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow

Figure 1.20: Outlet Temperature Profile for the Adapted Coupled Solver Solution

e. Enable Write to File in the Options group box.

The button that was originally labeled Plot will change to Write....

f. Click Write....

i. In the Select File dialog box, enter outlet_temp2.xy for XY File.

ii. Click OK to save the temperature data.

g. Close the Solution XY Plot dialog box.

7. Display the outlet temperature profiles for both solutions on a single plot (Figure 1.21: Outlet Temperature
Profiles for the Two Solutions (p. 64)).

Postprocessing → Plots → File...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
62 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Click the Load... button to open the Select File dialog box.

i. Click once on outlet_temp1.xy and outlet_temp2.xy.

Each of these files will be listed with their folder path in the bottom list to indicate that they have
been selected.

Tip

If you select a file by mistake, simply click the file in the bottom list and then
click Remove.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 63
Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow

ii. Click OK to save the files and close the Select File dialog box.

b. Select the folder path ending in outlet_temp1.xy from the Curve Information selection list.

c. Enter Before Adaption in the lower-right text-entry box.

d. Click the Change Legend Entry button.

The item in the Legend Entries list for outlet_temp1.xy will be changed to Before Adaption. This
legend entry will be displayed in the upper-left corner of the XY plot generated in a later step.

e. In a similar manner, change the legend entry for the folder path ending in outlet_temp2.xy to be Ad-
apted Mesh.

f. Click Plot and close the File XY Plot dialog box.

Figure 1.21: Outlet Temperature Profiles for the Two Solutions (p. 64) shows the two temperature profiles
at the centerline of the outlet. It is apparent by comparing both the shape of the profiles and the predicted
outer wall temperature that the solution is highly dependent on the mesh and solution options. Specifically,
further mesh adaption should be used in order to obtain a solution that is independent of the mesh.

Figure 1.21: Outlet Temperature Profiles for the Two Solutions

1.5. Summary
A comparison of the convergence speed for the SIMPLE and Coupled pressure-velocity coupling schemes
indicates that the latter converges much faster. With more complex meshes, the difference in speed
between the two schemes can be significant.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
64 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 2: Postprocessing
This tutorial is divided into the following sections:
2.1. Introduction
2.2. Prerequisites
2.3. Problem Description
2.4. Setup and Solution
2.5. Summary

2.1. Introduction
This tutorial demonstrates the postprocessing capabilities of Fluent using a 3D model of a flat circuit
board with a heat generating electronic chip mounted on it. The flow over the chip is laminar and involves
conjugate heat transfer.

The heat transfer involves conduction in the chip and conduction and convection in the surrounding
fluid. The physics of conjugate heat transfer such as this are common in many engineering applications,
including the design and cooling of electronic components.

In this tutorial, you will read the case and data files (without doing the calculation) and perform a
number of postprocessing exercises.

This tutorial demonstrates how to do the following:

• Add lights to the display at multiple locations.

• Create surfaces for the display of 3D data.

• Display filled contours of temperature on several surfaces.

• Display velocity vectors.

• Mirror a display about a symmetry plane.

• Create animations.

• Create a scene.

• Display results on successive slices of the domain.

• Display pathlines.

• Plot quantitative results.

• Overlay and “explode” a display.

• Annotate the display.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 65
Postprocessing

2.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorial Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 1)
found in this manual and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some
steps in the setup and solution procedure will not be shown explicitly.

2.3. Problem Description


The problem considered is shown schematically in Figure 2.1: Problem Specification (p. 66). The config-
uration consists of a series of side-by-side electronic chips, or modules, mounted on a circuit board. Air
flow, confined between the circuit board and an upper wall, cools the modules. To take advantage of
the symmetry present in the problem, the model will extend from the middle of one module to the
plane of symmetry between it and the next module.

As shown in the figure, each half-module is assumed to generate 1.0 Watts and to have a bulk conduct-
ivity of 1.0 -K. The circuit board conductivity is assumed to be one order of magnitude lower:
0.1 -K. The air flow enters the system at 298 K with a velocity of 1 m/s. The Reynolds number of
the flow, based on the module height, is about 600. The flow is therefore treated as laminar.

Figure 2.1: Problem Specification

2.4. Setup and Solution


The following sections describe the setup and solution steps for this tutorial:
2.4.1. Preparation
2.4.2. Reading the Mesh
2.4.3. Manipulating the Mesh in the Viewer
2.4.4. Adding Lights
2.4.5. Creating Isosurfaces
2.4.6. Generating Contours
2.4.7. Generating Velocity Vectors
2.4.8. Creating an Animation
2.4.9. Displaying Pathlines
2.4.10. Creating a Scene With Vectors and Contours
2.4.11. Advanced Overlay of Pathlines on a Scene

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
66 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

2.4.12. Creating Exploded Views


2.4.13. Animating the Display of Results in Successive Streamwise Planes
2.4.14. Generating XY Plots
2.4.15. Creating Annotation
2.4.16. Saving Picture Files
2.4.17. Generating Volume Integral Reports

2.4.1. Preparation
To prepare for running this tutorial:

1. Download the postprocess.zip file here.

2. Unzip postprocess.zip to your working directory.

3. The files chip.cas.gz and chip.dat.gz can be found in the folder.

4. Use Fluent Launcher to start the 3D version of Fluent.

Fluent Launcher displays your Display Options preferences from the previous session.

For more information about Fluent Launcher, see starting ANSYS Fluent using the Fluent Launcher
in the Fluent Getting Started Guide.

5. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.

6. Select Serial under Processing Options.

7. Ensure that the Double Precision option is disabled.

2.4.2. Reading the Mesh


1. Read in the case and data files chip.cas.gz and chip.dat.gz.

File → Read → Case & Data...

When you select the case file, Fluent will read the data file automatically.

2.4.3. Manipulating the Mesh in the Viewer


1. Display the mesh surfaces board-top and chip.

Setting Up Domain → Mesh → Display...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 67
Postprocessing

a. Retain the default enabling of the Edges option and disable the Faces option in the Options group
box.

b. Deselect all surfaces and select board-top and chip from the Surfaces selection list.

Click to deselect all surfaces. Click and select Surface Type under Group By to list the surfaces
by type, as shown above.

c. Click the Colors... button to open the Mesh Colors dialog box.

i. Select Color by ID in the Options group box.

ii. Click Reset Colors to reset the mesh colors to the default settings and close the Mesh Colors dialog
box.

d. Click Display.

2. Rotate and adjust the magnification of the view.

Use the left mouse button to rotate the view. Use the middle mouse button to adjust the magnification
until you obtain an enlarged display of the circuit board in the region of the chip, as shown in Fig-
ure 2.2: Mesh Display of the Chip and Board Surfaces (p. 69).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
68 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 2.2: Mesh Display of the Chip and Board Surfaces

Extra

You can click the right mouse button on one of the mesh boundaries displayed in the
graphics window and its surface group, ID, and name will be displayed in the console.
This feature is especially useful when you have several zones of the same type and you
want to distinguish between them.

3. Display the mesh faces.

Setting Up Domain → Mesh → Display...

a. Disable Edges and enable Faces in the Options group box.

b. Click Display and close the Mesh Display dialog box.

2.4.4. Adding Lights


1. Add lighting effects.

The default light settings add a white light at the position (1,1,1). The default light is defined in the Lights
dialog box by the Light ID 0 with Direction vectors (X, Y, Z) as (1, 1, 1).

Viewing → Display → Options...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 69
Postprocessing

a. Make sure that the Lights On option is enabled in the Lighting Attributes group box.

b. Retain Gouraud as the selected Lighting method.

Flat is the most basic lighting whereas Gouraud gives better color gradation. Note that Gouraud
rounds off corners, and so should be used with caution on highly angular geometries.

c. Click Apply and close the Display Options dialog box.

Shading will be added to the surface mesh display (Figure 2.3: Graphics Window with Default Light-
ing (p. 71)).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
70 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 2.3: Graphics Window with Default Lighting

2. Add lights in two directions, (-1, 1, 1) and (-1, 1, -1).

Viewing → Graphics → Lights...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 71
Postprocessing

You can also open the Lights dialog box by clicking the Lights... button in the Display Options dialog
box.

a. Set Light ID to 1.

b. Enable Light On.

c. Enter -1, 1, and 1 for X, Y, and Z respectively in the Direction group box.

d. Retain the selection of Gouraud in the Lighting Method drop-down list.

e. Make sure that the Headlight On option is enabled.

The Headlight On option provides constant lighting effect from a light source directly in front of the
model, in the direction of the view. You can turn off the headlight by disabling the Headlight On
option (the results of this action are shown in Figure 2.4: Display with Additional Lighting: - Headlight
Off (p. 72)).

Figure 2.4: Display with Additional Lighting: - Headlight Off

f. Click Apply.

g. Similarly, add a second light (Light ID= 2 with Light On enabled) with a Direction of (-1, 1, -1).

The result will be more softly shaded display (Figure 2.5: Display with Additional Lighting (p. 73)).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
72 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 2.5: Display with Additional Lighting

h. Close the Lights dialog box.

Extra

You can use the left mouse button to rotate the ball in the Active Lights window to gain a
perspective view on the relative locations of the lights that are currently active, and see the
shading effect on the ball at the center.

You can also change the color of one or more of the lights by selecting the color from the
Color drop-down list or by moving the Red, Green, and Blue sliders.

2.4.5. Creating Isosurfaces


To display results in a 3D model, you will need surfaces on which the data can be displayed. Fluent creates
surfaces for all boundary zones automatically. Several surfaces have been renamed after reading the case
file. Examples are board-sym and board-ends, which correspond to the side and end faces of the circuit
board.

You can define additional surfaces for viewing the results, such as a plane in Cartesian space. In this exercise,
you will create a horizontal plane cutting through the middle of the module with a Y value of 0.25 inches.
You can use this surface to display the temperature and velocity fields.

1. Create a surface of constant Y coordinate.

Postprocessing → Surface → Create → Iso-Surface...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 73
Postprocessing

a. Select Mesh... and Y-Coordinate from the Surface of Constant drop-down lists.

b. Click Compute.

The Min and Max fields display the Y extents of the domain.

c. Enter 0.25 for Iso-Values.

d. Enter y=0.25in for New Surface Name.

Tip

When you are creating multiple postprocessing surfaces, it can be helpful to group

surfaces by type for viewing in lists (Click and select Surface Type under Group
By). All iso-surfaces will be grouped together.

e. Click Create and close the Iso-Surface dialog box.

2. Create a clipped surface for the X coordinate of the fluid (fluid-sym).

Setting Up Domain → Surface → Create → Iso-Clip...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
74 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Select Mesh... and X-Coordinate from the Clip to Values of drop-down lists.

b. Select fluid-sym from the Clip Surface selection list. You can type fluid into the Filter Text box to
quickly find this surface.

c. Click Compute.

The Min and Max fields display the X extents of the domain.

d. Enter 1.9 and 3.9 for Min and Max respectively.

This will isolate the area around the chip.

e. Enter fluid-sym-x-clip for New Surface Name.

f. Click Clip.

3. Create a clipped surface for the Y coordinate of the fluid (fluid-sym).

Setting Up Domain → Surface → Create → Iso-Clip...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 75
Postprocessing

a. Select Mesh... and Y-Coordinate from the Clip to Values of drop-down lists.

b. Retain the selection of fluid-sym from the Clip Surface selection list.

c. Click Compute.

The Min and Max fields display the Y extents of the domain.

d. Enter 0.1 and 0.5 for Min and Max respectively.

This will isolate the area around the chip.

e. Enter fluid-sym-y-clip for New Surface Name.

f. Click Clip and close the Iso-Clip dialog box.

2.4.6. Generating Contours


1. Display filled contours of temperature on the symmetry plane (Figure 2.6: Filled Contours of Temperature
on the Symmetry Surfaces (p. 78)).

Postprocessing → Graphics → Contours → New...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
76 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Enter temperature_contour for Contour Name.

b. Ensure Filled, Node Values, Global Range, and Auto Range are enabled in the Options group box.

c. Select Smooth for Coloring.

d. Select Temperature... and Static Temperature from the Contours of drop-down lists.

e. Click and select Surface Type under Group By (if surfaces are not already grouped by type).

f. Select board-sym, chip-sym, and fluid-sym (under Symmetry in the Surfaces selection list.)

g. Click Save/Display.

h. Rotate and adjust the magnification of the view using the left and middle mouse buttons, respectively,
to obtain the view as shown in Figure 2.6: Filled Contours of Temperature on the Symmetry Sur-
faces (p. 78).

Tip

If the model disappears from the graphics window at any time, or if you are having
difficulty manipulating it with the mouse, do one of the following:

• Click the Fit to Window button in the graphics toolbar.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 77
Postprocessing

• Open the Views dialog box by right-clicking Graphics in the tree (under Results)
and selecting Views... from the menu that opens, and then use the Default button
to reset the view. You could also click Camera... in this dialog box to open the
Camera Parameters dialog box, where you could select orthographic from the
Projection drop-down list to reduce the likelihood of zooming through the geo-
metry.

• Press the Ctrl + L to revert to a previous view.

The peak temperatures in the chip appear where the heat is generated, along with the higher temperatures
in the wake where the flow is recirculating.

Figure 2.6: Filled Contours of Temperature on the Symmetry Surfaces

2. Display filled contours of temperature for the clipped surface (Figure 2.7: Filled Contours of Temperature
on the Clipped Surface (p. 79)).

Results → Graphics → Contours → temperature_contour Edit...

a. Click to deselect all surfaces from the Surfaces selection list and then select fluid-sym-x-clip and
fluid-sym-y-clip.

b. Click Save/Display.

A clipped surface appears, colored by temperature (Figure 2.7: Filled Contours of Temperature on the
Clipped Surface (p. 79)).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
78 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 2.7: Filled Contours of Temperature on the Clipped Surface

3. Display filled contours of temperature on the plane, y=0.25in (Figure 2.8: Temperature Contours on the
Surface, Y= 0.25 in. (p. 80)).

Results → Graphics → Contours → temperature_contour Edit...

a. Click to deselect all surfaces from the Surfaces selection list and then select y=0.25in.

b. Click Save/Display and close the Contours dialog box.

The filled temperature contours will be displayed on the y=0.25in plane.

c. Orient the view to display the contours.

4. Change the location of the colormap in the graphics window.

Left-click the colormap in the graphics window and drag it to the bottom of the graphics window.
This can also be accomplished using the Display Options dialog box.

Tip

You can increase/decrease the size of the colormap by dragging the corners of the box
that appears when you hover over the colormap.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 79
Postprocessing

Figure 2.8: Temperature Contours on the Surface, Y= 0.25 in.

In Figure 2.8: Temperature Contours on the Surface, Y= 0.25 in. (p. 80), the high temperatures in the wake
of the module are clearly visible. You can also display other quantities such as velocity magnitude or
pressure using the Contours dialog box.

2.4.7. Generating Velocity Vectors


Velocity vectors provide an excellent visualization of the flow around the module, depicting details of the
wake structure.

1. Display velocity vectors on the symmetry plane through the module centerline (Figure 2.9: Velocity Vectors
in the Module Symmetry Plane (p. 82)).

Postprocessing → Graphics → Vectors → New...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
80 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Enter velocity_vector for Vector Name.

b. Confirm that Velocity is selected under Vectors of and that Color by is set to Velocity... and Velocity
Magnitude.

c. Ensure Global Range, Auto Range, and Auto Scale are the only enabled Options.

d. Enter 1.9 for Scale.

e. Click to deselect all surfaces from the Surfaces selection list and then select fluid-sym.

f. Click Save/Display and close the Vectors dialog box.

g. Orient the view to display the vectors.

Extra

You can display velocity vectors for the clipped surfaces.

Results → Graphics → Vectors → velocity_vector Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 81
Postprocessing

a. Deselect all surfaces from the Surfaces selection list and then select fluid-sym-x-clip and
fluid-sym-y-clip.

b. Click Save/Display.

2. Rotate and adjust the magnification of the view to observe the vortex near the stagnation point and in the
wake of the module (Figure 2.9: Velocity Vectors in the Module Symmetry Plane (p. 82)).

Figure 2.9: Velocity Vectors in the Module Symmetry Plane

3. Plot velocity vectors in the horizontal plane intersecting the module (Figure 2.10: Velocity Vectors Intersecting
the Surface (p. 84)).

Postprocessing → Graphics → Vectors → Edit...

a. Enable Draw Mesh in the Options group box to open the Mesh Display dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
82 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

i. Ensure that Faces is enabled in the Options group box.

ii. Retain the selection of board-top and chip from the Surfaces selection list.

iii. Click the Colors... button to open the Mesh Colors dialog box.

A. Select Color by Type in the Options group box.

B. Select wall from the Types selection list.

C. Select light blue from the Colors selection list and close the Mesh Colors dialog box.

iv. Click Display and close the Mesh Display dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 83
Postprocessing

b. Enter 3.8 for Scale.

c. Deselect all surfaces.

d. Select y=0.25in from the Surfaces selection list.

e. Click Display and close the Vectors dialog box.

f. Rotate the view and reduce the magnification to obtain the view as shown in Figure 2.10: Velocity
Vectors Intersecting the Surface (p. 84).

Figure 2.10: Velocity Vectors Intersecting the Surface

4. Mirror the image about the chip symmetry plane (Figure 2.11: Velocity Vectors After Mirroring (p. 86)).

Viewing → Display → Views...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
84 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Select symmetry-18 from the Mirror Planes selection list.

Note

This zone is the centerline plane of the module and its selection will create a mirror
of the entire display about the centerline plane.

b. Click Apply and close the Views dialog box.

The display will be updated in the graphics window (Figure 2.11: Velocity Vectors After Mirror-
ing (p. 86)).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 85
Postprocessing

Figure 2.11: Velocity Vectors After Mirroring

2.4.8. Creating an Animation


Using Fluent, you can animate the solution. For information on animating the solution, see Modeling Tran-
sient Compressible Flow (p. 171). In this tutorial, you will animate between two static views of the graphics
window.

You will display the surface temperature distribution on the module and the circuit board by selecting the
corresponding boundaries. You will also create the key frames and view the transition between the key
frames, dynamically, using the animation feature.

1. Display filled contours of surface temperature on the board-top and chip surfaces. (Figure 2.12: Filled
Temperature Contours on the Chip and Board Top Surfaces (p. 88)).

Results → Graphics → Contours → temperature_contour Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
86 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Ensure that Filled is enabled in the Options group box.

b. Retain the selection of Temperature... and Static Temperature from the Contours of drop-down lists.

c. Deselect all surfaces.

d. Select board-top and chip from the Surfaces selection list.

e. Click Save/Display and close the Contours dialog box.

f. Reorient the display as needed to obtain the view shown in Figure 2.12: Filled Temperature Contours
on the Chip and Board Top Surfaces (p. 88).

Figure 2.12: Filled Temperature Contours on the Chip and Board Top Surfaces (p. 88) shows the high
temperatures on the downstream portions of the module and relatively localized heating of the circuit
board around the module.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 87
Postprocessing

Figure 2.12: Filled Temperature Contours on the Chip and Board Top Surfaces

2. Create the key frames by changing the point of view.

Postprocessing → Animation → Scene Animation...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
88 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

You will use the current display (Figure 2.12: Filled Temperature Contours on the Chip and Board Top
Surfaces (p. 88)) as the starting view for the animation (Frame = ).

a. Click Add in the Key Frames group box to create the first frame for your animation.

This will store the current display as Key-1.

b. Magnify the view to focus on the module region.

c. Enter 100 for Frame in the Key Frames group box.

d. Click Add to create the tenth frame for your animation.

This will store the new display as Key-100.

The magnified view will be the one-hundredth key frame of the animation, with intermediate displays
(2 through 99) to be filled in during the animation.

e. Rotate the view and adjust the magnification so that the downstream side of the module is in the
foreground (Figure 2.13: Filled Temperature Contours on the Chip and Board Top Surfaces (p. 90)).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 89
Postprocessing

Figure 2.13: Filled Temperature Contours on the Chip and Board Top Surfaces

f. Enter 200 for Frame.

g. Click Add to create the two-hundredth frame for your animation.

This will store the new display as Key-200.

Note

You can check the display view of any of your saved key frames by selecting it in the
Keys list.

3. View the scene animation by clicking the “play” button ( ) in the Playback group box.

While effective animation is best conducted on “high-end” graphics workstations, you can view scene
animations on any workstation. If the graphics display speed is slow, the animation playback will take
some time and will appear choppy, with the redrawing very obvious. On fast graphics workstations, the
animation will appear smooth and continuous and will provide an excellent visualization of the display
from a variety of spatial orientations. On many machines, you can improve the smoothness of the anim-
ation by enabling the Double Buffering option in the Display Options dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
90 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

To produce a slower animation, increase the number of frames between the key frames. The more sparsely
you place your key frames, the more transition frames Fluent creates between the key frames and
therefore stretching out your animation.

Note

You can also make use of animation tools of Fluent for transient cases as demonstrated
in Modeling Transient Compressible Flow (p. 171).

Extra

You can change the Playback Mode if you want to “auto repeat” or “auto reverse” the

animation. When you are in either of these modes, you can click the “stop” button ( )
to stop the continuous animation.

4. Close the Animate dialog box.

2.4.9. Displaying Pathlines


Pathlines are the lines traveled by neutrally buoyant particles in equilibrium with the fluid motion. Pathlines
are an excellent tool for visualization of complex three-dimensional flows. In this example, you will use
pathlines to examine the flow around and in the wake of the module.

1. Create a rake from which the pathlines will emanate.

Postprocessing → Surface → Create → Line/Rake...

a. Select Rake from the Type drop-down list.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 91
Postprocessing

A rake surface consists of a specified number of points equally spaced between two specified endpoints.
A line surface (the other option in the Type drop-down list) is a line that includes the specified end-
points and extends through the domain; data points on a line surface will not be equally spaced.

b. Retain the default value of 10 for Number of Points.

This will generate 10 pathlines.

c. Enter a starting coordinate of (1.0, 0.105, 0.07) and an ending coordinate of (1.0, 0.25,
0.07) in the End Points group box.

This will define a vertical line in front of the module, about halfway between the centerline and edge.

d. Enter pathline-rake for New Surface Name.

You will refer to the rake by this name when you plot the pathlines.

e. Click Create and close the Line/Rake Surface dialog box.

2. Draw the pathlines (Figure 2.14: Pathlines Display Colored by Static Pressure (p. 93)).

Postprocessing → Graphics → Pathlines... → Edit...

a. Enable Draw Mesh in the Options group box to open the Mesh Display dialog box.

i. Ensure that Faces is enabled in the Options group box.

ii. Retain the selection of board-top and chip from the Surfaces selection list.

These surfaces should already be selected from the earlier exercise where the mesh was displayed
with velocity vectors.

iii. Close the Mesh Display dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
92 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

b. Enter 0.001 inch for Step Size.

c. Enter 6000 for Steps.

Note

As a general guideline to follow when you are setting these two parameters is that
if you want the particles to advance through a domain of length , the Step Size
times the number of Steps should be approximately equal to .

d. Set Path Coarsen to 5.

Coarsening the pathline simplifies the plot and reduces the plotting time. The coarsening factor spe-
cified for Path Coarsen indicates the interval at which the points are plotted for a given pathline in
any cell.

e. Select Pressure and Static Pressure from the Color By selection list.

f. Select pathline-rake from the Release from Surfaces selection list.

g. Click Display.

The pathlines will be drawn on the surface.

h. Rotate and magnify the view so that the flow field is in front and the wake of the chip is visible as shown
in Figure 2.14: Pathlines Display Colored by Static Pressure (p. 93).

Figure 2.14: Pathlines Display Colored by Static Pressure

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 93
Postprocessing

3. Write the pathlines to a file.

a. Enable Write to File in the Options group box.

The Display button changes to a Write... button.

b. Select Ensight from the Type drop-down list.

c. Click the Write... button to open the Select File dialog box.

i. Enter chip-pathline for Ensight Particle File Base Name.

ii. Click OK to close the Select File dialog box.

Fluent will save the file in the Fieldview format with a .fvp extension.

4. Display pathlines as spheres.

Postprocessing → Graphics → Pathlines... → Edit...

a. Disable Write to File in the Options group box.

b. Select sphere from the Style drop-down list.

c. Click the Attributes... button to open the Path Style Attributes dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
94 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

i. Enter 0.0005 for Diameter.

ii. Click OK to close the Path Style Attributes dialog box.

d. Enter 1 inch for Step Size and 1000 for Steps respectively.

e. Set Path Skip to 2 and Path Coarsen to 1.

f. Retain the selection of pathline-rake in the Release from Surfaces selection list.

g. Click Display.

The spherical pathlines will be drawn along the surface.

Figure 2.15: Sphere Pathlines Display Colored by Static Pressure

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 95
Postprocessing

h. Select Temperature and Static Temperature from the lower Color by drop-down list.

i. Click Display and close the Pathlines dialog box.

This will color the pathlines by the surface they are released from (Figure 2.16: Sphere Pathlines Colored
by Static Temperature (p. 96)).

Figure 2.16: Sphere Pathlines Colored by Static Temperature

Note

As an optional exercise, you can create solution animations for pathlines using the Animation
Sequence dialog box.

Solution → Calculation Activities → Solution Animations Edit...

2.4.10. Creating a Scene With Vectors and Contours


Scenes allow you to display multiple graphics plots in single window. But first reset the Views... to ex-
clude the mirror image about the chip symmetry plane

Viewing → Display → Views...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
96 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

1. Click to deselect all surfaces from the Surfaces selection list.

2. Click Apply and close the Views dialog box.

Create a scene displaying contours and vector plots in single window.

1. Open the Scene dialog box.

Results → Scene New...

2. Enable temperature_contour and velocity_vector.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 97
Postprocessing

3. Increase the transparency of temperature_contour using the Transparency slider.

4. Click Save & Display to create the scene and display it in the graphics window.

5. Drag the velocity vector colormap to the top of the graphics window and modify the orientation and zoom
of the scene to match Figure 2.17: Temperature Contours and Velocity Vectors Scene (p. 98).

6. Figure 2.17: Temperature Contours and Velocity Vectors Scene

Note

As an optional exercise, you can add a mesh graphics object to the scene as well, by selecting
Mesh... from the New Object drop-down in the Scene dialog box. Once the mesh graphics
object is saved/created, select it from the Graphics Objects list and click Save & Display in
the Scene dialog box.

2.4.11. Advanced Overlay of Pathlines on a Scene


The advanced overlay capability, provided in the Scene Description dialog box, allows you to display more
results on top of an existing display, including those not supported by the scene created in the previous
section. You can demonstrate this capability by adding pathlines to the scene that you just plotted.

1. Enable the overlays feature.

Viewing → Graphics → Compose...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
98 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Enable Overlays in the Scene Composition group box.

b. Click Apply and close the Scene Description dialog box.

2. Add a plot of particle surface ID pathlines to the velocity vector and temperature scene.

Postprocessing → Graphics → Pathlines → Edit...

a. Disable Draw Mesh under Options.

b. Click Display and close the Pathlines dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 99
Postprocessing

c. Use the mouse to obtain the view that is shown in Figure 2.18: Overlay of Pathlines Colored by Pressure
on Velocity Vectors and Temperature Contours Scene (p. 100).

Figure 2.18: Overlay of Pathlines Colored by Pressure on Velocity Vectors and Temperature
Contours Scene

2.4.12. Creating Exploded Views


The Scene Description dialog box stores each display that you request and allows you to manipulate the
displayed items individually. This capability can be used to generate “exploded” views, in which results are
translated or rotated out of the physical domain for enhanced display. As shown in the Scene Description
dialog box, you can experiment with this capability by displaying “side-by-side” velocity vectors and temper-
ature contours on a streamwise plane in the module wake.

1. Clear the temperature contours, velocity vectors, and pathlines from the current display.

Click the Close Tab button ( ) to clear the graphics window (located at on the right-hand side of
the graphics window tab).

2. Create a plotting surface at X = 3 inches (named x=3.0in), just downstream of the trailing edge of the
module.

Postprocessing → Surface → Create → Iso-Surface...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
100 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Tip

For details on creating an isosurface, see Creating Isosurfaces (p. 73).

3. Add the display of filled temperature contours on the x=3.0in surface.

Postprocessing → Graphics → Contours → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 101
Postprocessing

a. Disable Draw Mesh under Options.

b. Deselect all surfaces in the Surfaces list.

c. Select x=3.0in from the Surfaces selection list.

d. Click Display and close the Contours dialog box.

The filled temperature contours will be displayed on the x=3.0in surface.

4. Add the velocity vectors on the x=3.0in plotting surface.

Postprocessing → Graphics → Vectors → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
102 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Enable the Draw Mesh option in the Options group box to open the Mesh Display dialog box.

i. Retain the default settings.

ii. Close the Mesh Display dialog box.

b. Enter 1.9 for Scale.

c. Set Skip to 2.

d. Deselect all surfaces.

e. Select x=3.0in from the Surfaces selection list.

f. Click Display and close the Vectors dialog box.

The display will show the vectors superimposed on the contours of temperature at =3.0 in.

5. Create the exploded view by translating the contour display, placing it above the vectors (Figure 2.19: Ex-
ploded Scene Display of Temperature and Velocity (p. 105)).

Viewing → Graphics → Compose...

a. Select temperature_contour-9 from the Names selection list.

b. Click the Transform... button to open the Transformations dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 103
Postprocessing

i. Enter 1 inch for Y in the Translate group box.

ii. Click Apply and close the Transformations dialog box.

The exploded view allows you to see the contours and vectors as distinct displays in the final scene
(Figure 2.19: Exploded Scene Display of Temperature and Velocity (p. 105)).

c. Deselect Overlays.

d. Click Apply and close the Scene Description dialog box.

e. Mirror the image about the chip symmetry plane.

f. Magnify the view, as shown in Figure 2.19: Exploded Scene Display of Temperature and Velocity (p. 105).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
104 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 2.19: Exploded Scene Display of Temperature and Velocity

2.4.13. Animating the Display of Results in Successive Streamwise Planes


You may want to march through the flow domain, displaying a particular variable on successive slices of
the domain. While this task could be accomplished manually, plotting each plane in turn, or using the Scene
Description and Animate dialog boxes, here you will use the Sweep Surface dialog box to facilitate the
process. To illustrate the display of results on successive slices of the domain, you will plot contours of velocity
magnitude on planes along the axis.

1. Delete the vectors and temperature contours from the display.

Click the Close Tab button ( ) to clear the graphics window (located at on the right-hand side of
the graphics window tab).

2. Display the mesh on surfaces board-top and chip.

Postprocessing → Graphics → Mesh → Edit...

3. Use the mouse to reduce the magnification of the view in the graphics window so that the entire board
surface is visible.

4. Generate contours of velocity magnitude and sweep them through the domain along the X axis.

Postprocessing → Animation → Sweep Surface...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 105
Postprocessing

a. Retain the default settings in the Sweep Axis group box.

b. Retain the default value of 0 m for Initial Value in the Animation group box.

c. Retain 0.1651 m for Final Value.

Warning

The units for the initial and final values are in meters, regardless of the length
units being used in the model. Here, the initial and final values are set to the
Min Value and Max Value, to generate an animation through the entire domain.

d. Enter 100 for Frames.

e. Select Contours from the Display Type list to open the Contours dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
106 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

i. Disable Draw Mesh under Options.

ii. Select Velocity... and Velocity Magnitude from the Contours of drop-down lists.

iii. Click OK to close the Contours dialog box.

f. Click Animate and close the Sweep Surface dialog box.

You will see the velocity contour plot displayed at 20 successive streamwise planes. Fluent will automat-
ically interpolate the contoured data on the streamwise planes between the specified end points. Especially
on high-end graphics workstations, this can be an effective way to study how a flow variable changes
throughout the domain.

Note

You can also make use of animation tools of Fluent for transient cases as demonstrated in
Modeling Transient Compressible Flow (p. 171).

2.4.14. Generating XY Plots


XY plotting can be used to display quantitative results of your CFD simulations. Here, you will complete the
review of the module cooling simulation by plotting the temperature distribution along the top centerline
of the module.

1. Define the line along which to plot results.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 107
Postprocessing

Postprocessing → Surface → Create → Line/Rake...

a. Select Line from the Type drop-down list.

b. Enter the coordinates of the line using a starting coordinate of (2.0, 0.4, 0.01) and an ending co-
ordinate of (2.75, 0.4, 0.01) in the End Points group box.

These coordinates define the top centerline of the module.

c. Enter top-center-line for New Surface Name.

d. Click Create and close the Line/Rake Surface dialog box.

2. Plot the temperature distribution along the top centerline of the module (Figure 2.20: Temperature Along
the Top Centerline of the Module (p. 111)).

Postprocessing → Plots → XY Plot → New...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
108 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Retain the default Plot Direction of (1, 0, 0).

b. Select Temperature... and Static Temperature from the Y Axis Function drop-down lists.

c. Select top-center-line from the Surfaces selection list.

This will plot temperature vs. the X coordinate along the selected line (top-center-line).

d. Click the Axes... button to open the Axes - Solution XY Plot dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 109
Postprocessing

i. Retain the selection of X in the Axis list.

ii. Disable Auto Range in the Options group box.

iii. Enter 2.0 for Minimum and 2.75 for Maximum in the Range group box.

iv. Click Apply and close the Axes - Solution XY Plot dialog box.

e. Click Save/Plot and close the Solution XY Plot dialog box.

The temperature distribution (Figure 2.20: Temperature Along the Top Centerline of the Module (p. 111))
shows the temperature increase across the module surface as the thermal boundary layer develops
in the cooling air flow.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
110 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 2.20: Temperature Along the Top Centerline of the Module

2.4.15. Creating Annotation


You can annotate the display with the text of your choice.

Viewing → Graphics → Annotate...

1. Enter the text describing the plot (for example, Temperature Along the Top Centerline) in the
Annotation Text field.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 111
Postprocessing

2. Select 20 from the Size drop-down list in the Font Specification group box.

3. Click Add.

A Working dialog box will appear telling you to select the desired location of the text using the mouse-
probe button.

4. Click the right mouse button in the graphics window where you want the text to appear, and you will see
the text displayed at the selected location (Figure 2.21: A Display with Annotation (p. 112)).

Extra

If you want to move the text to a new location on the screen, select the text in the Names
selection list, click Delete Text, and click Add once again, defining a new position with
the mouse.

Note

Depending on the size of the graphics window and the picture file format you choose,
the font size of the annotation text you see on the screen may be different from the font
size in a picture file of that graphics window. The annotation text font size is absolute,
while the rest of the items in the graphics window are scaled to the proportions of the
picture file.

Figure 2.21: A Display with Annotation

5. Close the Annotate dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
112 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

2.4.16. Saving Picture Files


You can save picture files of the graphics window in many different formats, including PostScript, encapsulated
PostScript, TIFF, PNG, PPM, JPEG, VRML and window dumps. Here, the procedure for saving a color PostScript
file is shown.

Click the Save Picture icon- in the toolbar to open the Save Picture dialog box.

1. Select JPEG from the Format list.

2. Retain the default selection of Color from the Coloring list.

3. Click the Save... button to open the Select File dialog box.

a. Enter a name for Hardcopy File.

b. Click OK to close the Select File dialog box.

4. Close the Save Picture dialog box.

2.4.17. Generating Volume Integral Reports


Reports of volume integrals can be used to determine the volume of a particular fluid region (that is, a fluid
zone), the sum of quantities, or the maximum and minimum values of particular variables. Here we will use
the volume integral reports to determine the maximum and minimum temperature in the chip, board, and
the airflow.

Postprocessing → Reports → Volume Integrals...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 113
Postprocessing

1. Select Maximum from the Report Type list.

2. Select Temperature... and Static Temperature from the Field Variable drop-down lists.

3. Select solid-1 from the Cell Zones selection list.

4. Click Compute to calculate the maximum temperature.

The maximum temperature in the solid-1 cell zone (the chip) is displayed.

5. Select Minimum in the Report Type group box and click Compute.

The minimum temperature in the solid-1 cell zone (the chip) is displayed.

6. Repeat the operations to determine the maximum and minimum temperatures in the solid-2 and fluid-8
cell zones, corresponding to the board and fluid volume, respectively.

2.5. Summary
This tutorial demonstrated the use of many of the extensive postprocessing features available in Fluent.

For more information on these and related features, see reporting alphanumeric data and displaying
graphics in the Fluent User's Guide.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
114 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 3: Modeling Periodic Flow and Heat Transfer
This tutorial is divided into the following sections:
3.1. Introduction
3.2. Prerequisites
3.3. Problem Description
3.4. Setup and Solution
3.5. Summary
3.6. Further Improvements

3.1. Introduction
Many industrial applications, such as steam generation in a boiler or air cooling in the coil of an air
conditioner, can be modeled as two-dimensional periodic heat flow. This tutorial illustrates how to set
up and solve a periodic heat transfer problem, given a pre-generated mesh.

The system that is modeled is a bank of tubes containing a flowing fluid at one temperature that is
immersed in a second fluid in cross flow at a different temperature. Both fluids are water, and the flow
is classified as laminar and steady, with a Reynolds number of approximately 100. The mass flow rate
of the cross flow is known and the model is used to predict the flow and temperature fields that result
from convective heat transfer.

Due to symmetry of the tube bank and the periodicity of the flow inherent in the tube bank geometry,
only a portion of the geometry will be modeled in ANSYS Fluent, with symmetry applied to the outer
boundaries. The resulting mesh consists of a periodic module with symmetry. In the tutorial, the inlet
boundary will be redefined as a periodic zone, and the outflow boundary defined as its shadow.

This tutorial demonstrates how to do the following:

• Create periodic zones.

• Define a specified periodic mass flow rate.

• Model periodic heat transfer with specified temperature boundary conditions.

• Calculate a solution using the pressure-based, pseudo-transient, coupled solver.

• Plot temperature profiles on specified isosurfaces.

3.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorial Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 1)
found in this manual and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some
steps in the setup and solution procedure will not be shown explicitly.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 115
Modeling Periodic Flow and Heat Transfer

3.3. Problem Description


This problem considers a 2D section of a tube bank. A schematic of the problem is shown in Fig-
ure 3.1: Schematic of the Problem (p. 116). The bank consists of uniformly-spaced tubes with a diameter
of 1 cm, which are staggered across the cross-fluid flow. Their centers are separated by a distance of 2
cm in the direction, and 1 cm in the direction. The bank has a depth of 1 m.

Figure 3.1: Schematic of the Problem

Because of the symmetry of the tube bank geometry, only a portion of the domain must be modeled.
The computational domain is shown in outline in Figure 3.1: Schematic of the Problem (p. 116). A mass
flow rate of 0.05 kg/s is applied to the inlet boundary of the periodic module. The temperature of the
tube wall ( ) is 400 K and the bulk temperature of the cross flow water ( ) is 300 K. The properties
of water that are used in the model are shown in Figure 3.1: Schematic of the Problem (p. 116).

3.4. Setup and Solution


The following sections describe the setup and solution steps for this tutorial:
3.4.1. Preparation
3.4.2. Mesh
3.4.3. General Settings
3.4.4. Models
3.4.5. Materials
3.4.6. Cell Zone Conditions
3.4.7. Periodic Conditions
3.4.8. Boundary Conditions
3.4.9. Solution
3.4.10. Postprocessing

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
116 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

3.4.1. Preparation
To prepare for running this tutorial:

1. Download the periodic_flow_heat.zip file here.

2. Unzip periodic_flow_heat.zip to your working directory.

3. The file tubebank.msh can be found in the folder.

4. Use Fluent Launcher to start the 2D version of ANSYS Fluent.

Fluent Launcher displays your Display Options preferences from the previous session.

5. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.

6. Ensure that you are running in single precision (disable Double Precision).

7. Select Serial under Processing Options.

3.4.2. Mesh
1. Read the mesh file tubebank.msh.

File → Read → Mesh...

2. Check the mesh.

Setting Up Domain → Mesh → Check

ANSYS Fluent will perform various checks on the mesh and report the progress in the ANSYS Fluent
console window. Ensure that the minimum volume reported is a positive number.

3. Scale the mesh.

Setting Up Domain → Mesh → Scale...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 117
Modeling Periodic Flow and Heat Transfer

a. Select cm (centimeters) from the Mesh Was Created In drop-down list in the Scaling group box.

b. Click Scale to scale the mesh.

c. Close the Scale Mesh dialog box.

4. Re-display the Mesh

Cick Display Mesh in the task page to refresh mesh

a. Select Display from the Mesh Diaplay and close the Mesh Display dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
118 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

b. Clicking the Fit to Window icon, , to center the re-scaled mesh in the graphics window.

5. Check the mesh.

Setting Up Domain → Mesh → Check

Note

It is a good idea to check the mesh after you manipulate it (scale, convert to polyhedra,
merge, separate, fuse, add zones, or smooth and swap.) This will ensure that the quality
of the mesh has not been compromised.

6. Examine the mesh (Figure 3.2: Mesh for the Periodic Tube Bank (p. 119)).

Figure 3.2: Mesh for the Periodic Tube Bank

Quadrilateral cells are used in the regions surrounding the tube walls and triangular cells are used for
the rest of the domain, resulting in a hybrid mesh (see Figure 3.2: Mesh for the Periodic Tube Bank (p. 119)).
The quadrilateral cells provide better resolution of the viscous gradients near the tube walls. The remainder
of the computational domain is filled with triangular cells for the sake of convenience.

Tip

You can use the right mouse button to probe for mesh information in the graphics win-
dow. If you click the right mouse button on any node in the mesh, information will be
displayed in the ANSYS Fluent console about the associated zone, including the name of

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 119
Modeling Periodic Flow and Heat Transfer

the zone. This feature is especially useful when you have several zones of the same type
and you want to distinguish between them quickly.

7. Create the periodic zone.

The inlet (wall-9) and outflow (wall-12) boundaries currently defined as wall zones need to be redefined
as periodic using the text user interface. The wall-9 boundary will be redefined as a translationally peri-
odic zone and wall-12 as a periodic shadow of wall-9.

a. Press Enter in the console to get the command prompt (>).

b. Enter the text command and input the responses to the prompts as shown. Press Enter after each entry.
> mesh/modify-zones/make-periodic Enter

You will be prompted to enter the zones corresponding to the periodic boundaries and specify
the configuration of the periodicity.

Periodic zone [()] 9 Enter

Shadow zone [()] 12 Enter

Rotational periodic? (if no, translational) [yes] no Enter


Create periodic zones? [yes] yes Enter

Auto detect translation vector? [yes] yes Enter

zone 12 deleted
computed translation deltas: 0.040000 -0.000000
created periodic zones.

c. Re-display the Mesh

3.4.3. General Settings


1. Retain the default settings for the solver.

Setting Up Physics → Solver

3.4.4. Models
1. Enable heat transfer.

Setting Up Physics → Models → Energy

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
120 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

3.4.5. Materials
The default properties for water defined in ANSYS Fluent are suitable for this problem. In this step, you will
make sure that this material is available for selecting in future steps.

1. Add water to the list of fluid materials by copying it from the ANSYS Fluent materials database.

Setup → Materials → Fluid → air → Edit...

a. Click Fluent Database... in the Create/Edit Materials dialog box to open the Fluent Database Mater-
ials dialog box.

i. Select water-liquid (h2o<l>) in the Fluent Fluid Materials selection list.

Scroll down the list to find water-liquid (h2o<l>). Selecting this item will display the default
properties in the dialog box.

ii. Click Copy and close the Fluent Database Materials dialog box.

The Create/Edit Materials dialog box will now display the copied properties for water-liquid.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 121
Modeling Periodic Flow and Heat Transfer

b. Click Change/Create and close the Create/Edit Materials dialog box.

3.4.6. Cell Zone Conditions


1. Set the cell zone conditions for the continuum fluid zone (fluid-16).

Setup → Cell Zone Conditions → fluid-16 Edit...

a. Select water-liquid from the Material Name drop-down list.

b. Click OK to close the Fluid dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
122 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

3.4.7. Periodic Conditions


1. Define the periodic flow conditions.

Setup → Boundary Conditions → periodic-9 → Periodic Conditions...

a. Select Specify Mass Flow in the Type list.

This will allow you to specify the Mass Flow Rate.

b. Enter 0.05 kg/s for Mass Flow Rate.

c. Click OK to close the Periodic Conditions dialog box.

3.4.8. Boundary Conditions


1. Set the boundary conditions for the bottom wall of the left tube (wall-21).

Setup → Boundary Conditions → wall-21 → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 123
Modeling Periodic Flow and Heat Transfer

a. Enter wall-bottom for Zone Name.

b. Click the Thermal tab.

i. Select Temperature in the Thermal Conditions list.

ii. Enter 400 K for Temperature.

These settings will specify a constant wall temperature of 400 K.

c. Click OK to close the Wall dialog box.

2. Set the boundary conditions for the top wall of the right tube (wall-3).

Setup → Boundary Conditions → wall-3 → Edit...

a. Enter wall-top for Zone Name.

b. Click the Thermal tab.

i. Select Temperature from the Thermal Conditions list.

ii. Enter 400 K for Temperature.

c. Click OK to close the Wall dialog box.

3.4.9. Solution
1. Set the solution parameters.

Solving → Solution → Methods...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
124 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Select Coupled from the Scheme drop-down list in the Pressure-Velocity Coupling group box.

b. Retain the default setting of Least Squares Cell Based for the Gradient in the Spatial Discretization
group box.

c. Retain the default setting of Second Order for the Pressure drop-down list.

d. Retain the default setting of Second Order Upwind in the Momentum and Energy drop-down lists.

e. Enable Pseudo Transient.

The Pseudo Transient option enables the pseudo transient algorithm in the coupled pressure-based
solver. This algorithm effectively adds an unsteady term to the solution equations in order to improve
stability and convergence behavior.

2. Set the solution controls.

Solving → Controls → Controls...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 125
Modeling Periodic Flow and Heat Transfer

a. Retain the default values in the Pseudo Transient Explicit Relaxation Factors group box.

In some cases, the default Pseudo Transient Explicit Relaxation Factors may need to be reduced in
order to prevent oscillation of residual values or stabilization of residual values above the convergence
criteria. For additional information about setting Pseudo Transient Explicit Relaxation Factors, see
the Fluent User's Guide.

3. Enable the plotting of residuals during the calculation.

Solving → Reports → Residuals...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
126 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Ensure Plot is enabled in the Options group box.

b. Click OK to close the Residual Monitors dialog box.

4. Initialize the solution.

You will first use the default Hybrid initialization method and then patch the fluid zone with the upstream
temperature value.

a. Initialize using the default settings.

Solving → Initialization → Initialize

b. Patch the fluid zone with the bulk upstream temperature value.

The Hybrid Initialization method computes the initial flow field based on inlet and outlet boundary
conditions. In this case we have periodic boundary conditions with a specified upstream bulk temper-
ature. You will patch the initialized solution with this temperature value in order to improve conver-
gence.

Solving → Initialization → Patch...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 127
Modeling Periodic Flow and Heat Transfer

i. Select Temperature in the Variable selection list.

ii. Enter 300 for Value (k).

Recall that the upstream bulk temperature, , is specified as 300 K.

iii. Select fluid-16 in the Zones to Patch selection list.

iv. Click Patch and close the Patch dialog box.

5. Save the case file (tubebank.cas.gz).

File → Write → Case...

6. Start the calculation by requesting 350 iterations.

Solving → Run Calculation

a. Enter 350 for No. of Iterations.

b. Click Calculate.

The solution will converge in approximately 118 iterations.

7. Save the case and data files (tubebank.cas.gz and tubebank.dat.gz).

File → Write → Case & Data...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
128 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

3.4.10. Postprocessing
1. Display filled contours of static pressure (Figure 3.3: Contours of Static Pressure (p. 130)).

Postprocessing → Graphics → Contours → Edit...

a. Enable Filled in the Options group box.

b. Retain the default selection of Pressure... and Static Pressure from the Contours of drop-down lists.

c. Click Display.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 129
Modeling Periodic Flow and Heat Transfer

Figure 3.3: Contours of Static Pressure

d. Change the view to mirror the display across the symmetry planes (Figure 3.4: Contours of Static Pressure
with Symmetry (p. 131)).

Viewing → Display → Views...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
130 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

i. Select all of the symmetry zones (symmetry-18, symmetry-13, symmetry-11, and symmetry-24)

in the Mirror Planes selection list by clicking in the upper right corner.

Note

There are four symmetry zones in the Mirror Planes selection list because the top
and bottom symmetry planes in the domain are each composed of two symmetry
zones, one on each side of the tube centered on the plane. It is also possible to
generate the same display shown in Figure 3.4: Contours of Static Pressure with
Symmetry (p. 131) by selecting just one of the symmetry zones on the top symmetry
plane, and one on the bottom.

ii. Click Apply and close the Views dialog box.

iii. Translate the display of symmetry contours so that it is centered in the graphics window by using
the left mouse button (Figure 3.4: Contours of Static Pressure with Symmetry (p. 131)).

Figure 3.4: Contours of Static Pressure with Symmetry

The pressure contours displayed in Figure 3.4: Contours of Static Pressure with Symmetry (p. 131) do
not include the linear pressure gradient computed by the solver. Thus, the contours are periodic at
the inlet and outflow boundaries.

2. Display filled contours of static temperature (Figure 3.5: Contours of Static Temperature (p. 132)).

Postprocessing → Graphics → Contours → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 131
Modeling Periodic Flow and Heat Transfer

a. Select Temperature... and Static Temperature from the Contours of drop-down lists.

b. Click Display and close the Contours dialog box.

Figure 3.5: Contours of Static Temperature

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
132 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

The contours in Figure 3.5: Contours of Static Temperature (p. 132) reveal the temperature increase in the
fluid due to heat transfer from the tubes. The hotter fluid is confined to the near-wall and wake regions,
while a narrow stream of cooler fluid is convected through the tube bank.

3. Display the velocity vectors (Figure 3.6: Velocity Vectors (p. 134)).

Postprocessing → Graphics → Vectors → Edit...

a. Enter 2 for Scale.

This will increase the size of the displayed vectors, making it easier to view the flow patterns.

b. Retain the default selection of Velocity from the Vectors of drop-down list.

c. Retain the default selection of Velocity... and Velocity Magnitude from the Color by drop-down lists.

d. Click Display and close the Vectors dialog box.

e. Zoom in on the upper right portion of one of the left tubes to get the display shown in (Figure 3.6: Ve-
locity Vectors (p. 134)), by using the middle mouse button in the graphics window.

The magnified view of the velocity vector plot in Figure 3.6: Velocity Vectors (p. 134) clearly shows the re-
circulating flow behind the tube and the boundary layer development along the tube surface.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 133
Modeling Periodic Flow and Heat Transfer

Figure 3.6: Velocity Vectors

4. Create an isosurface on the periodic tube bank at = 0.01 m (through the first column of tubes).

This isosurface and the ones created in the steps that follow will be used for the plotting of temperature
profiles.

Setting Up Domain → Surface → Create → Iso-Surface...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
134 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Select Mesh... and X-Coordinate from the Surface of Constant drop-down lists.

b. Enter 0.01 for Iso-Values.

c. Enter x=0.01m for New Surface Name.

d. Click Create.

5. In a similar manner, create an isosurface on the periodic tube bank at = 0.02 m (halfway between the
two columns of tubes) named x=0.02m.

6. In a similar manner, create an isosurface on the periodic tube bank at = 0.03 m (through the middle of
the second column of tubes) named x=0.03m, and close the Iso-Surface dialog box.

7. Create an XY plot of static temperature on the three isosurfaces (Figure 3.7: Static Temperature at x=0.01,
0.02, and 0.03 m (p. 137)).

Postprocessing → Plots → XY Plot → Edit...

a. Enter 0 for X and 1 for Y in the Plot Direction group box.

With a Plot Direction vector of (0,1), ANSYS Fluent will plot the selected variable as a function of
. Since you are plotting the temperature profile on cross sections of constant , the temperature
varies with the direction.

b. Select Temperature... and Static Temperature from the Y-Axis Function drop-down lists.

c. Select x=0.01m, x=0.02m, and x=0.03m in the Surfaces selection list.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 135
Modeling Periodic Flow and Heat Transfer

Scroll down to find the x=0.01m, x=0.02m, and x=0.03m surfaces.

d. Click the Curves... button to open the Curves - Solution XY Plot dialog box.

This dialog box is used to define plot styles for the different plot curves.

i. Select from the Symbol drop-down list.

Scroll up to find the item.

ii. Click Apply to assign the symbol to the = 0.01 m curve.

iii. Set the Curve # to 1 to define the style for the = 0.02 m curve.

iv. Select x from the Symbol drop-down list.

Scroll up to find the x item.

v. Enter 0.5 for Size.

vi. Click Apply and close the Curves - Solution XY Plot dialog box.

Since you did not change the curve style for the = 0.03 m curve, the default symbol will be used.

e. Click Plot and close the Solution XY Plot dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
136 of ANSYS, Inc. and its subsidiaries and affiliates.
Further Improvements

Figure 3.7: Static Temperature at x=0.01, 0.02, and 0.03 m

3.5. Summary
In this tutorial, periodic flow and heat transfer in a staggered tube bank were modeled in ANSYS Fluent.
The model was set up assuming a known mass flow through the tube bank and constant wall temper-
atures. Due to the periodic nature of the flow and symmetry of the geometry, only a small piece of the
full geometry was modeled. In addition, the tube bank configuration lent itself to the use of a hybrid
mesh with quadrilateral cells around the tubes and triangles elsewhere.

The Periodic Conditions dialog box makes it easy to run this type of model with a variety of operating
conditions. For example, different flow rates (and hence different Reynolds numbers) can be studied,
or a different inlet bulk temperature can be imposed. The resulting solution can then be examined to
extract the pressure drop per tube row and overall Nusselt number for a range of Reynolds numbers.

For additional details about modeling periodic heat transfer, see the Fluent User's Guide.

3.6. Further Improvements


This tutorial guides you through the steps to reach an initial solution. You may be able to obtain a more
accurate solution by adapting the mesh. Mesh adaption can also ensure that the solution is independent
of the mesh. These steps are demonstrated in Introduction to Using ANSYS Fluent: Fluid Flow and Heat
Transfer in a Mixing Elbow (p. 1).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 137
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
138 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 4: Modeling External Compressible Flow
This tutorial is divided into the following sections:
4.1. Introduction
4.2. Prerequisites
4.3. Problem Description
4.4. Setup and Solution
4.5. Summary
4.6. Further Improvements

4.1. Introduction
The purpose of this tutorial is to compute the turbulent flow past a transonic airfoil at a nonzero angle
of attack. You will use the Spalart-Allmaras turbulence model.

This tutorial demonstrates how to do the following:

• Model compressible flow (using the ideal gas law for density).

• Set boundary conditions for external aerodynamics.

• Use the Spalart-Allmaras turbulence model.

• Use Full Multigrid (FMG) initialization to obtain better initial field values.

• Calculate a solution using the pressure-based coupled solver with the pseudo transient option.

• Use force and surface reports to check solution convergence.

• Check the near-wall mesh resolution by plotting the distribution of .

4.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorial Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 1)
found in this manual and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some
steps in the setup and solution procedure will not be shown explicitly.

4.3. Problem Description


The problem considers the flow around an airfoil at an angle of attack and a free stream Mach
number of ( ). The flow is transonic, and has a fairly strong shock near the mid-chord
( ) on the upper (suction) side. The chord length is 1 m. The geometry of the airfoil is shown
in Figure 4.1: Problem Specification (p. 140).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 139
Modeling External Compressible Flow

Figure 4.1: Problem Specification

4.4. Setup and Solution


The following sections describe the setup and solution steps for this tutorial:
4.4.1. Preparation
4.4.2. Mesh
4.4.3. Solver
4.4.4. Models
4.4.5. Materials
4.4.6. Boundary Conditions
4.4.7. Operating Conditions
4.4.8. Solution
4.4.9. Postprocessing

4.4.1. Preparation
To prepare for running this tutorial:

1. Download the external_compressible.zip file here.

2. Unzip external_compressible.zip to your working directory.

3. The file airfoil.msh can be found in the folder .

4. Use Fluent Launcher to start the 2D version of ANSYS Fluent.

Fluent Launcher displays your Display Options preferences from the previous session.

For more information about Fluent Launcher, see starting ANSYS Fluent using the Fluent Launcher
in the Fluent Getting Started Guide.

5. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.

6. Enable Double Precision.

7. Ensure Serial is selected under Processing Options.

4.4.2. Mesh
1. Read the mesh file airfoil.msh.

File → Read → Mesh...

2. Check the mesh.

Setting Up Domain → Mesh → Check

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
140 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

ANSYS Fluent will perform various checks on the mesh and will report the progress in the console. Make
sure that the reported minimum volume is a positive number.

3. Examine the mesh (Figure 4.2: The Entire Mesh (p. 141) and Figure 4.3: Magnified View of the Mesh Around
the Airfoil (p. 142)).

Figure 4.2: The Entire Mesh

Quadrilateral cells were used for this simple geometry because they can be stretched easily to account
for different flow gradients in different directions. In the present case, the gradients normal to the airfoil
wall are much greater than those tangent to the airfoil. Consequently, the cells near the surface have
high aspect ratios. For geometries that are more difficult to mesh, it may be easier to create a hybrid
mesh composed of quadrilateral and triangular cells.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 141
Modeling External Compressible Flow

Figure 4.3: Magnified View of the Mesh Around the Airfoil

A parabola was chosen to represent the far-field boundary because it has no discontinuities in slope,
enabling the construction of a smooth mesh in the interior of the domain.

Extra

You can use the right mouse button to probe for mesh information in the graphics win-
dow. If you click the right mouse button on any node in the mesh, information will be
displayed in the ANSYS Fluent console about the associated zone, including the name of
the zone. This feature is especially useful when you have several zones of the same type
and you want to distinguish between them quickly.

4.4.3. Solver
1. Set the solver settings.

Setting Up Physics → Solver

a. Retain the default selection of Pressure-Based from the Type list.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
142 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

The pressure-based solver with the Coupled option for the pressure-velocity coupling is a good altern-
ative to density-based solvers of ANSYS Fluent when dealing with applications involving high-speed
aerodynamics with shocks. Selection of the coupled algorithm is made in the Solution Methods task
page in the Solution step.

4.4.4. Models
1. Select the Spalart-Allmaras turbulence model.

Setting Up Physics → Models → Viscous...

a. Select Spalart-Allmaras (1eqn) in the Model list.

b. Select Strain/Vorticity-Based in the Spalart-Allmaras Production list.

c. Retain the default settings in the Model Constants group box.

d. Click OK to close the Viscous Model dialog box.

Note

The Spalart-Allmaras model is a relatively simple one-equation model that solves a modeled
transport equation for the kinematic eddy (turbulent) viscosity. This embodies a relatively
new class of one-equation models in which it is not necessary to calculate a length scale
related to the local shear layer thickness. The Spalart-Allmaras model was designed spe-

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 143
Modeling External Compressible Flow

cifically for aerospace applications involving wall-bounded flows and has been shown to
give good results for boundary layers subjected to adverse pressure gradients.

4.4.5. Materials
The default Fluid Material is air, which is the working fluid in this problem. The default settings need to be
modified to account for compressibility and variations of the thermophysical properties with temperature.

1. Set the properties for air, the default fluid material.

Setup → Materials → Fluids → air Edit...

a. Select ideal-gas from the Density drop-down list.

The Energy Equation will be enabled.

b. Select sutherland from the Viscosity drop-down list to open the Sutherland Law dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
144 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

i. Retain the default selection of Three Coefficient Method in the Methods list.

ii. Click OK to close the Sutherland Law dialog box.

The Sutherland law for viscosity is well suited for high-speed compressible flows.

c. Click Change/Create to save these settings.

d. Close the Create/Edit Materials dialog box.

While Density and Viscosity have been made temperature-dependent, Cp (Specific Heat) and Thermal
Conductivity have been left constant. For high-speed compressible flows, thermal dependency of the
physical properties is generally recommended. For simplicity, Thermal Conductivity and Cp (Specific
Heat) are assumed to be constant in this tutorial.

4.4.6. Boundary Conditions

Setup → Boundary Conditions

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 145
Modeling External Compressible Flow

1. Set the boundary conditions for pressure-far-field-1.

Setup → Boundary Conditions → pressure-far-field-1 → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
146 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Retain the default value of 0 Pa for Gauge Pressure.

Note

The gauge pressure in ANSYS Fluent is always relative to the operating pressure, which
is defined in a separate input (see below).

b. Enter 0.8 for Mach Number.

c. Enter 0.997564 and 0.069756 for the X-Component of Flow Direction and Y-Component of Flow
Direction, respectively.

These values are determined by the angle of attack: and .

d. Retain Turbulent Viscosity Ratio from the Specification Method drop-down list in the Turbulence
group box.

e. Retain the default value of 10 for Turbulent Viscosity Ratio.

The viscosity ratio should be between 1 and 10 for external flows.

f. Click the Thermal tab and retain the default value of 300 K for Temperature.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 147
Modeling External Compressible Flow

i. A. Click OK to close the Pressure Far-Field dialog box.

4.4.7. Operating Conditions


1. Set the operating pressure.

Setup → Boundary Conditions → Operating Conditions...

The Operating Conditions dialog box can also be accessed from the Cell Zone Conditions task page.

a. Retain the default value of 101325 Pa for Operating Pressure.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
148 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

The operating pressure should be set to a meaningful mean value in order to avoid round-off errors.
The absolute pressure must be greater than zero for compressible flows. If you want to specify
boundary conditions in terms of absolute pressure, you can make the operating pressure zero.

b. Click OK to close the Operating Conditions dialog box.

For information about setting the operating pressure, see the Fluent User's Guide.

4.4.8. Solution
1. Set the solution parameters.

Solving → Solution → Methods...

a. Select Coupled from the Scheme drop-down list in the Pressure-Velocity Coupling group box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 149
Modeling External Compressible Flow

b. Retain the default selection of Least Squares Cell Based from the Gradient drop-down list in the
Spatial Discretization group box.

c. Retain the default selection of Second Order from the Pressure drop-down list.

d. Select Second Order Upwind from the Modified Turbulent Viscosity drop-down list.

e. Enable Pseudo Transient.

The Pseudo Transient option enables the pseudo transient algorithm in the coupled pressure-based
solver. This algorithm effectively adds an unsteady term to the solution equations in order to improve
stability and convergence behavior. Use of this option is recommended for general fluid flow problems.

2. Set the solution controls.

Solving → Controls → Controls...

Enter 0.5 for Density in the Pseudo Transient Explicit Relaxation Factors group box.

Under-relaxing the density factor is recommended for high-speed compressible flows.

3. Enable residual plotting during the calculation.

Solving → Reports → Residuals...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
150 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Ensure that Plot is enabled in the Options group box and click OK to close the Residual Monitors
dialog box.

4. Initialize the solution.

Solution → Solution Initialization

a. Retain the default selection of Hybrid Initialization from the Initialization Methods group box.

b. Click Initialize to initialize the solution.

c. Run the Full Multigrid (FMG) initialization.

FMG initialization often facilitates an easier start-up, where no CFL (Courant Friedrichs Lewy) ramping
is necessary, thereby reducing the number of iterations for convergence.

i. Press Enter in the console to get the command prompt (>).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 151
Modeling External Compressible Flow

ii. Enter the text commands and input responses as shown in the boxes. Accept the default values by
pressing Enter when no input response is given:

solve/initialize/set-fmg-initialization

Customize your FMG initialization:


set the number of multigrid levels [5]

set FMG parameters on levels ..

residual reduction on level 1 is: [0.001]


number of cycles on level 1 is: [100]

residual reduction on level 2 is: [0.001]


number of cycles on level 2 is: [100]

residual reduction on level 3 is: [0.001]


number of cycles on level 3 is: [100]

residual reduction on level 4 is: [0.001]


number of cycles on level 4 is: [500]

residual reduction on level 5 [coarsest grid] is: [0.001]


number of cycles on level 5 is: [500]

* FMG customization complete

set FMG courant-number [0.75]

enable FMG verbose? [yes]

solve/initialize/fmg-initialization
Enable FMG initialization? [no] yes

Note

Whenever FMG initialization is performed, it is important to inspect the FMG initialized


flow field using the postprocessing tools of ANSYS Fluent. Monitoring the normalized
residuals, which are plotted in the console window, will give you an idea of the conver-
gence of the FMG solver. You should notice that the value of the normalized residuals
decreases. For information about FMG initialization, including convergence strategies,
see the Fluent User's Guide.

5. Save the case and data files (airfoil.cas.gz and airfoil.dat.gz).

File → Write → Case & Data...

It is good practice to save the case and data files during several stages of your case setup.

6. Start the calculation by requesting 50 iterations.

Solving → Run Calculation

a. Enter 50 for No. of Iterations.

b. Click Calculate.

By performing some iterations before setting up the force reports, you will avoid large initial transients
in the report plots. This will reduce the axes range and make it easier to judge the convergence.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
152 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

7. Set the reference values that are used to compute the lift, drag, and moment coefficients.

Setup → Reference Values

The reference values are used to non-dimensionalize the forces and moments acting on the airfoil. The
dimensionless forces and moments are the lift, drag, and moment coefficients.

a. Select pressure-far-field-1 from the Compute from drop-down list.

ANSYS Fluent will update the Reference Values based on the boundary conditions at the far-field
boundary.

8. Create a force report definition to plot and write the drag coefficient for the walls of the airfoil.

Solving → Reports → Definitions → New → Force Report → Drag...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 153
Modeling External Compressible Flow

a. Enter cd-1 for Name.

b. Make sure that Drag Coefficient is selected in the Report Output Type group box.

c. In the Create group box, enable Report Plot.

d. Enable Report File to save the report history to a file.

Note

If you do not enable the Report File option, the history information will be lost when
you exit ANSYS Fluent.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
154 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

e. Select wall-bottom and wall-top in the Wall Zones selection list.

f. Enter 0.9976 for X and 0.06976 for Y in the Force Vector group box.

These X and Y values ensure that the drag coefficient is calculated parallel to the free-stream flow,
which is off of the global coordinates.

g. Click OK to close the Drag Report Definition dialog box.

9. Similarly, create a force report definition for the lift coefficient.

Solving → Reports → Definitions → New → Force Report → Lift...

Enter the values for X and Y shown in the Lift Report Definition dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 155
Modeling External Compressible Flow

The X and Y values shown ensure that the lift coefficient is calculated normal to the free-stream flow,
which is off of the global coordinates.

10. In a similar manner, create a force report definition for the moment coefficient.

Solving → Reports → Definitions → New → Force Report → Moment...

Enter the values for the Moment Center and Moment Axis shown in the Moment Report Definition
dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
156 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

11. Display filled contours of pressure overlaid with the mesh in preparation for creating a surface report
definition (Figure 4.4: Pressure Contours After 50 Iterations (p. 158) and Figure 4.5: Magnified View of Pressure
Contours Showing Wall-Adjacent Cells (p. 159)).

Postprocessing → Graphics → Contours → Edit...

a. Enable Filled in the Options group box.

b. Enable Draw Mesh to open the Mesh Display dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 157
Modeling External Compressible Flow

i. Retain the default settings.

ii. Close the Mesh Display dialog box.

c. Click Display and close the Contours dialog box.

Figure 4.4: Pressure Contours After 50 Iterations

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
158 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

The shock is clearly visible on the upper surface of the airfoil, where the pressure jumps to a higher
value downstream of the low pressure area.

Note

The color indicating a high pressure area near the leading edge of the airfoil is ob-
scured by the overlaid green mesh. To view this contour, simply disable the Draw
Mesh option in the Contours dialog box and click Display.

d. Zoom in on the shock wave, until individual cells adjacent to the upper surface (wall-top boundary)
are visible, as shown in Figure 4.5: Magnified View of Pressure Contours Showing Wall-Adjacent
Cells (p. 159).

Figure 4.5: Magnified View of Pressure Contours Showing Wall-Adjacent Cells

The magnified region contains cells that are just downstream of the shock and adjacent to the upper
surface of the airfoil. In the following step, you will create a point surface inside a wall-adjacent cell,
which you will use to create a surface report definition.

12. Create a point surface just downstream of the shock wave.

Postprocessing → Surface → Create → Point...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 159
Modeling External Compressible Flow

a. Enter 0.53 m for x0 and 0.051 m for y0 in the Coordinates group box.

b. Retain the default entry of point-4 for New Surface Name.

c. Click Create and close the Point Surface dialog box.

Note

You have entered the exact coordinates of the point surface so that your convergence
history will match the plots and description in this tutorial. In general, however, you will
not know the exact coordinates in advance, so you will need to select the desired location
in the graphics window. You do not have to apply the following instructions at this point
in the tutorial; they are added here for your information:

a. In the Point Surface dialog box, click the Select Point with Mouse button. A Working
dialog box will open telling you to “Click on a location in the graphics window with the
MOUSE-PROBE mouse button.”

b. Position the mouse pointer at a point located inside one of the cells adjacent to the airfoil
surface, downstream of the shock (see Figure 4.6: Pressure Contours after Creating a Point
with the Mouse (p. 161)).

c. Click the right mouse button.

d. Click Create to create the point surface and then close the Point Surface dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
160 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 4.6: Pressure Contours after Creating a Point with the Mouse

13. Enable residual plotting during the calculation.

Solving → Reports → Residuals...

a. Ensure that Plot is enabled in the Options group box.

b. Select none from the Convergence Criterion drop-down list so that automatic convergence checking
does not occur.

c. Click OK to close the Residual Monitors dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 161
Modeling External Compressible Flow

14. Create a surface report definition for tracking the velocity magnitude value at the point created in the
previous step.

Since the drag, lift, and moment coefficients are global variables, indicating certain overall conditions,
they may converge while local conditions at specific points are still varying from one iteration to the
next. To account for this, create a report definition at a point (just downstream of the shock) where there
is likely to be significant variation, and monitor the value of the velocity magnitude.

Solving → Reports → Definitions → New → Surface Report → Vertex Average...

a. Enter surf-mon-1 for Name.

b. Select Velocity... and Velocity Magnitude from the Field Variable drop-down list.

c. Select point-4 in the Surfaces selection list.

d. In the Create group box, enable Report File, Report Plot and Print to Console.

e. Click OK to close the Surface Report Definition dialog box.

15. Save the case and data files (airfoil-1.cas.gz and airfoil-1.dat.gz).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
162 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

File → Write → Case & Data...

16. Continue the calculation for 200 more iterations.

Solving → Run Calculation → Calculate

The force reports (Figure 4.8: Drag Coefficient Convergence History (p. 163) and Figure 4.9: Lift Coefficient
Convergence History (p. 164)) show that the case is converged after approximately 200 iterations.

Figure 4.7: Velocity Magnitude History

Figure 4.8: Drag Coefficient Convergence History

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 163
Modeling External Compressible Flow

Figure 4.9: Lift Coefficient Convergence History

Figure 4.10: Moment Coefficient Convergence History

17. Save the case and data files (airfoil-2.cas.gz and airfoil-2.dat.gz).

File → Write → Case & Data...

4.4.9. Postprocessing
1. Plot the distribution on the airfoil (Figure 4.11: XY Plot of y+ Distribution (p. 166)).

Postprocessing → Plots → XY Plot → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
164 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Disable Node Values in the Options group box.

b. Select Turbulence... and Wall Yplus from the Y Axis Function drop-down list.

Wall Yplus is available only for cell values.

c. Select wall-bottom and wall-top in the Surfaces selection list.

d. Click Plot and close the Solution XY Plot dialog box.

Note

The values of are dependent on the resolution of the mesh and the Reynolds number
of the flow, and are defined only in wall-adjacent cells. The value of in the wall-adjacent
cells dictates how wall shear stress is calculated. When you use the Spalart-Allmaras
model, you should check that of the wall-adjacent cells is either very small (on the
order of ), or approximately 30 or greater. Otherwise, you should modify your mesh.

The equation for is


(4.1)
where is the distance from the wall to the cell center, is the molecular viscosity, is
the density of the air, and is the wall shear stress.

Figure 4.11: XY Plot of y+ Distribution (p. 166) indicates that, except for a few small regions
(notably at the shock and the trailing edge), and for much of these regions it does
not drop significantly below 30. Therefore, you can conclude that the near-wall mesh
resolution is acceptable.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 165
Modeling External Compressible Flow

Figure 4.11: XY Plot of y+ Distribution

2. Display filled contours of Mach number (Figure 4.12: Contour Plot of Mach Number (p. 167)).

Postprocessing → Graphics → Contours → Edit...

a. Ensure Filled is enabled in the Options group box.

b. Ensure Draw Mesh is disabled in the Options group box.

c. Select Velocity... and Mach Number from the Contours of drop-down list.

d. Click Display and close the Contours dialog box.

e. Zoom in on the region around the airfoil, as shown in Figure 4.12: Contour Plot of Mach Number (p. 167).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
166 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 4.12: Contour Plot of Mach Number

Note the discontinuity, in this case a shock, on the upper surface of the airfoil in Figure 4.12: Contour
Plot of Mach Number (p. 167) at about .

3. Plot the pressure distribution on the airfoil (Figure 4.13: XY Plot of Pressure (p. 167)).

Postprocessing → Plots → XY Plot → Edit...

a. Enable Node Values.

b. Select Pressure... and Pressure Coefficient from the Y Axis Function drop-down lists.

c. Click Plot.

Figure 4.13: XY Plot of Pressure

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 167
Modeling External Compressible Flow

Notice the effect of the shock wave on the upper surface in Figure 4.13: XY Plot of Pressure (p. 167).

4. Plot the component of wall shear stress on the airfoil surface (Figure 4.14: XY Plot of x Wall Shear
Stress (p. 168)).

a. Disable Node Values.

b. Select Wall Fluxes... and X-Wall Shear Stress from the Y Axis Function drop-down lists.

c. Click Plot and close the Solution XY Plot dialog box.

As shown in Figure 4.14: XY Plot of x Wall Shear Stress (p. 168), the large, adverse pressure gradient induced
by the shock causes the boundary layer to separate. The point of separation is where the wall shear stress
vanishes. Flow reversal is indicated here by negative values of the x component of the wall shear stress.

Figure 4.14: XY Plot of x Wall Shear Stress

5. Display filled contours of the component of velocity (Figure 4.15: Contour Plot of x Component of Velo-
city (p. 169)).

Postprocessing → Graphics → Contours → Edit...

a. Ensure Filled is enabled in the Options group box.

b. Select Velocity... and X Velocity from the Contours of drop-down lists.

c. Click Display and close the Contours dialog box.

Note the flow reversal downstream of the shock in Figure 4.15: Contour Plot of x Component of Velo-
city (p. 169).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
168 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 4.15: Contour Plot of x Component of Velocity

6. Plot velocity vectors (Figure 4.16: Plot of Velocity Vectors Downstream of the Shock (p. 169)).

Postprocessing → Graphics → Vectors → Edit...

a. Enter 15 for Scale.

b. Click Display and close the Vectors dialog box.

c. Zoom in on the flow above the upper surface at a point downstream of the shock, as shown in Fig-
ure 4.16: Plot of Velocity Vectors Downstream of the Shock (p. 169).

Figure 4.16: Plot of Velocity Vectors Downstream of the Shock

Flow reversal is clearly visible in Figure 4.16: Plot of Velocity Vectors Downstream of the Shock (p. 169).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 169
Modeling External Compressible Flow

4.5. Summary
This tutorial demonstrated how to set up and solve an external aerodynamics problem using the pressure-
based coupled solver with pseudo transient under-relaxation and the Spalart-Allmaras turbulence
model. It showed how to monitor convergence using force and surface report definitions, and demon-
strated the use of several postprocessing tools to examine the flow phenomena associated with a shock
wave.

4.6. Further Improvements


This tutorial guides you through the steps to reach an initial solution. You may be able to obtain a more
accurate solution by using an appropriate higher-order discretization scheme and by adapting the mesh.
Mesh adaption can also ensure that the solution is independent of the mesh. These steps are demon-
strated in Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 1).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
170 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 5: Modeling Transient Compressible Flow
This tutorial is divided into the following sections:
5.1. Introduction
5.2. Prerequisites
5.3. Problem Description
5.4. Setup and Solution
5.5. Summary
5.6. Further Improvements

5.1. Introduction
In this tutorial, ANSYS Fluent’s density-based implicit solver is used to predict the time-dependent flow
through a two-dimensional nozzle. As an initial condition for the transient problem, a steady-state
solution is generated to provide the initial values for the mass flow rate at the nozzle exit.

This tutorial demonstrates how to do the following:

• Calculate a steady-state solution (using the density-based implicit solver) as an initial condition for a transient
flow prediction.

• Define a transient boundary condition using a user-defined function (UDF).

• Use dynamic mesh adaption for both steady-state and transient flows.

• Calculate a transient solution using the second-order implicit transient formulation and the density-based
implicit solver.

• Create an animation of the transient flow using ANSYS Fluent’s transient solution animation feature.

5.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorial Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 1)
found in this manual and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some
steps in the setup and solution procedure will not be shown explicitly.

5.3. Problem Description


The geometry to be considered in this tutorial is shown in Figure 5.1: Problem Specification (p. 172).
Flow through a simple nozzle is simulated as a 2D planar model. The nozzle has an inlet height of 0.2 m,
and the nozzle contours have a sinusoidal shape that produces a 20% reduction in flow area. Symmetry
allows only half of the nozzle to be modeled.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 171
Modeling Transient Compressible Flow

Figure 5.1: Problem Specification

5.4. Setup and Solution


The following sections describe the setup and solution steps for this tutorial:
5.4.1. Preparation
5.4.2. Reading and Checking the Mesh
5.4.3. Solver and Analysis Type
5.4.4. Models
5.4.5. Materials
5.4.6. Operating Conditions
5.4.7. Boundary Conditions
5.4.8. Solution: Steady Flow
5.4.9. Enabling Time Dependence and Setting Transient Conditions
5.4.10. Specifying Solution Parameters for Transient Flow and Solving
5.4.11. Saving and Postprocessing Time-Dependent Data Sets

5.4.1. Preparation
To prepare for running this tutorial:

1. Download the unsteady_compressible.zip file here.

2. Unzip unsteady_compressible.zip to your working directory.

3. The files nozzle.msh and pexit.c can be found in the folder.

4. Use Fluent Launcher to start the 2D version of ANSYS Fluent.

Fluent Launcher displays your Display Options preferences from the previous session.

5. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.

6. Ensure that Serial is selected under Processing Options.

7. Disable the Double Precision option.

5.4.2. Reading and Checking the Mesh


1. Read the mesh file nozzle.msh.

File → Read → Mesh...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
172 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

The mesh for the half of the geometry is displayed in the graphics window.

2. Check the mesh.

Setting Up Domain → Mesh → Check

ANSYS Fluent will perform various checks on the mesh and will report the progress in the console. Ensure
that the reported minimum volume is a positive number.

3. Verify that the mesh size is correct.

Setting Up Domain → Mesh → Scale

Close the Scale Mesh dialog box.

4. Mirror the mesh across the centerline (Figure 5.2: 2D Nozzle Mesh Display with Mirroring (p. 174)).

Viewing → Display → Views...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 173
Modeling Transient Compressible Flow

a. Select symmetry in the Mirror Planes selection list.

b. Click Apply to refresh the display.

c. Close the Views dialog box.

Figure 5.2: 2D Nozzle Mesh Display with Mirroring

5. For convenience, change the unit of measurement for pressure.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
174 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

The pressure for this problem is specified in atm, which is not the default unit in ANSYS Fluent. You must
redefine the pressure unit as atm.

Setting Up Domain → Mesh → Units...

a. Select pressure in the Quantities selection list.

Scroll down the list to find pressure.

b. Select atm in the Units selection list.

c. Close the Set Units dialog box.

5.4.3. Solver and Analysis Type


1. Select the solver settings.

Setting Up Physics → Solver → Density-Based

a. In the Solver group of the Setting Up Physics tab, select Density-Based from the Type list.

The density-based implicit solver is the solver of choice for compressible, transonic flows without
significant regions of low-speed flow. In cases with significant low-speed flow regions, the pressure-
based solver is preferred. Also, for transient cases with traveling shocks, the density-based explicit
solver with explicit time stepping may be the most efficient.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 175
Modeling Transient Compressible Flow

b. Retain the default selection of Steady from the Time list.

Note

You will solve for the steady flow through the nozzle initially. In later steps, you will
use these initial results as a starting point for a transient calculation.

5.4.4. Models
1. Enable the energy equation.

Setup → Models → Energy Model → On

2. Select the k-omega SST turbulence model.

Setup → Models → Viscous Model → SST k-omega

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
176 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

5.4.5. Materials
1. Define the settings for air, the default fluid material.

Setup → Materials → air → Create/Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 177
Modeling Transient Compressible Flow

a. Select ideal-gas from the Density drop-down list in the Properties group box, so that the ideal gas
law is used to calculate density.

Note

ANSYS Fluent automatically enables the solution of the energy equation when the
ideal gas law is used, in case you did not already enable it manually in the Energy
dialog box.

b. Retain the default values for all other properties.

c. Click the Change/Create button to save your change.

d. Close the Create/Edit Materials dialog box.

5.4.6. Operating Conditions


1. Define the operating pressure.

Setting Up Physics → Solver → Operating Conditions...

a. Enter 0 atm for Operating Pressure.

b. Click OK to close the Operating Conditions dialog box.

Since you have set the operating pressure to zero, you will specify the boundary condition inputs for
pressure in terms of absolute pressures when you define them in the next step. Boundary condition inputs
for pressure should always be relative to the value used for operating pressure.

5.4.7. Boundary Conditions


1. Define the boundary conditions for the nozzle inlet (inlet).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
178 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Setup → Boundary Conditions → inlet (pressure-inlet) Edit...

a. Enter 0.9 atm for Gauge Total Pressure.

b. Enter 0.7369 atm for Supersonic/Initial Gauge Pressure.

The inlet static pressure estimate is the mean pressure at the nozzle exit. This value will be used during
the solution initialization phase to provide a guess for the nozzle velocity.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 179
Modeling Transient Compressible Flow

c. Retain Intensity and Viscosity Ratio from the Specification Method drop-down list in the Turbulence
group box.

d. Enter 1.5% for Turbulent Intensity.

e. Retain the setting of 10 for Turbulent Viscosity Ratio.

f. Click OK to close the Pressure Inlet dialog box.

2. Define the boundary conditions for the nozzle exit (outlet).

Setup → Boundary Conditions → outlet (pressure-outlet) Edit...

a. Enter 0.7369 atm for Gauge Pressure.

b. Retain Intensity and Viscosity Ratio from the Specification Method drop-down list in the Turbulence
group box.

c. Enter 1.5% for Backflow Turbulent Intensity.

d. Retain the setting of 10 for Backflow Turbulent Viscosity Ratio.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
180 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

If substantial backflow occurs at the outlet, you may need to adjust the backflow values to levels
close to the actual exit conditions.

e. Click OK to close the Pressure Outlet dialog box.

5.4.8. Solution: Steady Flow


In this step, you will generate a steady-state flow solution that will be used as an initial condition for the
time-dependent solution.

1. Define the solution parameters.

Solving → Solution → Methods...

a. Retain the default selection of Least Squares Cell Based from the Gradient drop-down list in the
Spatial Discretization group box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 181
Modeling Transient Compressible Flow

b. Select Second Order Upwind from the Turbulent Kinetic Energy and Specific Dissipation Rate drop-
down lists.

Second-order discretization provides optimum accuracy.

2. Modify the Courant Number.

Solving → Controls → Controls...

a. Enter 50 for the Courant Number.

Note

The default Courant number for the density-based implicit formulation is 5. For relat-
ively simple problems, setting the Courant number to 10, 20, 100, or even higher
value may be suitable and produce fast and stable convergence. However, if you en-
counter convergence difficulties at the startup of the simulation of a properly set up
problem, then you should consider setting the Courant number to its default value
of 5. As the solution progresses, you can start to gradually increase the Courant
number until the final convergence is reached.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
182 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

b. Retain the default values for the Under-Relaxation Factors.

3. Enable the plotting of residuals.

Solving → Reports → Residuals...

a. Ensure that Plot is enabled in the Options group box.

b. Select none from the Convergence Criterion drop-down list.

c. Click OK to close the Residual Monitors dialog box.

4. Create the surface report definition for mass flow rate at the flow exit.

Solving → Reports → Definitions → New → Surface Report → Mass Flow Rate...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 183
Modeling Transient Compressible Flow

a. Enter mass_flowrate_out for Name.

b. Select outlet in the Surfaces selection list.

c. In the Create group box, enable Report File, Report Plot and Print to Console.

Note

When Report File is enabled in the Surface Report Definition dialog box, the mass
flow rate history will be written to a file. If you do not enable this option, the history
information will be lost when you exit ANSYS Fluent.

d. Click OK to close the Surface Report Definition dialog box.

mass_flowrate_out-rplot and mass_flowrate_out-rfile are automatically generated by Fluent


and appear in the tree (under Solution/Monitors/Report Plots and Solution/Monitors/Report
Files, respectively).

e. Modify the output file name.

Solution → Monitors → Report Files → mass_flowrate_out-rfile Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
184 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

i. Enter noz_ss.out for Output File Base Name.

ii. Click OK to close the Edit Report File dialog box.

5. Save the case file (noz_ss.cas.gz).

File → Write → Case...

6. Initialize the solution.

Solving → Initialization

a. Keep the Method at the default of Hybrid.

b. Click Initialize.

7. Set up gradient adaption for dynamic mesh refinement.

You will enable dynamic adaption so that the solver periodically refines the mesh in the vicinity of the
shocks as the iterations progress. The shocks are identified by their large pressure gradients.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 185
Modeling Transient Compressible Flow

Setting Up Domain → Adapt → Mark/Adapt Cells → Gradient...

a. Select Gradient from the Method group box.

The mesh adaption criterion can either be the gradient or the curvature (second gradient). Because
strong shocks occur inside the nozzle, the gradient is used as the adaption criterion.

b. Select Scale from the Normalization group box.

Mesh adaption can be controlled by the raw (or standard) value of the gradient, the scaled value (by
its average in the domain), or the normalized value (by its maximum in the domain). For dynamic
mesh adaption, it is recommended that you use either the scaled or normalized value because the
raw values will probably change strongly during the computation, which would necessitate a read-
justment of the coarsen and refine thresholds. In this case, the scaled gradient is used.

c. Enable Dynamic in the Dynamic group box.

d. Enter 100 for the Interval.

For steady-state flows, it is sufficient to only seldomly adapt the mesh—in this case an interval of
100 iterations is chosen. For time-dependent flows, a considerably smaller interval must be used.

e. Retain the default selection of Pressure... and Static Pressure from the Gradients of drop-down lists.

f. Enter 0.3 for Coarsen Threshold.

g. Enter 0.7 for Refine Threshold.

As the refined regions of the mesh get larger, the coarsen and refine thresholds should get smaller.
A coarsen threshold of 0.3 and a refine threshold of 0.7 result in a “medium” to “strong” mesh refine-
ment in combination with the scaled gradient.

h. Click Apply to store the information.

i. Click the Controls... button to open the Mesh Adaption Controls dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
186 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

i. Retain the default selection of fluid in the Zones selection list.

ii. Enter 20000 for Max # of Cells.

To restrict the mesh adaption, the maximum number of cells can be limited. If this limit is violated
during the adaption, the coarsen and refine thresholds are adjusted to respect the maximum
number of cells. Additional restrictions can be placed on the minimum cell volume, minimum
number of cells, and maximum level of refinement.

iii. Click OK to save your settings and close the Mesh Adaption Controls dialog box.

j. Click Close to close the Gradient Adaption dialog box.

8. Start the calculation by requesting 500 iterations.

Solving → Run Calculation → Advanced...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 187
Modeling Transient Compressible Flow

a. Enter 500 for Number of Iterations.

b. Click Calculate to start the steady flow simulation.

Figure 5.3: Mass Flow Rate History

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
188 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

9. Save the case and data files (noz_ss.cas.gz and noz_ss.dat.gz).

File → Write → Case & Data...

Note

When you write the case and data files at the same time, it does not matter whether you
specify the file name with a .cas or .dat extension, as both will be saved.

10. Click OK in the Question dialog box to overwrite the existing file.

11. Review a mesh that resulted from the dynamic adaption performed during the computation.

Results → Graphics → Mesh Edit...

a. Ensure that only the Edges option is enabled in the Options group box.

b. Select Feature from the Edge Type list.

c. Ensure that all of the items are selected from the Surfaces selection list.

d. Click Display and close the Mesh Display dialog box.

The mesh after adaption is displayed in the graphics window (Figure 5.4: 2D Nozzle Mesh after
Adaption (p. 190))

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 189
Modeling Transient Compressible Flow

Figure 5.4: 2D Nozzle Mesh after Adaption

e. Zoom in using the middle mouse button to view aspects of your mesh.

Notice that the cells in the regions of high pressure gradients have been refined.

12. Display the steady flow contours of static pressure (Figure 5.5: Contours of Static Pressure (Steady
Flow) (p. 191)).

Postprocessing → Graphics → Contours → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
190 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Enable Filled in the Options group box.

b. Click Display and close the Contours dialog box.

Figure 5.5: Contours of Static Pressure (Steady Flow)

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 191
Modeling Transient Compressible Flow

The steady flow prediction in Figure 5.5: Contours of Static Pressure (Steady Flow) (p. 191) shows the ex-
pected pressure distribution, with low pressure near the nozzle throat.

13. Display the steady-flow velocity vectors (Figure 5.6: Velocity Vectors Showing Recirculation (Steady
Flow) (p. 193)).

Postprocessing → Graphics → Vectors → Edit...

a. Enter 50 under Scale.

b. Click Display and close the Vectors dialog box.

The steady flow prediction shows the expected form, with a peak velocity of approximately 300 m/s
through the nozzle.

You can zoom in on the wall in the expansion region of the nozzle to view the recirculation of the
flow as shown in Figure 5.6: Velocity Vectors Showing Recirculation (Steady Flow) (p. 193) .

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
192 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 5.6: Velocity Vectors Showing Recirculation (Steady Flow)

14. Check the mass flux balance.

Important

Although the mass flow rate history indicates that the solution is converged, you should
also check the mass flux throughout the domain to ensure that mass is being conserved.

Postprocessing → Reports → Fluxes...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 193
Modeling Transient Compressible Flow

a. Retain the default selection of Mass Flow Rate.

b. Select inlet and outlet in the Boundaries selection list.

c. Click Compute and examine the values displayed in the dialog box.

Important

The net mass imbalance should be a small fraction (for example, 0.1%) of the
total flux through the system. The imbalance is displayed in the lower right field
under Net Results. If a significant imbalance occurs, you should decrease your
residual tolerances by at least an order of magnitude and continue iterating.

d. Close the Flux Reports dialog box.

5.4.9. Enabling Time Dependence and Setting Transient Conditions


In this step you will define a transient flow by specifying a transient pressure condition for the nozzle.

1. Enable a time-dependent flow calculation.

Setting Up Physics → Solver → Transient

2. Read the user-defined function (pexit.c), in preparation for defining the transient condition for the
nozzle exit.

The pressure at the outlet is defined as a wave-shaped profile, and is described by the following equation:
(5.1)

where

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
194 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

= circular frequency of transient pressure (rad/s)


= mean exit pressure (atm)

In this case, rad/s, and atm.

A user-defined function ( pexit.c ) has been written to define the equation (Equation 5.1 (p. 194)) required
for the pressure profile.

Note

To input the value of Equation 5.1 (p. 194) in the correct units, the function pexit.c has
to be written in SI units.

More details about user-defined functions can be found in the Fluent Customization Manual.

User Defined → User Defined → Functions → Interpreted...

a. Enter pexit.c for Source File Name.

If the UDF source file is not in your working directory, then you must enter the entire directory path
for Source File Name instead of just entering the file name.

b. Click Interpret.

The user-defined function has already been defined, but it must be compiled within ANSYS Fluent before
it can be used in the solver.

c. Close the Interpreted UDFs dialog box.

3. Define the transient boundary conditions at the nozzle exit (outlet).

Setup → Boundary Conditions → outlet Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 195
Modeling Transient Compressible Flow

a. Select udf transient_pressure (the user-defined function) from the Gauge Pressure drop-down list.

b. Click OK to close the Pressure Outlet dialog box.

4. Update the gradient adaption parameters for the transient case.

Setting Up Domain → Adapt → Mark/Adapt Cells → Gradient...

a. Enter 10 for Interval in the Dynamic group box.

For the transient case, the mesh adaption will be done every 10 time steps.

b. Enter 0.3 for Coarsen Threshold.

c. Enter 0.7 for Refine Threshold.

The refine and coarsen thresholds have been changed during the steady-state computation to meet
the limit of 20000 cells. Therefore, you must reset these parameters to their original values.

d. Click Apply to store the values.

e. Click Controls... to open the Mesh Adaption Controls dialog box.

i. Enter 8000 for Min # of Cells.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
196 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

ii. Enter 30000 for Max # of Cells.

You must increase the maximum number of cells to try to avoid readjustment of the coarsen and
refine thresholds. Additionally, you must limit the minimum number of cells to 8000, because you
should not have a coarse mesh during the computation (the current mesh has approximately
20000 cells).

iii. Click OK to close the Mesh Adaption Controls dialog box.

f. Close the Gradient Adaption dialog box.

5.4.10. Specifying Solution Parameters for Transient Flow and Solving


1. Modify the mass_flowrate_out-rfile report file definition.

Solution → Monitors → Report Files → mass_flowrate_out-rfile Edit...

a. Enter noz_uns.out for Output File Base Name.

b. Select time-step from the Get Data Every drop-down list.

c. Click OK to close the Edit Report File dialog box.

2. Modify the mass_flowrate_out-rplot report plot definition.

Solution → Monitors → Report Plots → mass_flowrate_out-rplot Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 197
Modeling Transient Compressible Flow

a. For Get Data Every, retain the value of 1 and select time-step from the drop-down list.

Because each time step requires 10 iterations, a smoother plot will be generated by plotting at every
time step.

b. Select time-step from the X-Axis Label drop-down list.

c. Click OK to close the Edit Report File dialog box.

3. Save the transient solution case file (noz_uns.cas.gz).

File → Write → Case...

4. Modify the plotting of residuals.

Solving → Reports → Residuals...

a. Ensure that Plot is enabled in the Options group box.

b. Ensure none is selected from the Convergence Criterion drop-down list.

c. Set the Iterations to Plot to 100.

d. Click OK to close the Residual Monitors dialog box.

5. Define the time step parameters.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
198 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

The selection of the time step is critical for accurate time-dependent flow predictions. Using a time step
of 2.85596 x 10-5 seconds, 100 time steps are required for one pressure cycle. The pressure cycle begins
and ends with the initial pressure at the nozzle exit.

Solving → Run Calculation → Advanced

a. Enter 2.85596e-5 s for Time Step Size.

b. Enter 600 for Number of Time Steps.

c. Enter 10 for Max Iterations/Time Step.

d. Click Calculate to start the transient simulation.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 199
Modeling Transient Compressible Flow

By requesting 600 time steps, you are asking ANSYS Fluent to compute six pressure cycles. The mass flow
rate history is shown in Figure 5.7: Mass Flow Rate History (Transient Flow) (p. 200).

Figure 5.7: Mass Flow Rate History (Transient Flow)

6. Optionally, you can review the effect of dynamic mesh adaption performed during transient flow compu-
tation as you did in steady-state flow case.

7. Save the transient case and data files (noz_uns.cas.gz and noz_uns.dat.gz).

File → Write → Case & Data...

5.4.11. Saving and Postprocessing Time-Dependent Data Sets


At this point, the solution has reached a time-periodic state. To study how the flow changes within a single
pressure cycle, you will now continue the solution for 100 more time steps. You will use ANSYS Fluent’s
solution animation feature to save contour plots of pressure and Mach number at each time step, and the
autosave feature to save case and data files every 10 time steps. After the calculation is complete, you will
use the solution animation playback feature to view the animated pressure and Mach number plots over
time.

1. Request the saving of case and data files every 10 time steps.

Solving → Activities → Autosave...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
200 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Enter 10 for Save Data File Every.

b. Select Each Time for Save Associated Case Files.

c. Retain the default selection of time-step from the Append File Name with drop-down list.

d. Enter noz_anim.gz for File Name.

When ANSYS Fluent saves a file, it will append the time step value to the file name prefix (
noz_anim ). The standard extensions ( .cas and .dat ) will also be appended. By adding the
optional extension .gz to the end of the file name, you instruct ANSYS Fluent to save the case and
data files in compressed format. This will yield file names of the form noz_anim-1-00640.cas.gz
and noz_anim-1-00640.dat.gz , where 00640 is the time step number.

e. Click OK to close the Autosave dialog box.

Tip

If you have constraints on disk space, you can restrict the number of files saved by
ANSYS Fluent by enabling the Retain Only the Most Recent Files option and setting
the Maximum Number of Data Files to a nonzero number.

2. Create an animation definition for the nozzle pressure contour plot.

Solving → Activities → Create → Solution Animations...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 201
Modeling Transient Compressible Flow

a. Enter pressure for the Name.

b. Select Time Step for Record after every.

The default value of 1 in the integer number entry box instructs ANSYS Fluent to update the animation
sequence at every time step.

c. Select In Memory from the Storage Type drop-down.

The In Memory option is acceptable for a small 2D case such as this. For larger 2D or 3D cases,
saving animation files with either the Metafile or PPM Image option is preferable, to avoid using
too much of your machine’s memory.

d. Enter 3 for the Window Id.

e. Click New Object and select Contours... from the drop-down list to open the associated dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
202 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

i. Select Pressure... and Static Pressure from the Contours of drop-down lists.

ii. Ensure that Filled is enabled in the Options group box.

iii. Disable Auto Range.

iv. Enter 0.25 atm for Min and 1.25 atm for Max.

v. Click Save/Display and close the Contours dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 203
Modeling Transient Compressible Flow

vi. Figure 5.8: Pressure Contours at t=0.017136 s

f. Ensure contour-1 is selected in the Animation Object group box.

g. Click OK to create the animation definition.

3. Create an animation definition for the Mach number contour plot.

Solving → Activities → Create → Solution Animations...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
204 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Enter mach-number for the Name.

b. Select Time Step for Record after every.

The default value of 1 in the integer number entry box instructs ANSYS Fluent to update the animation
sequence at every time step.

c. Ensure that In Memory is selected from the Storage Type drop-down.

d. Enter 4 for the Window Id.

e. Click New Object and select Contours... from the drop-down list to open the associated dialog box.

i. Select Velocity... and Mach Number from the Contours of drop-down lists.

ii. Ensure that Filled is enabled in the Options group box.

iii. Disable Auto Range.

iv. Enter 0.00 for Min and 1.30 for Max.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 205
Modeling Transient Compressible Flow

v. Click Save/Display and close the Contours dialog box.

vi. Figure 5.9: Mach Number Contours at t=0.017136 s

f. Ensure contour-2 is selected in the Animation Object group box.

g. Click OK to create the animation definition.

4. Continue the calculation by requesting 100 time steps.

By requesting 100 time steps, you will march the solution through an additional 0.0028 seconds, or
roughly one pressure cycle.

With the autosave and animation features active (as defined previously), the case and data files will be
saved approximately every 0.00028 seconds of the solution time; animation files will be saved every
0.000028 seconds of the solution time.

Solving → Run Calculation → Advanced...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
206 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Enter 100 for Number of Time Steps and click Calculate.

When the calculation finishes, you will have ten pairs of case and data files and there will be 100 pairs
of contour plots stored in memory. In the next few steps, you will play back the animation sequences
and examine the results at several time steps after reading in pairs of newly saved case and data files.

5. Play the animation of the pressure contours.

Results → Animations → Solution Animation Playback Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 207
Modeling Transient Compressible Flow

a. Retain the default selection of pressure in the Sequences selection list.

b. Click the play button (the second from the right in the group of buttons in the Playback group box).

c. Close the Playback dialog box.

Examples of pressure contours at s (the 630th time step) and s (the 670th time
step) are shown in Figure 5.10: Pressure Contours at t=0.017993 s (p. 209) and Figure 5.11: Pressure Contours
at t=0.019135 s (p. 209). These contour plots can be shown by seleting frame 30 and 70 in theFrame
selector in the Playback dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
208 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 5.10: Pressure Contours at t=0.017993 s

Figure 5.11: Pressure Contours at t=0.019135 s

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 209
Modeling Transient Compressible Flow

6. In a similar manner to steps 4 and 5, select the appropriate active window and animation sequence name
for the Mach number contours.

Examples of Mach number contours at s and s are shown in Figure 5.12: Mach
Number Contours at t=0.017993 s (p. 210) and Figure 5.13: Mach Number Contours at t=0.019135 s (p. 211).

Figure 5.12: Mach Number Contours at t=0.017993 s

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
210 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 5.13: Mach Number Contours at t=0.019135 s

Tip

ANSYS Fluent gives you the option of exporting an animation as an MPEG file or as a
series of files in any of the hardcopy formats available in the Save Picture dialog box
(including TIFF and PostScript).

To save an MPEG file, select MPEG from the Write/Record Format drop-down list in the
Playback dialog box and then click the Write button. The MPEG file will be saved in your
working folder. You can view the MPEG movie using an MPEG player (for example, Win-
dows Media Player or another MPEG movie player).

To save a series of TIFF, PostScript, or other hardcopy files, select Picture Frames in the
Write/Record Format drop-down list in the Playback dialog box. Click the Picture Op-
tions... button to open the Save Picture dialog box and set the appropriate parameters
for saving the hardcopy files. Click Apply in the Save Picture dialog box to save your
modified settings. Click Save... to select a directory in which to save the files. In the
Playback dialog box, click the Write button. ANSYS Fluent will replay the animation,
saving each frame to a separate file in your working folder.

If you want to view the solution animation in a later ANSYS Fluent session, you can select
Animation Frames as the Write/Record Format and click Write.

Warning

Because the solution animation was stored in memory, it will be lost if you exit
ANSYS Fluent without saving it in one of the formats described previously. Note

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 211
Modeling Transient Compressible Flow

that only the animation-frame format can be read back into the Playback dialog
box for display in a later ANSYS Fluent session.

7. Read the case and data files for the 660th time step (noz_anim–1–00660.cas.gz and noz_an-
im–1–00660.dat.gz) into ANSYS Fluent.

8. Plot vectors at s (Figure 5.14: Velocity Vectors at t=0.018849 s (p. 213)).

Postprocessing → Graphics → Vectors → Edit...

a. Ensure Auto Scale is enabled under Options.

b. Enter 50 under Scale.

c. Enter 50 under Skip.

d. Click Display and close the Vectors dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
212 of ANSYS, Inc. and its subsidiaries and affiliates.
Further Improvements

Figure 5.14: Velocity Vectors at t=0.018849 s

The transient flow prediction in Figure 5.14: Velocity Vectors at t=0.018849 s (p. 213) shows the expected
form, with peak velocity of approximately 260 m/s through the nozzle at seconds.

9. In a similar manner to steps 7 and 8, read the case and data files saved for other time steps of interest and
display the vectors.

5.5. Summary
In this tutorial, you modeled the transient flow of air through a nozzle. In doing so, you learned how
to:

• generate a steady-state solution as an initial condition for the transient case.

• set solution parameters for implicit time-stepping and apply a user-defined transient pressure profile
at the outlet.

• use mesh adaption to refine the mesh in areas with high pressure gradients to better capture the shocks.

• automatically save solution information as the transient calculation proceeds.

• create and view solution animations of the transient flow.

5.6. Further Improvements


This tutorial guides you through the steps to generate a second-order solution. You may be able to
increase the accuracy of the solution even further by using an appropriate higher-order discretization
scheme and by adapting the mesh further. Mesh adaption can also ensure that the solution is independ-

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 213
Modeling Transient Compressible Flow

ent of the mesh. These steps are demonstrated in Introduction to Using ANSYS Fluent: Fluid Flow and
Heat Transfer in a Mixing Elbow (p. 1).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
214 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 6: Modeling Flow Through Porous Media
This tutorial is divided into the following sections:
6.1. Introduction
6.2. Prerequisites
6.3. Problem Description
6.4. Setup and Solution
6.5. Summary
6.6. Further Improvements

6.1. Introduction
Many industrial applications such as filters, catalyst beds, and packing, involve modeling the flow through
porous media. This tutorial illustrates how to set up and solve a problem involving gas flow through
porous media.

The industrial problem solved here involves gas flow through a catalytic converter. Catalytic converters
are commonly used to purify emissions from gasoline and diesel engines by converting environmentally
hazardous exhaust emissions to acceptable substances. Examples of such emissions include carbon
monoxide (CO), nitrogen oxides (NOx), and unburned hydrocarbon fuels. These exhaust gas emissions
are forced through a substrate, which is a ceramic structure coated with a metal catalyst such as platinum
or palladium.

The nature of the exhaust gas flow is a very important factor in determining the performance of the
catalytic converter. Of particular importance is the pressure gradient and velocity distribution through
the substrate. Hence, CFD analysis is useful for designing efficient catalytic converters. By modeling the
exhaust gas flow, the pressure drop and the uniformity of flow through the substrate can be determined.
In this tutorial, ANSYS Fluent is used to model the flow of nitrogen gas through a catalytic converter
geometry, so that the flow field structure may be analyzed.

This tutorial demonstrates how to do the following:

• Set up a porous zone for the substrate with appropriate resistances.

• Calculate a solution for gas flow through the catalytic converter using the pressure-based solver.

• Plot pressure and velocity distribution on specified planes of the geometry.

• Determine the pressure drop through the substrate and the degree of non-uniformity of flow through cross
sections of the geometry using X-Y plots and numerical reports.

6.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorial Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 1)
found in this manual and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some
steps in the setup and solution procedure will not be shown explicitly.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 215
Modeling Flow Through Porous Media

6.3. Problem Description


The catalytic converter modeled here is shown in Figure 6.1: Catalytic Converter Geometry for Flow
Modeling (p. 216). The nitrogen flows through the inlet with a uniform velocity of 22.6 m/s, passes
through a ceramic monolith substrate with square-shaped channels, and then exits through the outlet.

Figure 6.1: Catalytic Converter Geometry for Flow Modeling

While the flow in the inlet and outlet sections is turbulent, the flow through the substrate is laminar
and is characterized by inertial and viscous loss coefficients along the inlet axis. The substrate is imper-
meable in other directions. This characteristic is modeled using loss coefficients that are three orders
of magnitude higher than in the main flow direction.

6.4. Setup and Solution


The following sections describe the setup and solution steps for this tutorial:
6.4.1. Preparation
6.4.2. Mesh
6.4.3. General Settings
6.4.4. Models
6.4.5. Materials
6.4.6. Cell Zone Conditions
6.4.7. Boundary Conditions
6.4.8. Solution
6.4.9. Postprocessing

6.4.1. Preparation
To prepare for running this tutorial:

1. Download the porous.zip file here.

2. Unzip porous.zip to your working directory.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
216 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

3. The mesh file catalytic_converter.msh can be found in the folder.

4. Use Fluent Launcher to start the 3D version of ANSYS Fluent.

5. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.

6. Enable Double Precision.

7. Ensure Parallel is selected under Processing Options.

8. Set Processes to 4.

6.4.2. Mesh
1. Read the mesh file (catalytic_converter.msh).

File → Read → Mesh...

2. Check the mesh.

Setting Up Domain → Mesh → Check

ANSYS Fluent will perform various checks on the mesh and report the progress in the console. Make sure
that the reported minimum volume is a positive number.

3. Scale the mesh.

Setting Up Domain → Mesh → Scale...

a. Select mm from the Mesh Was Created In drop-down list.

b. Click Scale.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 217
Modeling Flow Through Porous Media

c. Select mm from the View Length Unit In drop-down list.

All dimensions will now be shown in millimeters.

d. Close the Scale Mesh dialog box.

4. Right click in the graphics window and select Refresh Display

Click the Fit to Window icon, to center the graphic in the window.

5. Check the mesh.

Setting Up Domain → Mesh → Check

Note

It is a good idea to check the mesh after you manipulate it (that is, scale, convert to
polyhedra, merge, separate, fuse, add zones, or smooth and swap.) This will ensure that
the quality of the mesh has not been compromised.

6. Examine the mesh.

Rotate the view and zoom in to get the display shown in Figure 6.2: Mesh for the Catalytic Converter
Geometry (p. 219). The hex mesh on the geometry contains a total of 34,580 cells.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
218 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 6.2: Mesh for the Catalytic Converter Geometry

6.4.3. General Settings

Setting Up Physics → Solver

1. Retain the default solver settings.

6.4.4. Models
1. Select the standard - turbulence model.

Setting Up Physics → Models → Viscous...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 219
Modeling Flow Through Porous Media

a. Select k-epsilon (2eqn) in the Model list.

The original Viscous Model dialog box will now expand.

b. Retain the default settings for k-epsilon Model and Near-Wall Treatment and click OK to close the
Viscous Model dialog box.

6.4.5. Materials
1. Add nitrogen to the list of fluid materials by copying it from the Fluent Database of materials.

Setting Up Physics → Materials → Create/Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
220 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Click the Fluent Database... button to open the Fluent Database Materials dialog box.

i. Select nitrogen (n2) in the Fluent Fluid Materials selection list.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 221
Modeling Flow Through Porous Media

ii. Click Copy to copy the information for nitrogen to your list of fluid materials.

iii. Close the Fluent Database Materials dialog box.

b. Click Change/Create and close the Create/Edit Materials dialog box.

6.4.6. Cell Zone Conditions

Setup → Cell Zone Conditions → fluid Edit...

1. Set the cell zone conditions for the fluid (fluid).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
222 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Select nitrogen from the Material Name drop-down list.

b. Click OK to close the Fluid dialog box.

2. Set the cell zone conditions for the substrate (substrate).

Setup → Cell Zone Conditions → substrate Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 223
Modeling Flow Through Porous Media

a. Select nitrogen from the Material Name drop-down list.

b. Enable Porous Zone to activate the porous zone model.

c. Enable Laminar Zone to solve the flow in the porous zone without turbulence.

d. Click the Porous Zone tab.

i. Make sure that the principal direction vectors are set as shown in Table 6.1: Values for the Principle
Direction Vectors (p. 225).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
224 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

ANSYS Fluent automatically calculates the third (Z direction) vector based on your inputs for the
first two vectors. The direction vectors determine which axis the viscous and inertial resistance
coefficients act upon.

Table 6.1: Values for the Principle Direction Vectors

Axis Direction-1 Vector Direction-2 Vector


X 1 0
Y 0 1
Z 0 0

ii. For the viscous and inertial resistance directions, enter the values in Table 6.2: Values for the Viscous
and Inertial Resistance (p. 225) Viscous Resistance and Inertial Resistance.

Direction-2 and Direction-3 are set to arbitrary large numbers. These values are several orders
of magnitude greater than that of the Direction-1 flow and will make any radial flow insignificant.

Scroll down to access the fields that are not initially visible.

Table 6.2: Values for the Viscous and Inertial Resistance

Direction Viscous Resistance (1/m2) Inertial Resistance (1/m)


Direction-1 3.846e+07 20.414
Direction-2 3.846e+10 20414
Direction-3 3.846e+10 20414

e. Click OK to close the Fluid dialog box.

6.4.7. Boundary Conditions

Setup → Boundary Conditions → inlet Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 225
Modeling Flow Through Porous Media

1. Set the velocity and turbulence boundary conditions at the inlet (inlet).

a. Enter 22.6 m/s for Velocity Magnitude.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
226 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

b. In the Turbulence group box, select Intensity and Hydraulic Diameter from the Specification
Method drop-down list.

c. Enter 10% for the Turbulent Intensity.

d. Enter 42 mm for the Hydraulic Diameter.

e. Click OK to close the Velocity Inlet dialog box.

2. Set the boundary conditions at the outlet (outlet).

Setup → Boundary Conditions → outlet Edit...

a. Retain the default setting of 0 for Gauge Pressure.

b. In the Turbulence group box, select Intensity and Hydraulic Diameter from the Specification
Method drop-down list.

c. Retain the default value of 5% for the Backflow Turbulent Intensity.

d. Enter 42 mm for the Backflow Hydraulic Diameter.

e. Click OK to close the Pressure Outlet dialog box.

3. Retain the default boundary conditions for the walls (substrate-wall and wall).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 227
Modeling Flow Through Porous Media

6.4.8. Solution
1. Set the solution parameters.

Solving → Solution → Methods...

a. Select Coupled from the Scheme drop-down list.

b. Retain the default selection of Least Squares Cell Based from the Gradient drop-down list in the
Spatial Discretization group box.

c. Retain the default selection of Second Order Upwind from the Momentum drop-down list.

d. Enable Pseudo Transient.

2. Enable the plotting of the mass flow rate at the outlet.

Solving → Reports → Definitions → New → Surface Report → Mass Flow Rate

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
228 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Enter surf-mon-1 for the Name of the surface report definition.

b. In the Create group box, enable Report File, Report Plot and Print to Console.

c. Select outlet in the Surfaces selection list.

d. Click OK to save the surface report definition settings and close the Surface Report Definition dialog
box.

3. Initialize the solution from the inlet.

Solving → Initialization

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 229
Modeling Flow Through Porous Media

a. Select Standard under Method.

Warning

Standard is the recommended initialization method for porous media simulations.


The default Hybrid method does not account for the porous media properties, and
depending on boundary conditions, may produce an unrealistic initial velocity field.
For porous media simulations, the Hybrid method should only be used when the
Maintain Constant Velocity Magnitude option is enabled in the Hybrid Initialization
dialog box.

b. Click Options... to open the Solution Initialization task page, which provides access to further settings.

i. Select inlet from the Compute from drop-down list in the Solution Initialization task page.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
230 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

ii. Retain the default settings for standard initialization method.

iii. Click Initialize.

4. Save the case file (catalytic_converter.cas.gz).

File → Write → Case...

5. Run the calculation by requesting 100 iterations.

Solving → Run Calculation

a. Enter 100 for No. of Iterations.

b. Click Calculate to begin the iterations.

The solution will converge in approximately 70 iterations. The mass flow rate graph flattens out, as
seen in Figure 6.3: Mass Flow Rate History (p. 231).

Figure 6.3: Mass Flow Rate History

6. Save the case and data files (catalytic_converter.cas.gz and catalytic_converter.dat.gz).

File → Write → Case & Data...

Note

If you choose a filename that already exists in the current folder, ANSYS Fluent will prompt
you for confirmation to overwrite the file.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 231
Modeling Flow Through Porous Media

6.4.9. Postprocessing
1. Create a surface passing through the centerline for postprocessing purposes.

Postprocessing → Surface → Create → Iso-Surface...

a. Select Mesh... and Y-Coordinate from the Surface of Constant drop-down lists.

b. Click Compute to calculate the Min and Max values.

c. Retain the default value of 0 for Iso-Values.

d. Enter y=0 for New Surface Name.

e. Click Create.

Note

To interactively place the surface on your mesh, use the slider bar in the Iso-Surface
dialog box.

2. Create cross-sectional surfaces at locations on either side of the substrate, as well as at its center.

Postprocessing → Surface → Create → Iso-Surface...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
232 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Select Mesh... and X-Coordinate from the Surface of Constant drop-down lists.

b. Click Compute to calculate the Min and Max values.

c. Enter 95 for Iso-Values.

d. Enter x=95 for the New Surface Name.

e. Click Create.

f. In a similar manner, create surfaces named x=130 and x=165 with Iso-Values of 130 and 165, re-
spectively.

g. Close the Iso-Surface dialog box after all the surfaces have been created.

3. Create a line surface for the centerline of the porous media.

Postprocessing → Surface → Create → Line/Rake...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 233
Modeling Flow Through Porous Media

a. Enter the coordinates of the end points of the line in the End Points group box as shown.

b. Enter porous-cl for the New Surface Name.

c. Click Create to create the surface.

d. Close the Line/Rake Surface dialog box.

4. Display the two wall zones (substrate-wall and wall).

Postprocessing → Graphics → Mesh... → Edit..

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
234 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Disable Edges and make sure Faces is enabled in the Options group box.

b. Deselect inlet and outlet in the Surfaces selection list, and make sure that only substrate-wall and
wall are selected.

c. Click Display and close the Mesh Display dialog box.

5. Set the lighting for the display.

Viewing → Display → Options...

a. Disable Double Buffering in the Rendering group box.

b. Make sure Lights On is enabled in the Lighting Attributes group box.

c. Select Gouraud from the Lighting drop-down list.

d. Click Apply and close the Display Options dialog box.

6. Set the transparency parameter for the wall zones (substrate-wall and wall).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 235
Modeling Flow Through Porous Media

Viewing → Graphics → Compose...

a. Select substrate-wall and wall in the Names selection list.

b. Click the Display... button in the Geometry Attributes group box to open the Display Properties
dialog box.

i. Make sure that the Red, Green, and Blue sliders are set to the maximum position (that is, 255).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
236 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

ii. Set the Transparency slider to 70.

iii. Click Apply and close the Display Properties dialog box.

c. Click Apply and close the Scene Description dialog box.

7. Display velocity vectors on the y=0 surface (Figure 6.4: Velocity Vectors on the y=0 Plane (p. 239)).

Postprocessing → Graphics → Vectors → Edit...

a. Enable Draw Mesh in the Options group box to open the Mesh Display dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 237
Modeling Flow Through Porous Media

i. Make sure that substrate-wall and wall are selected in the Surfaces selection list.

ii. Click Display and close the Mesh Display dialog box.

b. Enter 5 for Scale.

c. Set Skip to 1.

d. Select y=0 in the Surfaces selection list.

e. Click Display and close the Vectors dialog box.

f. Rotate the view and adjust the magnification to get the display shown in Figure 6.4: Velocity Vectors
on the y=0 Plane (p. 239).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
238 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 6.4: Velocity Vectors on the y=0 Plane

The flow pattern shows that the flow enters the catalytic converter as a jet, with recirculation on either
side of the jet. As it passes through the porous substrate, it decelerates and straightens out, and exhibits
a more uniform velocity distribution. This allows the metal catalyst present in the substrate to be more
effective.

8. Display filled contours of static pressure on the y=0 plane (Figure 6.5: Contours of Static Pressure on the
y=0 plane (p. 241)).

Postprocessing → Graphics → Contours → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 239
Modeling Flow Through Porous Media

a. Enable Filled in the Options group box.

b. Make sure that Pressure... and Static Pressure are selected from the Contours of drop-down lists.

c. Select y=0 in the Surfaces selection list.

d. Click Display and close the Contours dialog box.

The pressure changes rapidly in the middle section, where the fluid velocity changes as it passes through
the porous substrate. The pressure drop can be high, due to the inertial and viscous resistance of the
porous media. Determining this pressure drop is one of the goals of the CFD analysis. In the next step,
you will learn how to plot the pressure drop along the centerline of the substrate.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
240 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 6.5: Contours of Static Pressure on the y=0 plane

9. Plot the static pressure across the line surface porous-cl (Figure 6.6: Plot of Static Pressure on the porous-
cl Line Surface (p. 242)).

Postprocessing → Plots → XY Plot... → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 241
Modeling Flow Through Porous Media

a. Make sure that Pressure... and Static Pressure are selected from the Y Axis Function drop-down lists.

b. Select porous-cl in the Surfaces selection list.

c. Click Plot and close the Solution XY Plot dialog box.

Figure 6.6: Plot of Static Pressure on the porous-cl Line Surface

As seen in Figure 6.6: Plot of Static Pressure on the porous-cl Line Surface (p. 242), the pressure drop
across the porous substrate is approximately 300 Pa.

10. Display filled contours of the velocity in the X direction on the x=95, x=130, and x=165 surfaces (Fig-
ure 6.7: Contours of the X Velocity on the x=95, x=130, and x=165 Surfaces (p. 244)).

Postprocessing → Graphics → Contours → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
242 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Make sure that Filled and Draw Mesh are enabled in the Options group box.

b. Disable Global Range in the Options group box.

c. Select Velocity... and X Velocity from the Contours of drop-down lists.

d. Select x=130, x=165, and x=95 in the Surfaces selection list, and deselect y=0.

e. Click Display and close the Contours dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 243
Modeling Flow Through Porous Media

Figure 6.7: Contours of the X Velocity on the x=95, x=130, and x=165 Surfaces

The velocity profile becomes more uniform as the fluid passes through the porous media. The velocity is
very high at the center (the area in red) just before the nitrogen enters the substrate and then decreases
as it passes through and exits the substrate. The area in green, which corresponds to a moderate velocity,
increases in extent.

11. Use numerical reports to determine the average, minimum, and maximum of the velocity distribution before
and after the porous substrate.

Postprocessing → Reports → Surface Integrals...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
244 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Select Mass-Weighted Average from the Report Type drop-down list.

b. Select Velocity and X Velocity from the Field Variable drop-down lists.

c. Select x=165 and x=95 in the Surfaces selection list.

d. Click Compute.

e. Select Facet Minimum from the Report Type drop-down list and click Compute.

f. Select Facet Maximum from the Report Type drop-down list and click Compute.

The numerical report of average, maximum and minimum velocity can be seen in the main ANSYS
Fluent console.

g. Close the Surface Integrals dialog box.

The spread between the average, maximum, and minimum values for X velocity gives the degree to which
the velocity distribution is non-uniform. You can also use these numbers to calculate the velocity ratio (that
is, the maximum velocity divided by the mean velocity) and the space velocity (that is, the product of the
mean velocity and the substrate length).

Custom field functions and UDFs can be also used to calculate more complex measures of non-uniformity,
such as the standard deviation and the gamma uniformity index.
Mass-Weighted Average
X Velocity (m/s)
-------------------------------- --------------------

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 245
Modeling Flow Through Porous Media

x=165 4.0399389
x=95 5.3001075
---------------- --------------------
Net 4.6769313

Minimum of Facet Values


X Velocity (m/s)
-------------------------------- --------------------
x=165 2.3427365
x=95 0.87960213
---------------- --------------------
Net 0.87960213

Maximum of Facet Values


X Velocity (m/s)
-------------------------------- --------------------
x=165 6.3719401
x=95 8.0299826
---------------- --------------------
Net 8.0299826

6.5. Summary
In this tutorial, you learned how to set up and solve a problem involving gas flow through porous media
in ANSYS Fluent. You also learned how to perform appropriate postprocessing. Flow non-uniformities
were easily identified through images of velocity vectors and pressure contours. Surface integrals and
X-Y plots provided purely numeric data.

6.6. Further Improvements


This tutorial guides you through the steps to reach an initial solution. You may be able to obtain a more
accurate solution by using an appropriate higher-order discretization scheme and by adapting the mesh.
Mesh adaption can also ensure that the solution is independent of the mesh. These steps are demon-
strated in Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 1).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
246 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 7: Modeling Radiation and Natural Convection
This tutorial is divided into the following sections:
7.1. Introduction
7.2. Prerequisites
7.3. Problem Description
7.4. Setup and Solution
7.5. Summary
7.6. Further Improvements

7.1. Introduction
In this tutorial, combined radiation and natural convection are solved in a three-dimensional square
box on a mesh consisting of hexahedral elements.

This tutorial demonstrates how to do the following:

• Use the surface-to-surface (S2S) radiation model in ANSYS Fluent.

• Set the boundary conditions for a heat transfer problem involving natural convection and radiation.

• Calculate a solution using the pressure-based solver.

• Display velocity vectors and contours of wall temperature, surface cluster ID, and radiation heat flux.

7.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorial Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 1)
found in this manual and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some
steps in the setup and solution procedure will not be shown explicitly.

7.3. Problem Description


The problem to be considered is shown schematically in Figure 7.1: Schematic of the Problem (p. 248).
A three-dimensional box has a hot wall of aluminum at 473.15 K. All other
walls are made of an insulation material and are subject to radiative and convective heat transfer to
the surroundings, which are at 293.15 K. Gravity acts downwards. The medium contained in the box is
assumed not to emit, absorb, or scatter radiation. All walls are gray. The objective is to compute the
flow and temperature patterns in the box, as well as the wall heat flux, using the surface-to-surface
(S2S) model available in ANSYS Fluent.

The working fluid has a Prandtl number of approximately 0.71, and the Rayleigh number based on
(0.25) is . This means the flow is most likely laminar. The Planck number is 0.006,
and measures the relative importance of conduction to radiation.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 247
Modeling Radiation and Natural Convection

Figure 7.1: Schematic of the Problem

7.4. Setup and Solution


The following sections describe the setup and solution steps for this tutorial:
7.4.1. Preparation
7.4.2. Reading and Checking the Mesh
7.4.3. Solver and Analysis Type
7.4.4. Models
7.4.5. Defining the Materials
7.4.6. Operating Conditions
7.4.7. Boundary Conditions
7.4.8. Obtaining the Solution
7.4.9. Postprocessing
7.4.10. Comparing the Contour Plots after Varying Radiating Surfaces
7.4.11. S2S Definition, Solution, and Postprocessing with Partial Enclosure

7.4.1. Preparation
To prepare for running this tutorial:

1. Download the radiation_natural_convection.zip file here.

2. Unzip radiation_natural_convection.zip to your working directory.

3. The mesh file rad.msh.gz can be found in the folder.

4. Use Fluent Launcher to start the 3D version of ANSYS Fluent.

5. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.

6. Enable Double Precision.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
248 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

7. Ensure Serial is selected under Processing Options.

7.4.2. Reading and Checking the Mesh


1. Read the mesh file rad.msh.gz.

File → Read → Mesh...

As the mesh is read, messages will appear in the console reporting the progress of the reading and the
mesh statistics. The mesh size will be reported as 64,000 cells. Once reading is complete, the mesh will
be displayed in the graphics window.

Figure 7.2: Graphics Display of Mesh

2. Check the mesh.

Setting Up Domain → Mesh → Check

ANSYS Fluent will perform various checks on the mesh and report the progress in the console. Make sure
that the reported minimum volume is a positive number.

7.4.3. Solver and Analysis Type


1. Confirm the solver settings and enable gravity.

Setup → General

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 249
Modeling Radiation and Natural Convection

a. Retain the default settings of pressure-based steady-state solver in the Solver group box.

b. Enable the Gravity option.

c. Enter -9.81 m/s2 for Y in the Gravitational Acceleration group box.

7.4.4. Models
1. Enable the energy equation.

Setup → Models → Energy On

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
250 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

2. Set up the Surface to Surface (S2S) radiation model.

Setup → Models → Radiation Model → Surface to Surface (S2S)

The surface-to-surface (S2S) radiation model can be used to account for the radiation exchange in an
enclosure of gray-diffuse surfaces. The energy exchange between two surfaces depends in part on their

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 251
Modeling Radiation and Natural Convection

size, separation distance, and orientation. These parameters are accounted for by a geometric function
called a “view factor”.

The S2S model assumes that all surfaces are gray and diffuse. Thus according to the gray-body model,
if a certain amount of radiation is incident on a surface, then a fraction is reflected, a fraction is absorbed,
and a fraction is transmitted. The main assumption of the S2S model is that any absorption, emission,
or scattering of radiation by the medium can be ignored. Therefore only “surface-to-surface” radiation
is considered for analysis.

For most applications the surfaces in question are opaque to thermal radiation (in the infrared spectrum),
so the surfaces can be considered opaque. For gray, diffuse, and opaque surfaces it is valid to assume
that the emissivity is equal to the absorptivity and that reflectivity is equal to 1 minus the emissivity.

When the S2S model is used, you also have the option to define a “partial enclosure”. This option allows
you to disable the view factor calculation for walls with negligible emission/absorption or walls that
have uniform temperature. The main advantage of this option is to speed up the view factor calculation
and the radiosity calculation.

a. Click the Settings... button to open the View Factors and Clustering dialog box.

You will define the view factor and cluster parameters.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
252 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

i. Enter a value of 100 for Faces per Surface Cluster for Flow Boundary Zones in the Manual group
box.

ii. Click Apply to All Walls.

The S2S radiation model is computationally very expensive when there are a large number of
radiating surfaces. The number of radiating surfaces is reduced by clustering surfaces into surface
“clusters”. The surface clusters are made by starting from a face and adding its neighbors and
their neighbors until a specified number of faces per surface cluster is collected.

For a small problem, the default value of 1 for Faces per Surface Cluster for Flow Boundary
Zones is acceptable. For a large problem you can increase this number to reduce the memory
requirement for the view factor file that is saved in a later step. This may also lead to some reduc-
tion in the computational expense. However, this is at the cost of some accuracy. This tutorial il-
lustrates the influence of clusters.

iii. Ensure Ray Tracing is selected from the Method list in the View Factors group box.

iv. Click OK to close the View Factors and Clustering dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 253
Modeling Radiation and Natural Convection

b. Click the Compute/Write/Read... button in the View Factors and Clustering group box to open the
Select File dialog box and to compute the view factors.

The file created in this step will store the cluster and view factor parameters.

i. Enter rad_100.s2s.gz as the file name for S2S File.

ii. Click OK in the Select File dialog box.

ANSYS Fluent will print an informational message describing the progress of the view factor cal-
culation in the console.

c. Click OK to close the Radiation Model dialog box.

7.4.5. Defining the Materials


1. Set the properties for air.

Setup → Materials → Fluids → air Edit...

a. Select ideal-gas from the Density drop-down list.

b. Enter 1021 J/kg-K for Cp (Specific Heat).

c. Enter 0.0371 W/m-K for Thermal Conductivity.

d. Enter 2.485e-05 kg/m-s for Viscosity.

e. Retain the default value of 28.966 kg/kmol for Molecular Weight.

f. Click Change/Create and close the Create/Edit Materials dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
254 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

2. Define the new material, insulation.

Setup → Materials → Solid → aluminum Edit...

a. Enter insulation for Name.

b. Delete the entry in the Chemical Formula field.

c. Enter 50 kg/m3 for Density.

d. Enter 800 J/kg-K for Cp (Specific Heat).

e. Enter 0.09 W/m-K for Thermal Conductivity.

f. Click Change/Create.

g. Click No when the Question dialog box appears, asking if you want to overwrite aluminum.

h. Close the Create/Edit Materials dialog box.

7.4.6. Operating Conditions


Specify operating density.

Setting Up Physics → Solver → Operating Conditions...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 255
Modeling Radiation and Natural Convection

1. In the Operating Conditions dialog box, select the Specified Operating Density check box.

2. Enter 0 for Operating Density and click OK to close the Operating Conditions dialog box.

7.4.7. Boundary Conditions


1. Set the boundary conditions for the front wall (w-high-x).

Setup → Boundary Conditions → w-high-x Edit...

The Wall dialog box opens.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
256 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Click the Thermal tab and select Mixed from the Thermal Conditions list.

b. Select insulation from the Material Name drop-down list.

c. Enter 5 W/m2-K for Heat Transfer Coefficient.

d. Enter 293.15 K for Free Stream Temperature.

e. Enter 0.75 for External Emissivity.

f. Enter 293.15 K for External Radiation Temperature.

g. Enter 0.95 for Internal Emissivity.

h. Enter 0.05 m for Wall Thickness.

i. Click OK to close the Wall dialog box.

2. Copy boundary conditions to define the side walls w-high-z and w-low-z.

Setup → Boundary Conditions → w-high-x Copy...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 257
Modeling Radiation and Natural Convection

a. Ensure w-high-x is selected in the From Boundary Zone selection list.

b. Select w-high-z and w-low-z from the To Boundary Zones selection list.

c. Click Copy.

d. Click OK when the Question dialog box opens asking whether you want to copy the boundary conditions
of w-high-x to all the selected zones.

e. Close the Copy Conditions dialog box.

3. Set the boundary conditions for the heated wall (w-low-x).

Setup → Boundary Conditions → w-low-x Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
258 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Click the Thermal tab and select Temperature from the Thermal Conditions list.

b. Retain the default selection of aluminum from the Material Name drop-down list.

c. Enter 473.15 K for Temperature.

d. Enter 0.95 for Internal Emissivity.

e. Click OK to close the Wall dialog box.

4. Set the boundary conditions for the top wall (w-high-y).

Setup → Boundary Conditions → w-high-y Edit...

a. Click the Thermal tab and select Mixed from the Thermal Conditions list.

b. Select insulation from the Material Name drop-down list.

c. Enter 3 W/m2-K for Heat Transfer Coefficient.

d. Enter 293.15 K for Free Stream Temperature.

e. Enter 0.75 for External Emissivity.

f. Enter 293.15 K for External Radiation Temperature.

g. Enter 0.95 for Internal Emissivity.

h. Enter 0.05 m for Wall Thickness.

i. Click OK to close the Wall dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 259
Modeling Radiation and Natural Convection

5. Copy boundary conditions to define the bottom wall (w-low-y) as previously done in this tutorial.

Setup → Boundary Conditions → w-high-y Copy...

a. Ensure w-high-y is selected in the From Boundary Zone selection list.

b. Select w-low-y from the To Boundary Zones selection list.

c. Click Copy.

d. Click OK when the Question dialog box opens asking whether you want to copy the boundary conditions
of w-high-y to all the selected zones.

e. Close the Copy Conditions dialog box.

7.4.8. Obtaining the Solution


1. Set the solution parameters.

Solving → Solution → Methods...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
260 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Select Coupled from the Scheme drop-down list in the Pressure-Velocity Coupling group box.

b. Select Body Force Weighted from the Pressure drop-down list in the Spatial Discretization group
box.

c. Retain the default selection of Second Order Upwind from the Momentum and Energy drop-down
lists.

d. Enable the Pseudo Transient option.

2. Set the convergence criteria for you simulation.

Solving → Reports → Residuals...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 261
Modeling Radiation and Natural Convection

a. Ensure that Plot is enabled in the Options group box.

b. Enter 0.0001 for the Absolute Criteria of continuity, x-, y-, and z-velocity.

c. Enter 1e-7 for the Absolute Criteria of energy.

Decreasing the criteria for these residuals will improve the accuracy of the solution.

d. Click OK

3. Initialize the solution.

Solving → Initialization

a. Retain the default selection of Hybrid Initialization from the Initialization Methods list.

b. Click Initialize.

4. Create a surface report definition to aid in judging convergence.

It is good practice to use reports of physical solution quantities together with residual monitors when
determining whether a solution is converged. In this step you will create a surface report definition for
the average temperature on the z=0 plane.

a. Create the new surface, zz_center_z.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
262 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Setting Up Domain → Surface → Create → Iso-Surface...

i. Select Mesh... and Z-Coordinate from the Surface of Constant drop-down lists.

ii. Click Compute and retain the default value of 0 for Iso-Values.

iii. Enter zz_center_z for New Surface Name.

Note

If you want to delete or otherwise manipulate any surfaces, click Manage... to


open the Surfaces dialog box.

iv. Click Create and close the Iso-Surface dialog box.

b. Create the surface report definition.

Solving → Reports → Definitions → New → Surface Report → Area-Weighted Average...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 263
Modeling Radiation and Natural Convection

i. Enter surf-mon-1 for the Name of the surface report definition.

ii. In the Create group box, enable Report Plot and Print to Console.

Note

Unlike residual values, data from other reports is not saved as part of the solution
set when the ANSYS Fluent data file is saved. If you want to access the surface
report data in future ANSYS Fluent sessions, you can enable the Report File option.
The report file will be saved in your working directory.

iii. Select Temperature... and Static Temperature from the Field Variable drop-down lists.

iv. Select zz_center_z from the Surfaces selection list.

v. Click OK to save the surface report definition settings and close the Surface Report Definition
dialog box.

5. Save the case file (rad_a_1.cas.gz).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
264 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

File → Write → Case...

6. Start the calculation by requesting 400 iterations.

Solving → Run Calculation→Advanced...

a. Select User Specified from the Time Step Method list.

b. Retain the default value of 1 for Pseudo Time Step.

c. Enter 400 for Number of Iterations.

d. Click Calculate.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 265
Modeling Radiation and Natural Convection

Figure 7.3: Temperature Surface Report

The surface report history shows that the average temperature on zz_center_z has stabilized, thus con-
firming that the solution has indeed reached convergence. You can view the behavior of the residuals
(Figure 7.4: Scaled Residuals (p. 266)) in the Scaled Residuals graphics window tab.

Figure 7.4: Scaled Residuals

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
266 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

7. Save the case and data files (rad_a_100.cas.gz, rad_a_100.dat.gz).

File → Write → Case & Data...

7.4.9. Postprocessing

1. Enable the postprocessing view by clicking in the objects toolbar and selecting Post Processing.

2. Disable lighting.

Viewing → Graphics Lights...

a. Disable Light On and click Apply.

b. Close the Lights dialog box.

3. Create a new surface, zz_x_side, which will be used later to plot wall temperature.

Postprocessing → Surface → Create → Line/Rake...

a. Enter (-0.125, 0, 0.125) for (x0, y0, z0), respectively.

b. Enter (0.125, 0, 0.125) for (x1, y1, z1), respectively.

c. Enter zz_x_side for New Surface Name.

Note

If you want to delete or otherwise manipulate any surfaces, click Manage... to open
the Surfaces dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 267
Modeling Radiation and Natural Convection

d. Click Create and close the Line/Rake Surface dialog box.

4. Display contours of static temperature.

Postprocessing → Graphics → Contours → Edit...

a. Enable the Filled option in the Options group box.

b. Select Temperature... and Static Temperature from the Contours of drop-down lists.

c. Select zz_center_z from the Surfaces selection list.

d. Enable the Draw Mesh option in the Options group box to open the Mesh Display dialog box.

i. Ensure Outline is selected in the Edge Type group box.

ii. Close the Mesh Display dialog box.

e. Disable the Auto Range option.

f. Enter 421 K for Min and 473.15 K for Max.

g. Click Display, rotate the view as shown in Figure 7.5: Contours of Static Temperature (p. 269), and close
the Contours dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
268 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 7.5: Contours of Static Temperature

A regular check for most buoyant cases is to look for evidence of stratification in the temperature field.
This is observed as nearly horizontal bands of similar temperature. These may be broken or disturbed by
buoyant plumes. For this case you can expect reasonable stratification with some disturbance at the
vertical walls where the air is driven around. Inspection of the temperature contours in Figure 7.5: Contours
of Static Temperature (p. 269) reveals that the solution appears as expected.

5. Create and display a contour definition for wall temperature (surfaces in contact with the fluid).

Postprocessing → Graphics → Contours → New...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 269
Modeling Radiation and Natural Convection

a. Enter wall-temperature for Contour Name.

b. Ensure that the Filled option is enabled in the Options group box.

c. Disable the Node Values option.

d. Select Temperature... and Wall Temperature from the Contours of drop-down lists.

e. Select all surfaces except default-interior and zz_x_side in the Surfaces selection list.

f. Enter 413 K for Min and 473.15 K for Max.

g. Click Save/Display, and rotate the view as shown in Figure 7.6: Contours of Wall Temperature (p. 271).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
270 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 7.6: Contours of Wall Temperature

6. Display contours of radiation heat flux.

Postprocessing → Graphics → Contours → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 271
Modeling Radiation and Natural Convection

a. Ensure that the Filled option is enabled in the Options group box.

b. Enable Auto Range.

c. Select Wall Fluxes... and Radiation Heat Flux from the Contours of drop-down list.

d. Make sure that all surfaces except default-interior and zz_x_side are selected in the Surfaces selection
list.

e. Click Display.

f. Close the Contours dialog box.

Figure 7.7: Contours of Radiation Heat Flux (p. 273) shows the radiating wall (w-low-x) with positive
heat flux and all other walls with negative heat flux.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
272 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 7.7: Contours of Radiation Heat Flux

7. Display vectors of velocity magnitude.

Postprocessing → Graphics → Vectors → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 273
Modeling Radiation and Natural Convection

a. Retain the default selection of Velocity from the Vectors of drop-down list.

b. Retain the default selection of Velocity... and Velocity Magnitude from the Color by drop-down lists.

c. Select zz_center_z from the Surfaces selection list.

d. Enter 7 for Scale.

e. Click Display and rotate the view as shown in Figure 7.8: Vectors of Velocity Magnitude (p. 275).

f. Close the Vectors dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
274 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 7.8: Vectors of Velocity Magnitude

8. Compute view factors and radiation emitted from the front wall (w-high-x) to all other walls.

In the Postprocessing tab, click S2S Information... (Model Specific group box).

Postprocessing → Model Specific → S2S Information...

a. Ensure that the View Factors option is enabled in the Report Options group box.

b. Enable the Incident Radiation option.

c. Select w-high-x from the From selection list.

d. Select all zones except w-high-x from the To selection list.

e. Click Compute and close the S2S Information dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 275
Modeling Radiation and Natural Convection

The computed values of the view factors and incident radiation are displayed in the console. A view
factor of approximately 0.2 for each wall is a good value for the square box.

9. Compute the total heat transfer rate.

Postprocessing → Reports → Fluxes...

a. Select Total Heat Transfer Rate from the Options list.

b. Select all boundary zones except default-interior from the Boundaries selection list.

c. Click Compute.

10. Compute the total heat transfer rate for w-low-x.

Postprocessing → Reports → Fluxes...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
276 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Retain the selection of Total Heat Transfer Rate from the Options list.

b. Deselect all boundary zones and select w-low-x from the Boundaries selection list.

c. Click Compute.

11. Compute the radiation heat transfer rate.

Postprocessing → Reports → Fluxes...

a. Select Radiation Heat Transfer Rate from the Options list.

b. Select all boundary zones except default-interior from the Boundaries selection list.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 277
Modeling Radiation and Natural Convection

c. Click Compute.

12. Compute the radiation heat transfer rate for w-low-x.

Postprocessing → Reports → Fluxes...

a. Retain the selection of Radiation Heat Transfer Rate from the Options list.

b. Deselect all boundary zones and select w-low-x from the Boundaries selection list.

c. Click Compute and close the Flux Reports dialog box.

The net heat load is approximately 51.5 W. After comparing the total heat transfer rate and radiation
heat transfer rate, it can be concluded that radiation is the dominant mode of heat transfer.

13. Display the temperature profile for the side wall.

Postprocessing → Plots → XY Plot → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
278 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Select Temperature... and Wall Temperature from the Y Axis Function drop-down lists.

b. Retain the default selection of Direction Vector from the X Axis Function drop-down list.

c. Select zz_x_side from the Surfaces selection list.

d. Click Plot (Figure 7.9: Temperature Profile Along the Outer Surface of the Box (p. 280)).

e. Enable the Write to File option and click the Write... button to open the Select File dialog box.

i. Enter tp_100.xy for XY File.

ii. Click OK in the Select File dialog box.

f. Disable the Write to File option.

g. Close the Solution XY Plot dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 279
Modeling Radiation and Natural Convection

Figure 7.9: Temperature Profile Along the Outer Surface of the Box

14. Save the case and data files (rad_b_100.cas.gz and rad_b_100.dat.gz).

File → Write → Case & Data...

7.4.10. Comparing the Contour Plots after Varying Radiating Surfaces


1. Increase the number of faces per cluster to 800.

Setup → Models → Radiation Edit...

a. Click the Settings... button to open the View Factors and Clustering dialog box.

i. Enter 800 for Faces per Surface Cluster for Flow Boundary Zones in the Manual group box.

ii. Click Apply to All Walls.

iii. Click OK to close the View Factors and Clustering dialog box.

b. Click the Compute/Write/Read... button to open the Select File dialog box and to compute the view
factors.

Specify a name for the S2S file that will store the cluster and view factor parameters.

i. Enter rad_800.s2s.gz for S2S File.

ii. Click OK in the Select File dialog box.

c. Click OK to close the Radiation Model dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
280 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

2. Right-click Solution Initialization and select Initialize.

Solution → Solution Initialization Initialize

3. Start the calculation by requesting 400 iterations.

Solution → Run Calculation Calculate

4. Save the case and data files (rad_800.cas.gz and rad_800.dat.gz).

File → Write → Case & Data...

5. In a similar manner described in the steps 13.a – 13.g of Postprocessing (p. 267), display the temperature
profile for the side wall and write it to a file named tp_800.xy.

6. Repeat the procedure, outlined in steps 1 – 5 of this section, for 1600 faces per surface cluster and save
the respective S2S files (for example, rad_1600.s2s.gz), case and data files (for example,
rad_1600.cas.gz), and temperature profile files (for example, tp_1600.xy).

7. Display contours of wall temperature for all six cases using the wall-temperature definition you created
earlier.

Results → Graphics → Contours → wall-temperature Display

Figure 7.10: Contours of Wall Temperature: 100 Face per Surface Cluster

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 281
Modeling Radiation and Natural Convection

Figure 7.11: Contours of Wall Temperature: 800 Faces per Surface Cluster

Figure 7.12: Contours of Wall Temperature: 1600 Faces per Surface Cluster

8. Create a plot that compares the temperature profile plots for 1, 100, 800, and 1600 FPSC.

Postprocessing → Plots → File...

a. Click the Load... button to open the Select File dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
282 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

i. Select the file tp_100.xy.

ii. Click OK to close the Select File dialog box.

b. Change the legend entry for the data series.

i. Select tp_100.xy in the Curves Information text box.

ii. Enter 100 in the text box to the right of the Change Legend Entry button.

iii. Click Change Legend Entry.

ANSYS Fluent will update the Legend Entry text for the file tp_100.xy.

c. Load the files tp_800.xy, and tp_1600.xy and change their legend entries accordingly, in a manner
similar to the previous two steps (a and b).

d. Click the Axes... button to open the Axes dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 283
Modeling Radiation and Natural Convection

i. Ensure X is selected from the Axis list.

ii. Enter 3 for Precision in the Number Format group box and click Apply.

iii. Select Y from the Axis list.

iv. Enter 2 for Precision and click Apply.

v. Close the Axes dialog box.

e. Click Plot (Figure 7.13: A Comparison of Temperature Profiles along the Outer Surface of the Box (p. 285))
and close the File XY Plot dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
284 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 7.13: A Comparison of Temperature Profiles along the Outer Surface of the Box

7.4.11. S2S Definition, Solution, and Postprocessing with Partial Enclosure


As mentioned previously, when the S2S model is used, you also have the option to define a “partial enclosure”;
that is, you can disable the view factor calculation for walls with negligible emission/absorption, or walls
that have uniform temperature. Even though the view factor will not be computed for these walls, they will
still emit radiation at a fixed temperature called the “partial enclosure temperature”. The main advantage
of this is to speed up the view factor and the radiosity calculation.

In the steps that follow, you will specify the radiating wall (w-low-x) as a boundary zone that is not particip-
ating in the S2S radiation model. Consequently, you will specify the partial enclosure temperature for the
wall. Note that the partial enclosure option may not yield accurate results in cases that have multiple wall
boundaries that are not participating in S2S radiation and that each have different temperatures. This is
because a single partial enclosure temperature is applied to all of the non-participating walls.

1. Read the case file saved previously for the S2S model (rad_b_100.cas.gz).

File → Read → Case...

2. Set the partial enclosure parameters for the S2S model.

Setup → Boundary Conditions → w-low-x Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 285
Modeling Radiation and Natural Convection

a. Click the Radiation tab.

b. Disable the Participates in View Factor Calculation option in the S2S Parameters group box.

c. Click OK to close the Wall dialog box.

Click OK to close the dialog box informing you that you must recompute viewfactors.

3. Compute the view factors for the S2S model.

Setup → Models → Radiation Edit...

a. Click the Settings... button to open the View Factors and Clustering dialog box.

b. Click the Select... button to open the Participating Boundary Zones dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
286 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

i. Enter 473.15 K for Non-Participating Boundary Zones Temperature.

ii. Click OK to close the Participating Boundary Zones dialog box.

Click OK to close the dialog box informing you that you must recompute viewfactors.

c. Click OK to close the View Factors and Clustering dialog box.

d. Click the Compute/Write/Read... button to open the Select File dialog box and to compute the view
factors.

The view factor file will store the view factors for the radiating surfaces only. This may help you control
the size of the view factor file as well as the memory required to store view factors in ANSYS Fluent.
Furthermore, the time required to compute the view factors will be reduced, as only the view factors
for radiating surfaces will be calculated.

i. Enter rad_partial.s2s.gz for S2S File.

ii. Click OK in the Select File dialog box.

e. Click OK to close the Radiation Model dialog box.

4. Right-click Solution Initialization and select Initialize.

Solution → Solution Initialization Initialize

5. Start the calculation by requesting 400 iterations.

Solution → Run Calculation Calculate

6. Save the case and data files (rad_partial.cas.gz and rad_partial.dat.gz).

File → Write → Case & Data...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 287
Modeling Radiation and Natural Convection

7. Compute the radiation heat transfer rate.

Postprocessing → Reports → Fluxes...

a. Ensure that Radiation Heat Transfer Rate is selected from the Options list.

b. Select all boundary zones except default-interior from the Boundaries selection list.

c. Click Compute and close the Flux Reports dialog box.

The Flux Reports dialog box does not report any heat transfer rate for the radiating wall (w-low-x),
because you specified that it not participate in the view factor calculation. The remaining walls report
similar rates to those obtained in step 9 of Postprocessing (p. 267), indicating that in this case the use of
a partial enclosure saved computation time without significantly affecting the results.

8. Compare the temperature profile for the side wall to the profile saved in tp_100.xy.

Postprocessing → Plots → XY Plot → Edit...

a. Display the temperature profile for the side wall, zz_x_side, and write it to a file named tp_par-
tial.xy, in a manner similar to the instructions shown in step 13 of Postprocessing (p. 267).

b. Click Load File... to open the Select File dialog box.

i. Select tp_100.xy.

ii. Click OK to close the Select File dialog box.

c. Click Plot.

d. Close the Solution XY Plot dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
288 of ANSYS, Inc. and its subsidiaries and affiliates.
Further Improvements

Figure 7.14: Wall Temperature Profile Comparison

Figure 7.14: Wall Temperature Profile Comparison (p. 289) further confirms that the use of a partial enclosure
did not significantly affect the results.

7.5. Summary
In this tutorial you studied combined natural convection and radiation in a three-dimensional square
box and compared how varying the settings of the surface-to-surface (S2S) radiation model affected
the results. The S2S radiation model is appropriate for modeling the enclosure radiative transfer without
participating media, whereas the methods for participating radiation may not always be efficient.

For more information about the surface-to-surface (S2S) radiation model, see the Fluent User's Guide.

7.6. Further Improvements


This tutorial guides you through the steps to reach an initial solution. You may be able to obtain a more
accurate solution by using an appropriate higher-order discretization scheme and by adapting the mesh.
Mesh adaption can also ensure that the solution is independent of the mesh. These steps are demon-
strated in Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 1).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 289
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
290 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 8: Using a Single Rotating Reference Frame
This tutorial is divided into the following sections:
8.1. Introduction
8.2. Prerequisites
8.3. Problem Description
8.4. Setup and Solution
8.5. Summary
8.6. Further Improvements
8.7. References

8.1. Introduction
This tutorial considers the flow within a 2D, axisymmetric, co-rotating disk cavity system. Understanding
the behavior of such flows is important in the design of secondary air passages for turbine disk cooling.

This tutorial demonstrates how to do the following:

• Set up a 2D axisymmetric model with swirl, using a rotating reference frame.

• Use the standard - and RNG - turbulence models.

• Calculate a solution using the pressure-based solver.

• Display velocity vectors and contours of pressure.

• Set up and display XY plots of radial velocity and wall distribution.

• Restart the solver from an existing solution.

8.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorial Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 1)
found in this manual and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some
steps in the setup and solution procedure will not be shown explicitly.

8.3. Problem Description


The problem to be considered is shown schematically in Figure 8.1: Problem Specification (p. 292). This
case is similar to a disk cavity configuration that was extensively studied by Pincombe [1].

Air enters the cavity between two co-rotating disks. The disks are 88.6 cm in diameter and the air enters
at 1.146 m/s through a circular bore 8.86 cm in diameter. The disks, which are 6.2 cm apart, are spinning
at 71.08 rpm, and the air enters with no swirl. As the flow is diverted radially, the rotation of the disk
has a significant effect on the viscous flow developing along the surface of the disk.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 291
Using a Single Rotating Reference Frame

Figure 8.1: Problem Specification

As noted by Pincombe [1], there are two nondimensional parameters that characterize this type of disk
cavity flow: the volume flow rate coefficient, , and the rotational Reynolds number, . These
parameters are defined as follows:
(8.1)

(8.2)

where is the volumetric flow rate, is the rotational speed, is the kinematic viscosity, and is
the outer radius of the disks. Here, you will consider a case for which = 1092 and = .

8.4. Setup and Solution


The following sections describe the setup and solution steps for this tutorial:
8.4.1. Preparation
8.4.2. Mesh
8.4.3. General Settings
8.4.4. Models
8.4.5. Materials
8.4.6. Cell Zone Conditions
8.4.7. Boundary Conditions
8.4.8. Solution Using the Standard k- ε Model

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
292 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

8.4.9. Postprocessing for the Standard k- ε Solution


8.4.10. Solution Using the RNG k- ε Model
8.4.11. Postprocessing for the RNG k- ε Solution

8.4.1. Preparation
To prepare for running this tutorial:

1. Download the single_rotating.zip file here.

2. Unzip single_rotating.zip to your working directory.

3. The file disk.msh can be found in the folder.

4. Use Fluent Launcher to start the 2D single precision (disable Double Precision) version of ANSYS Fluent.

Fluent Launcher displays your Display Options preferences from the previous session.

5. Run in Serial under Processing Options.

8.4.2. Mesh
1. Read the mesh file (disk.msh).

File → Read → Mesh...

As ANSYS Fluent reads the mesh file, it will report its progress in the console.

Note

The Fluent console will display a warning that the current setup for the boundary condi-
tions is not appropriate for a 2D/3D flow problem.

You will resolve this issue when you modify the solver settings in a subsequent step.

8.4.3. General Settings


1. Check the mesh.

Setting Up Domain → Mesh → Check

ANSYS Fluent will perform various checks on the mesh and report the progress in the console. Make sure
that the reported minimum volume is a positive number.

2. Examine the mesh (Figure 8.2: Mesh Display for the Disk Cavity (p. 294)).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 293
Using a Single Rotating Reference Frame

Figure 8.2: Mesh Display for the Disk Cavity

Extra

You can use the right mouse button to check which zone number corresponds to each
boundary. If you click the right mouse button on one of the boundaries in the graphics
window, information will be displayed in the ANSYS Fluent console about the associated
zone, including the name of the zone. This feature is especially useful when you have
several zones of the same type and you want to distinguish between them quickly.

3. Define new units for angular velocity and length.

Setting Up Domain → Mesh → Units...

In the problem description, angular velocity and length are specified in rpm and cm, respectively, which
is more convenient in this case. These are not the default units for these quantities.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
294 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Select angular-velocity from the Quantities list, and rpm in the Units list.

b. Select length from the Quantities list, and cm in the Units list.

c. Close the Set Units dialog box.

4. Specify the solver formulation to be used for the model calculation and enable the modeling of axisymmetric
swirl.

Setting Up Physics → Solver

a. Retain the default selection of Pressure-Based in the Type list.

b. Retain the default selection of Absolute in the Velocity Formulation list.

For a rotating reference frame, the absolute velocity formulation has some numerical advantages.

c. Select Axisymmetric Swirl from the drop-down list in the Solver group box (below Reference Values...).

8.4.4. Models
1. Enable the standard - turbulence model with the enhanced near-wall treatment.

Setting Up Physics → Models → Viscous...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 295
Using a Single Rotating Reference Frame

a. Select k-epsilon (2 eqn) in the Model list.

The Viscous Model dialog box will expand.

b. Retain the default selection of Standard in the k-epsilon Model list.

c. Select Enhanced Wall Treatment in the Near-Wall Treatment list.

d. Click OK to close the Viscous Model dialog box.

The ability to calculate a swirl velocity permits the use of a 2D mesh, so the calculation is simpler
and more economical to run. This is especially important for problems where the enhanced wall

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
296 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

treatment is used. The near-wall flow field is resolved through the viscous sublayer and buffer zones
(that is, the first mesh point away from the wall is placed at a of the order of 1).

For details, see enhanced wall treatment in the Fluent Theory Guide.

8.4.5. Materials
For the present analysis, you will model air as an incompressible fluid with a density of 1.225 kg/ and a
dynamic viscosity of 1.7894 kg/m-s. Since these are the default values, no change is required in the
Create/Edit Materials dialog box.

1. Retain the default properties for air.

Setting Up Physics → Materials → Create/Edit...

2. Click Close to close the Create/Edit Materials dialog box.

For details, see physical properties in the Fluent User's Guide.

8.4.6. Cell Zone Conditions


Set up the present problem using a rotating reference frame for the fluid. Then define the disk walls to rotate
with the moving frame.

Setup → Cell Zone Conditions → fluid-7 Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 297
Using a Single Rotating Reference Frame

1. Define the rotating reference frame for the fluid zone (fluid-7).

a. Enable Frame Motion.

b. Enter 71.08 rpm for Speed in the Rotational Velocity group box.

c. Click OK to close the Fluid dialog box.

8.4.7. Boundary Conditions

Setup → Boundary Conditions → velocity-inlet-2 Edit...

1. Set the following conditions at the flow inlet (velocity-inlet-2).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
298 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Select Components from the Velocity Specification Method drop-down list.

b. Enter 1.146 m/s for Axial-Velocity.

c. Retain the default selection of Intensity and Viscosity Ratio from the Specification Method drop-
down list in the Turbulence group box.

d. Retain the default value of 5 % for Turbulent Intensity.

e. Enter 5 for Turbulent Viscosity Ratio.

f. Click OK to close the Velocity Inlet dialog box.

2. Set the following conditions at the flow outlet (pressure-outlet-3).

Setup → Boundary Conditions → pressure-outlet-3 Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 299
Using a Single Rotating Reference Frame

a. Select From Neighboring Cell from the Backflow Direction Specification Method drop-down list.

b. Click OK to close the Pressure Outlet dialog box.

Note

ANSYS Fluent will use the backflow conditions only if the fluid is flowing into the
computational domain through the outlet. Since backflow might occur at some point
during the solution procedure, you should set reasonable backflow conditions to
prevent convergence from being adversely affected.

3. Confirm that the wall boundary condition settings for the disk walls (wall-6) are as shown below.

Setup → Boundary Conditions → wall-6 Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
300 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Note

A Stationary Wall condition implies that the wall is stationary with respect to the adjacent
cell zone. Hence, in the case of a rotating reference frame a Stationary Wall is actually
rotating with respect to the absolute reference frame. To specify a non-rotating wall in
this case you would select Moving Wall (that is, moving with respect to the rotating ref-
erence frame). Then you would specify an absolute rotational speed of 0 in the Motion
group box.

a. Click OK to close the Wall dialog box.

8.4.8. Solution Using the Standard k- ε Model


1. Set the solution parameters.

Solving → Solution → Methods...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 301
Using a Single Rotating Reference Frame

a. Select Coupled from the Scheme drop-down list in the Pressure-Velocity Coupling group box.

b. Retain the default selection of Least Squares Cell Based from the Gradient list in the Spatial Discret-
ization group box.

c. Select PRESTO! from the Pressure drop-down list in the Spatial Discretization group box.

The PRESTO! scheme is well suited for steep pressure gradients involved in rotating flows. It provides
improved pressure interpolation in situations where large body forces or strong pressure variations
are present as in swirling flows.

d. Select Second Order Upwind from the Turbulent Kinetic Energy and Turbulent Dissipation Rate
drop-down lists.

Use the scroll bar to access the discretization schemes that are not initially visible in the task page.

e. Enable Pseudo Transient.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
302 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

The Pseudo Transient option enables the pseudo transient algorithm in the coupled pressure-based
solver. This algorithm effectively adds an unsteady term to the solution equations in order to improve
stability and convergence behavior. Use of this option is recommended for general fluid flow problems.

2. Set the solution controls.

Solving → Controls → Controls...

a. Retain the default values in the Pseudo Transient Explicit Relaxation Factors group box.

Note

For this problem, the default explicit relaxation factors are satisfactory. However, if
the solution diverges or the residuals display large oscillations, you may need to reduce
the relaxation factors from their default values.

For tips on how to adjust the explicit relaxation parameters for different situations, see the Fluent
User's Guide.

3. Enable the plotting of residuals during the calculation.

Solving → Reports → Residuals...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 303
Using a Single Rotating Reference Frame

a. Ensure that Plot is enabled in the Options group box.

b. Click OK to close the Residual Monitors dialog box.

Note

For this calculation, the convergence tolerance on the continuity equation is kept at
0.001. Depending on the behavior of the solution, you can reduce this value if necessary.

4. Enable the plotting of mass flow rate at the flow exit.

Solving → Reports → Definitions → New → Surface Report → Mass Flow Rate

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
304 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Enter surf-mon-1 for the Name of the surface report definition.

b. In the Create group box, enable Report File, Report Plot and Print to Console for surf-mon-1.

Note

When the Report File option is selected in the Surface Report Definition dialog box,
the mass flow rate history will be written to a file. If you do not enable the Report
File option, the history information will be lost when you exit ANSYS Fluent.

c. Select pressure-outlet-3 from the Surfaces selection list.

d. Click OK to save the surface report definition settings and close the Surface Report Definition dialog
box.

5. Initialize the solution.

Solving → Initialization

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 305
Using a Single Rotating Reference Frame

a. Retain the default selection of the Hybrid initialization method.

b. Click Initialize.

Note

For flows in complex topologies, hybrid initialization will provide better initial velocity
and pressure fields than standard initialization. This in general will help in improving
the convergence behavior of the solver.

6. Save the case file (disk-ke.cas.gz).

File → Write → Case...

7. Start the calculation by requesting 600 iterations.

Run Calculation

a. Enter 600 for the Number of Iterations.

b. Click Calculate.

Throughout the calculation, ANSYS Fluent will report reversed flow at the exit. This is reasonable for
the current case. The solution should be sufficiently converged after approximately 560 iterations.
The mass flow rate history is shown in Figure 8.3: Mass Flow Rate History (k- ε Turbulence Mod-
el) (p. 307).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
306 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 8.3: Mass Flow Rate History (k- ε Turbulence Model)

Extra

Here we have retained the default Timescale Factor of 1 in the Run Calculation panel.
When performing a Pseudo Transient calculation, larger values of Timescale Factor may
speed up convergence of the solution. However, setting Timescale Factor too large may
cause the solution to diverge and fail to complete. As an optional activity, you can re-
initialize the solution and try running the calculation with Timescale Factor set to 2.
Observe the convergence behavior and the number of iterations before convergence.
Then try the same again with Timescale Factor set to 4. For more information on setting
Timescale Factor and the Pseudo Transient solver settings, refer to the Fluent User's Guide.

8. Check the mass flux balance.

Postprocessing → Reports → Fluxes...

Warning

Although the mass flow rate history indicates that the solution is converged, you
should also check the net mass fluxes through the domain to ensure that mass is
being conserved.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 307
Using a Single Rotating Reference Frame

a. Select velocity-inlet-2 and pressure-outlet-3 from the Boundaries selection list.

b. Retain the default Mass Flow Rate option.

c. Click Compute and close the Flux Reports dialog box.

Warning

The net mass imbalance should be a small fraction (for example, 0.5%) of the total
flux through the system. If a significant imbalance occurs, you should decrease the
residual tolerances by at least an order of magnitude and continue iterating.

9. Save the case and data files (disk-ke.cas.gz and disk-ke.dat.gz).

File → Write → Case & Data...

Click OK to overwrite disk-ke.cas.gz.

Note

It is always prudent to save both case and data files in case anything has changed.

8.4.9. Postprocessing for the Standard k- ε Solution


1. Display the velocity vectors.

Postprocessing → Graphics → Vectors → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
308 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Enter 50 for Scale

b. Set Skip to 1.

c. Click the Vector Options... button to open the Vector Options dialog box.

i. Disable Z Component.

This allows you to examine only the non-swirling components.

ii. Click Apply and close the Vector Options dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 309
Using a Single Rotating Reference Frame

d. Click Display in the Vectors dialog box to plot the velocity vectors.

A magnified view of the velocity field displaying a counter-clockwise circulation of the flow is shown
in Figure 8.4: Magnified View of Velocity Vectors within the Disk Cavity (p. 310).

Figure 8.4: Magnified View of Velocity Vectors within the Disk Cavity

e. Close the Vectors dialog box.

2. Display filled contours of static pressure.

Postprocessing → Graphics → Contours → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
310 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Enable Filled in the Options group box.

b. Retain the selection of Pressure... and Static Pressure from the Contours of drop-down lists.

c. Click Display and close the Contours dialog box.

The pressure contours are displayed in Figure 8.5: Contours of Static Pressure for the Entire Disk Cav-
ity (p. 312). Notice the high pressure that occurs on the right disk near the hub due to the stagnation of
the flow entering from the bore.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 311
Using a Single Rotating Reference Frame

Figure 8.5: Contours of Static Pressure for the Entire Disk Cavity

3. Create a constant -coordinate line for postprocessing.

Postprocessing → Surface → Create → Iso-Surface...

a. Select Mesh... and Y-Coordinate from the Surface of Constant drop-down lists.

b. Click Compute to update the minimum and maximum values.

c. Enter 37 in the Iso-Values field.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
312 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

This is the radial position along which you will plot the radial velocity profile.

d. Enter aaa_y=37cm for the New Surface Name.

Using a prefix such as aaa or zzz allows you to keep all postprocessing surfaces together.

e. Click Create to create the isosurface.

Note

The name you use for an isosurface can be any continuous string of characters (without
spaces).

f. Close the Iso-Surface dialog box.

4. Plot the radial velocity distribution on the surface aaa_y=37cm.

Postprocessing → Plots → XY Plot → Edit...

a. Select Velocity... and Radial Velocity from the Y Axis Function drop-down lists.

b. Select the y-coordinate line aaa_y=37cm from the Surfaces selection list.

c. Click Plot.

Figure 8.6: Radial Velocity Distribution—Standard k- ε Solution (p. 314) shows a plot of the radial ve-
locity distribution along .

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 313
Using a Single Rotating Reference Frame

Figure 8.6: Radial Velocity Distribution—Standard k- ε Solution

d. Enable Write to File in the Options group box to save the radial velocity profile.

e. Click the Write... button to open the Select File dialog box.

i. Enter ke-data.xy in the XY File text entry box and click OK.

Be sure to double check the location where the files are being saved to ensure they will be saved
where you intend.

5. Plot the wall y+ distribution on the rotating disk wall along the radial direction (Figure 8.7: Wall Yplus Dis-
tribution on wall-6— Standard k- ε Solution (p. 317)).

Postprocessing → Plots → XY Plot → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
314 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Disable Write to File in the Options group box.

b. Select Turbulence... and Wall Yplus from the Y Axis Function drop-down lists.

c. Deselect aaa_y=37cm and select wall-6 from the Surfaces selection list.

d. Enter 0 and 1 for X and Y respectively in the Plot Direction group box.

Note

The change in Plot Direction is required because we are plotting y+ along the radial
dimension of the disk, which is oriented with Y axis.

e. Click the Axes... button to open the Axes - Solution XY Plot dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 315
Using a Single Rotating Reference Frame

i. Retain the default selection of X from the Axis group box.

ii. Disable Auto Range in the Options group box.

iii. Retain the default value of 0 for Minimum and enter 43 for Maximum in the Range group box.

iv. Click Apply and close the Axes - Solution XY Plot dialog box.

f. Click Plot in the Solution XY Plot dialog box.

Figure 8.7: Wall Yplus Distribution on wall-6— Standard k- ε Solution (p. 317) shows a plot of wall y+
distribution along wall-6.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
316 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 8.7: Wall Yplus Distribution on wall-6— Standard k- ε Solution

g. Enable Write to File in the Options group box to save the wall y+ profile.

h. Click the Write... button to open the Select File dialog box.

i. Enter ke-yplus.xy in the XY File text entry box and click OK.

Note

Ideally, while using enhanced wall treatment, the wall y+ should be in the order of 1
(at least less than 5) to resolve the viscous sublayer. The plot justifies the applicability
of enhanced wall treatment to the given mesh.

i. Close the Solution XY Plot dialog box.

8.4.10. Solution Using the RNG k- ε Model


Recalculate the solution using the RNG - turbulence model.

1. Enable the RNG - turbulence model with the enhanced near-wall treatment.

Setting Up Physics → Models → Viscous...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 317
Using a Single Rotating Reference Frame

a. Select RNG in the k-epsilon Model list.

b. Enable Differential Viscosity Model and Swirl Dominated Flow in the RNG Options group box.

The differential viscosity model and swirl modification can provide better accuracy for swirling flows
such as the disk cavity.

For more information, see RNG swirl modification in the Fluent Theory Guide.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
318 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

c. Retain Enhanced Wall Treatment as the Near-Wall Treatment.

d. Click OK to close the Viscous Model dialog box.

2. Continue the calculation by requesting 300 iterations.

Solving → Run Calculation

The solution converges after approximately 245 additional iterations.

3. Save the case and data files (disk-rng.cas.gz and disk-rng.dat.gz).

File → Write → Case & Data...

8.4.11. Postprocessing for the RNG k- ε Solution


1. Plot the radial velocity distribution for the RNG - solution and compare it with the distribution for the
standard - solution.

Postprocessing → Plots → XY Plot → Edit...

a. Enter 1 and 0 for X and Y respectively in the Plot Direction group box.

b. Select Velocity... and Radial Velocity from the Y Axis Function drop-down lists.

c. Select aaa_y=37cm and deselect wall-6 from the Surfaces selection list.

d. Disable the Write to File option.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 319
Using a Single Rotating Reference Frame

e. Click the Load File... button to load the - data.

i. Select the file ke-data.xy in the Select File dialog box.

ii. Click OK.

f. Click the Axes... button to open the Axes - Solution XY Plot dialog box.

i. Enable Auto Range in the Options group box.

ii. Click Apply and close the Axes - Solution XY Plot dialog box.

g. Click the Curves... button to open the Curves - Solution XY Plot dialog box, where you will define a
different curve symbol for the RNG - data.

i. Retain 0 for the Curve #.

ii. Select x from the Symbol drop-down list.

iii. Click Apply and close the Curves - Solution XY Plot dialog box.

h. Click Plot in the Solution XY Plot dialog box (Figure 8.8: Radial Velocity Distribution — RNG k- ε and
Standard k- ε Solutions (p. 321)).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
320 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 8.8: Radial Velocity Distribution — RNG k- ε and Standard k- ε Solutions

The peak velocity predicted by the RNG - solution is higher than that predicted by the standard
- solution. This is due to the less diffusive character of the RNG - model. Adjust the range of
the axis to magnify the region of the peaks.

i. Click the Axes... button to open the Axes - Solution XY Plot dialog box, where you will specify the
-axis range.

i. Disable Auto Range in the Options group box.

ii. Retain the value of 0 for Minimum and enter 1 for Maximum in the Range dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 321
Using a Single Rotating Reference Frame

iii. Click Apply and close the Axes - Solution XY Plot dialog box.

j. Click Plot.

The difference between the peak values calculated by the two models is now more apparent.

Figure 8.9: RNG k- ε and Standard k- ε Solutions (x=0 cm to x=1 cm)

2. Plot the wall y+ distribution on the rotating disk wall along the radial direction Figure 8.10: wall-6 — RNG
k- ε and Standard k- ε Solutions (x=0 cm to x=43 cm) (p. 324).

Postprocessing → Plots → XY Plot → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
322 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Select Turbulence... and Wall Yplus from the Y Axis Function drop-down lists.

b. Deselect aaa_y=37cm and select wall-6 from the Surfaces selection list.

c. Enter 0 and 1 for X and Y respectively in the Plot Direction group box.

d. Select any existing files that appear in the File Data selection list and click the Free Data button to
remove the file.

e. Click the Load File... button to load the RNG - data.

i. Select the file ke-yplus.xy in the Select File dialog box.

ii. Click OK.

f. Click the Axes... button to open the Axes - Solution XY Plot dialog box.

i. Retain the default selection of X from the Axis group box.

ii. Retain the default value of 0 for Minimum and enter 43 for Maximum in the Range group box.

iii. Click Apply and close the Axes - Solution XY Plot dialog box.

g. Click Plot in the Solution XY Plot dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 323
Using a Single Rotating Reference Frame

Figure 8.10: wall-6 — RNG k- ε and Standard k- ε Solutions (x=0 cm to x=43 cm)

8.5. Summary
This tutorial illustrated the setup and solution of a 2D, axisymmetric disk cavity problem in ANSYS Fluent.
The ability to calculate a swirl velocity permits the use of a 2D mesh, thereby making the calculation
simpler and more economical to run than a 3D model. This can be important for problems where the
enhanced wall treatment is used, and the near-wall flow field is resolved using a fine mesh (the first
mesh point away from the wall being placed at a y+ on the order of 1).

For more information about mesh considerations for turbulence modeling, see the Fluent User's Guide.

8.6. Further Improvements


The case modeled in this tutorial lends itself to parametric study due to its relatively small size. Here
are some things you may want to try:

• Separate wall-6 into two walls.

Setting Up Domain → Zones → Separate → Faces...

Specify one wall to be stationary, and rerun the calculation.

• Use adaption to see if resolving the high velocity and pressure-gradient region of the flow has a significant
effect on the solution.

• Introduce a nonzero swirl at the inlet or use a velocity profile for fully-developed pipe flow. This is probably
more realistic than the constant axial velocity used here, since the flow at the inlet is typically being supplied
by a pipe.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
324 of ANSYS, Inc. and its subsidiaries and affiliates.
References

• Model compressible flow (using the ideal gas law for density) rather than assuming incompressible flow
text.

This tutorial guides you through the steps to reach an initial solution. You may be able to obtain a more
accurate solution by using an appropriate higher-order discretization scheme and by adapting the mesh.
Mesh adaption can also ensure that the solution is independent of the mesh. These steps are demon-
strated in Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 1).

8.7. References
1. Pincombe, J.R.,“Velocity Measurements in the Mk II - Rotating Cavity Rig with a Radial Outflow”, Thermo-
Fluid Mechanics Research Centre, University of Sussex, Brighton, UK, 1981.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 325
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
326 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 9: Using Multiple Reference Frames
This tutorial is divided into the following sections:
9.1. Introduction
9.2. Prerequisites
9.3. Problem Description
9.4. Setup and Solution
9.5. Summary
9.6. Further Improvements

9.1. Introduction
Many engineering problems involve rotating flow domains. One example is the centrifugal blower unit
that is typically used in automotive climate control systems. For problems where all the moving parts
(fan blades, hub and shaft surfaces, and so on) are rotating at a prescribed angular velocity, and the
stationary walls (for example, shrouds, duct walls) are surfaces of revolution with respect to the axis of
rotation, the entire domain can be referred to as a single rotating frame of reference. However, when
each of the several parts is rotating about a different axis of rotation, or about the same axis at different
speeds, or when the stationary walls are not surfaces of revolution (such as the volute around a centri-
fugal blower wheel), a single rotating coordinate system is not sufficient to “immobilize" the computa-
tional domain so as to predict a steady-state flow field. In such cases, the problem must be formulated
using multiple reference frames.

In ANSYS Fluent, the flow features associated with one or more rotating parts can be analyzed using
the multiple reference frame (MRF) capability. This model is powerful in that multiple rotating reference
frames can be included in a single domain. The resulting flow field is representative of a snapshot of
the transient flow field in which the rotating parts are moving. However, in many cases the interface
can be chosen in such a way that the flow field at this location is independent of the orientation of the
moving parts. That is, if an interface can be drawn on which there is little or no angular dependence,
the model can be a reliable tool for simulating time-averaged flow fields. It is therefore very useful in
complicated situations where one or more rotating parts are present.

This tutorial illustrates the procedure for setting up and solving a problem using the MRF capability. As
an example, the flow field on a 2D section of a centrifugal blower will be calculated. Although this is a
general methodology that can be applied to cases where more than one reference frame is moving,
this example will be limited to a single rotating reference frame.

This tutorial demonstrates how to do the following:

• Create mesh interfaces from interface-zones defined during meshing.

• Specify different frames of reference for different fluid zones.

• Set the relative velocity of each wall.

• Calculate a solution using the pressure-based solver.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 327
Using Multiple Reference Frames

9.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorial Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 1)
found in this manual and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some
steps in the setup and solution procedure will not be shown explicitly.

In general, to solve problems using the MRF feature, you should be familiar with the concept of creating
multiple fluid zones in your mesh generator.

9.3. Problem Description


This problem considers a 2D section of a generic centrifugal blower. A schematic of the problem is
shown in Figure 9.1: Schematic of the Problem (p. 328). The blower consists of 32 blades, each with a
chord length of 13.5 mm. The blades are located approximately 56.5 mm (measured from the leading
edge) from the center of rotation. The radius of the outer wall varies logarithmically from 80 mm to
146.5 mm. You will simulate the flow under no load, or free-delivery conditions when inlet and outlet
pressures are at ambient conditions (0 Pa gauge). This corresponds to the maximum flow-rate of the
blower when sitting in free air. The blades are rotating with an angular velocity of 2500 rpm. The flow
is assumed to be turbulent.

Figure 9.1: Schematic of the Problem

9.4. Setup and Solution


The following sections describe the setup and solution steps for this tutorial:
9.4.1. Preparation
9.4.2. Reading and Checking the Mesh and Setting the Units
9.4.3. Specifying Solver and Analysis Type
9.4.4. Specifying the Models
9.4.5. Specifying Materials
9.4.6. Specifying Cell Zone Conditions

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
328 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

9.4.7. Setting Boundary Conditions


9.4.8. Defining Mesh Interfaces
9.4.9. Obtaining the Solution
9.4.10. Step 9: Postprocessing

9.4.1. Preparation
To prepare for running this tutorial:

1. Download the multiple_rotating.zip file here.

2. Unzip multiple_rotating.zip to your working directory.

3. The file, blower-2d.msh can be found in the folder.

4. Use Fluent Launcher to start the 2D Double Precision version of ANSYS Fluent.

5. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.

6. Ensure that the Serial processing option is selected.

9.4.2. Reading and Checking the Mesh and Setting the Units
1. Read the mesh file (blower-2d.msh).

File → Read → Mesh...

The geometry and mesh are displayed in graphics window (Figure 9.2: Mesh of the 2D Centrifugal
Blower (p. 330))

2. Check the mesh.

Setting Up Domain → Mesh → Check

ANSYS Fluent will perform various checks on the mesh and will report the progress in the console. Make
sure that the reported minimum volume is a positive number. It will also issue warnings about unassigned
interface zones. You do not need to take any action now. You will set up the mesh interfaces in a later
step.

3. Examine the mesh.

The mesh consists of three fluid zones, fluid-casing, fluid-inlet, and fluid-rotor. These are reported in
the console when the mesh is read. In the Mesh Display dialog box, the fluid zones are reported as in-
terior zones default-interior, default-interior:013, and default-interior:015 respectively. The fluid zone
containing the blades will be solved in a rotational reference frame.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 329
Using Multiple Reference Frames

Figure 9.2: Mesh of the 2D Centrifugal Blower

The fluid zones are bounded by interface zones that appear in the mesh display in yellow. These interface
boundaries were used in the mesh generator to separate the fluid zones, and will be used to create mesh
interfaces between adjacent fluid zones when the boundary conditions are set later in this tutorial.

4. Set the units for angular velocity.

Setting Up Domain → Mesh → Units...

In the problem description, angular velocity is specified in rpm rather than in the default unit of rad/s.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
330 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Select angular-velocity from the Quantities list and rpm in the Units list.

b. Close the Set Units dialog box.

9.4.3. Specifying Solver and Analysis Type


1. Retain the default settings of the pressure-based steady-state solver in the Solver group.

Setting Up Physics → Solver

9.4.4. Specifying the Models


1. Enable the standard - turbulence model.

Setup → Models → Viscous Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 331
Using Multiple Reference Frames

a. Select k-epsilon (2eqn) in the Model list.

b. Select Enhanced Wall Treatment in the Near-Wall Treatment list.

c. Click OK to close the Viscous Model dialog box.

9.4.5. Specifying Materials


1. Retain the default properties for air.

Setup → Materials → air → Create/Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
332 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Tip

If needed, you could modify the fluid properties for air or copy another material from
the database.

2. Click Close to close the Create/Edit Materials dialog box.

For details, see physical properties in the Fluent User's Guide.

9.4.6. Specifying Cell Zone Conditions


1. Define the boundary conditions for the rotational reference frame (fluid-rotor).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 333
Using Multiple Reference Frames

Setup → Cell Zone Conditions → fluid-rotor Edit...

a. Enable Frame Motion.

The dialog box will expand to show the relevant inputs.

b. Under the Reference Frame tab, retain the Rotation-Axis Origin default setting of (0,0).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
334 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

This is the center of curvature for the circular boundaries of the rotating zone.

c. Enter -2500 rpm for Speed in the Rotational Velocity group box.

Note

The speed is entered as a negative value because the rotor is rotating clockwise, which
is in the negative sense about the Z axis.

d. Click OK to close the Fluid dialog box.

Note

Since the other fluid zones are stationary, you do not need to set any boundary conditions
for them. If one or more of the remaining fluid zones were also rotating, you would need
to set the appropriate rotational speed for them.

Tip

In this example, the names of the fluid-zones in the mesh file leave no ambiguity as to
which is the rotating fluid zone. In the event that you have a mesh without clear names,
you may have difficulty identifying the various fluid-zones. Unlike interior zones, the fluid-
zones cannot be individually selected and displayed from the Mesh Display dialog box.
However, you can use commands in the text interface to display them.

Setting Up Domain → Display

i. Deselect all surfaces ans then select default-interior, default-interior:013, and default-
interior:015 in the Surfaces selection list.

ii. Click Display.

Only the domain boundaries and interface zones will be displayed.

iii. Press Enter to get the > prompt.

iv. Type the commands, in the console, as shown.


> display

/display> zone-mesh
()
zone id/name(1) [()] 4
zone id/name(2) [()] <Enter>

The resulting display shows that the zone with ID 4 (in this case fluid-rotor) corresponds
to the rotating region.

v. Close the Mesh Display dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 335
Using Multiple Reference Frames

9.4.7. Setting Boundary Conditions


1. Set the boundary conditions for the flow inlet (inlet) as specified in the problem description (see Fig-
ure 9.1: Schematic of the Problem (p. 328)).

Setup → Boundary Conditions → inlet Edit...

a. Review the boundary condition definition for the pressure-inlet type. Leave the settings at their defaults.

b. Click OK to close the Pressure Inlet dialog box.

Note

All pressures that you specify in ANSYS Fluent are gauge pressures, relative to the oper-
ating pressure specified in the Operating Conditions dialog box. By default, the operating
pressure is 101325 Pa.

For details, see operating pressure in the Fluent User's Guide.

2. Review and retain the default values for the boundary conditions for the flow outlet (outlet) so that the
backflow turbulence parameters for the flow outlet (outlet) are set to the same values used for inlet.

Note

The backflow values are used only if reversed flow occurs at the outlet, but it is a good
idea to use reasonable values, even if you do not expect any backflow to occur.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
336 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

3. Define the velocity of the wall zone representing the blades (blades) relative to the moving fluid zone.

Setup → Boundary Conditions → blades Edit...

With fluid-rotor set to a rotating reference frame, blades becomes a moving wall.

a. Select Moving Wall in the Wall Motion group box.

The Wall dialog box will expand to show the wall motion parameters.

b. Retain the default selection of Relative to Adjacent Cell Zone and select Rotational in the Motion
group box.

c. Retain the default value of 0 rpm for (relative) Speed.

d. Click OK to close the Wall dialog box.

The Rotation-Axis Origin should be located at = 0 m and = 0 m. With these settings, the blades
will move at the same speed as the surrounding fluid.

9.4.8. Defining Mesh Interfaces


Recall that the fluid domain is defined as three distinct fluid zones. You must define mesh interfaces between
the adjacent fluid zones so that ANSYS Fluent can solve the flow equations across the interfaces.

1. Set up the mesh interface between fluid-inlet and fluid-rotor.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 337
Using Multiple Reference Frames

Setup → Mesh Interfaces New...

Select Manual Create...

a. Enter int1 under Mesh Interface to name this interface definition.

b. Select interface-1 for Interface Zone 1 and interface-2 for Interface Zone 2.

You can use the Draw button to help identify the interface-zones.

c. Click Create in order to create the mesh interface, int1.

d. In a similar manner, define a mesh interface called int2 between interface-3 and interface-
4.

e. Close the Create/Edit Mesh Interfaces dialog box.

f. Close the Mesh Interfaces dialog box.

9.4.9. Obtaining the Solution


1. Set the solution parameters.

Solving → Solution → Methods...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
338 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Select Coupled from the Scheme drop-down list in the Pressure-Velocity Coupling group box.

b. Select Second Order Upwind for Turbulent Kinetic Energy and Turbulent Dissipation Rate in the
Spatial Discretization group box.

The second-order scheme will provide a more accurate solution.

2. Enable that plotting of residuals during the calculation.

Solving → Reports → Residuals...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 339
Using Multiple Reference Frames

a. Ensure that Plot is enabled in the Options group box.

b. Enter 5e-5 under Absolute Criteria for the continuity equation.

For this problem, the default value of 0.001 is insufficient for the flow rate in the blower to fully
converge. All other settings should remain at their default values.

c. Click OK to close the Residual Monitors dialog box.

3. Initialize the solution.

Solving → Initialization

a. Retain the Method at the default of Hybrid in the Initialization Methods group.

b. Click Initialize to initialize the solution.

Note

For flows in complex topologies, hybrid initialization will provide better initial velocity
and pressure fields than standard initialization. This in general will help in improving
the convergence behavior of the solver.

4. Save the case file (blower.cas.gz).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
340 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

File → Write → Case...

5. Start the calculation by requesting 150 iterations.

Solving → Run Calculation

a. Enter 150 for No. of Iterations.

b. Click Calculate.

Early in the calculation, ANSYS Fluent will report that there is reversed flow occurring at the exit. This
is due to the sudden expansion, which results in a recirculating flow near the exit.

The solution will converge in approximately 125 iterations (when all residuals have dropped
below their respective criteria).

Figure 9.3: Scaled Residuals

6. Save the case and data files (blower2.cas.gz and blower2.dat.gz).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 341
Using Multiple Reference Frames

File → Write → Case & Data...

Note

It is good practice to save the case file whenever you are saving the data. This will ensure
that the relevant parameters corresponding to the current solution data are saved accord-
ingly.

9.4.10. Step 9: Postprocessing


1. Display filled contours of static pressure (Figure 9.4: Contours of Static Pressure (p. 343)).

Postprocessing → Graphics → Contours → Edit...

a. Enable Filled in the Options group box.

b. Ensure Pressure... and Static Pressure are selected from the Contours of drop-down lists.

c. Click Display and close the Contours dialog box (see Figure 9.4: Contours of Static Pressure (p. 343)).

Pressure distribution in the flow domain is plotted in graphics window.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
342 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 9.4: Contours of Static Pressure

2. Display absolute velocity vectors (Figure 9.5: Velocity Vectors (p. 345)).

Postprocessing → Graphics → Vectors → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 343
Using Multiple Reference Frames

a. Enter 10 for Scale.

By default, Auto Scale is chosen. This will automatically scale the length of velocity vectors relative
to the size of the smallest cell in the mesh. To increase the length of the “scaled" vectors, set the Scale
factor to a value greater than 1.

b. Retain the default selection of Velocity from the Vectors of drop-down list.

c. Retain the default selection of Velocity... and Velocity Magnitude from the Color by drop-down list.

d. Click Display and close the Vectors dialog box (see Figure 9.5: Velocity Vectors (p. 345)).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
344 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 9.5: Velocity Vectors

The velocity vectors show an area of flow separation near the bottom of the outlet duct. You can zoom
in on this area and see the flow recirculation.

3. Display relative velocity vectors with respect to the rotational reference frame (fluid-rotor).

a. In the Reference Values task page, select fluid-rotor from the Reference Zone drop-down list.

Setup → Reference Values

b. Open the Vectors dialog box.

Postprocessing → Graphics → Vectors → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 345
Using Multiple Reference Frames

i. Select Relative Velocity from the Vectors of drop-down list.

ii. Select Velocity... and Relative Velocity Magnitude from the Color by drop-down list.

iii. Set Scale to 2.

iv. Click Display and close the Vectors dialog box.

The relative air velocity vectors viewed in the frame of reference rotating with the rotor are
displayed.

v. Zoom in on the rotor blade region as shown in Figure 9.6: Relative Velocity Vectors (p. 347) and ex-
amine the air flow through the rotor blade passages.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
346 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 9.6: Relative Velocity Vectors

4. Report the mass flux at inlet and outlet.

Postprocessing → Reports → Fluxes...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 347
Using Multiple Reference Frames

a. Retain the selection of Mass Flow Rate in the Options group box.

b. Select inlet and outlet in the Boundaries selection list.

c. Click Compute.

The net mass imbalance should be no more than a small fraction (say, 0.5%) of the total flux through
the system. If a significant imbalance occurs, you should decrease your residual tolerances by at least
an order of magnitude and continue iterating.

The flux report will compute fluxes only for boundary zones.

d. Close the Flux Reports dialog box.

Note

You can use the Surface Integrals option to report fluxes on surfaces or planes.

Results → Reports → Surface Integrals Edit...

9.5. Summary
This tutorial illustrates the procedure for setting up and solving problems with multiple reference frames
using ANSYS Fluent. Although this tutorial considers only one rotating fluid zone, extension to multiple
rotating fluid zones is straightforward as long as you delineate each fluid zone.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
348 of ANSYS, Inc. and its subsidiaries and affiliates.
Further Improvements

Note that this tutorial was solved using the default absolute velocity formulation. For some problems
involving rotating reference frames, you may want to use the relative velocity formulation. See the
Fluent User's Guide for details.

9.6. Further Improvements


This tutorial guides you through the steps to reach an initial solution. You may be able to obtain a more
accurate solution by using an appropriate higher-order discretization scheme and by adapting the mesh.
Mesh adaption can also ensure that the solution is independent of the mesh. These steps are demon-
strated in Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 1).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 349
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
350 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 10: Using Sliding Meshes
This tutorial is divided into the following sections:
10.1. Introduction
10.2. Prerequisites
10.3. Problem Description
10.4. Setup and Solution
10.5. Summary
10.6. Further Improvements

10.1. Introduction
The analysis of turbomachinery often involves the examination of the transient effects due to flow in-
teraction between the stationary components and the rotating blades. In this tutorial, the sliding mesh
capability of ANSYS Fluent is used to analyze the transient flow in an axial compressor stage. The rotor-
stator interaction is modeled by allowing the mesh associated with the rotor blade row to rotate relative
to the stationary mesh associated with the stator blade row.

This tutorial demonstrates how to do the following:

• Create periodic zones.

• Set up the transient solver and cell zone and boundary conditions for a sliding mesh simulation.

• Set up the mesh interfaces for a periodic sliding mesh model.

• Sample the time-dependent data and view the mean value.

10.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorial Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 1)
found in this manual and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some
steps in the setup and solution procedure will not be shown explicitly.

10.3. Problem Description


The model represents a single-stage axial compressor composed of two blade rows. The first row is the
rotor with 16 blades, which is operating at a rotational speed of 37,500 rpm. The second row is the
stator with 32 blades. The blade counts are such that the domain is rotationally periodic, with a periodic
angle of 22.5 degrees. This enables you to model only a portion of the geometry, namely, one rotor
blade and two stator blades. Due to the high Reynolds number of the flow and the relative coarseness
of the mesh (both blade rows are composed of only 13,856 cells total), the analysis will employ the in-
viscid model, so that ANSYS Fluent is solving the Euler equations.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 351
Using Sliding Meshes

Figure 10.1: Rotor-Stator Problem Description

10.4. Setup and Solution


The following sections describe the setup and solution steps for this tutorial:
10.4.1. Preparation
10.4.2. Mesh
10.4.3. General Settings
10.4.4. Models
10.4.5. Materials
10.4.6. Cell Zone Conditions
10.4.7. Boundary Conditions
10.4.8. Operating Conditions
10.4.9. Mesh Interfaces
10.4.10. Solution
10.4.11. Postprocessing

10.4.1. Preparation
To prepare for running this tutorial:

1. Download the sliding_mesh.zip file here.

2. Unzip sliding_mesh.zip to your working directory.

3. The mesh file axial_comp.msh can be found in the folder.

4. Use Fluent Launcher to start the 3D version of ANSYS Fluent.

Fluent Launcher displays your Display Options preferences from the previous session.

For more information about Fluent Launcher, see starting ANSYS Fluent using the Fluent Launcher
in the Fluent Getting Started Guide.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
352 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

5. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.

6. Enable single precision (disable Double Precision).

7. Do not enable Meshing Mode.

8. Run in Serial under Processing Options.

10.4.2. Mesh
1. Read in the mesh file axial_comp.msh.

File → Read → Mesh...

10.4.3. General Settings


1. Check the mesh.

Setting Up Domain → Mesh → Check

ANSYS Fluent will perform various checks on the mesh and will report the progress in the console. Ensure
that the reported minimum volume is a positive number.

Warnings will be displayed regarding unassigned interface zones, resulting in the failure of the mesh
check. You do not need to take any action at this point, as this issue will be rectified when you define
the mesh interfaces in a later step.

2. Examine the mesh (Figure 10.2: Rotor-Stator Display (p. 354)).

Orient the view to display the mesh as shown in Figure 10.2: Rotor-Stator Display (p. 354). The inlet of the
rotor mesh is colored blue, the interface between the rotor and stator meshes is colored yellow, and the
outlet of the stator mesh is colored red.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 353
Using Sliding Meshes

Figure 10.2: Rotor-Stator Display

3. Define the units for the model.

Setup → General → Units...

a. Select angular-velocity from the Quantities selection list.

b. Select rpm from the Units selection list.

c. Select pressure from the Quantities selection list.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
354 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Scroll down the Quantities list to find pressure.

d. Select atm from the Units selection list.

e. Close the Set Units dialog box.

4. Use the text user interface to change zones rotor-per-1 and rotor-per-3 from wall zones to peri-
odic zones.

a. Press Enter in the console to get the command prompt (>).

b. Type the commands as shown below in the console:


> mesh/modify-zones/list-zones
id name type material kind
---- ------------------------- ------------------ -------------------- ----
13 fluid-rotor fluid air cell
28 fluid-stator fluid air cell
2 default-interior:0 interior face
15 default-interior interior face
3 rotor-hub wall air face
4 rotor-shroud wall air face
7 rotor-blade-1 wall air face
8 rotor-blade-2 wall air face
16 stator-hub wall air face
17 stator-shroud wall air face
20 stator-blade-1 wall air face
21 stator-blade-2 wall air face
22 stator-blade-3 wall air face
23 stator-blade-4 wall air face
5 rotor-inlet pressure-inlet face
19 stator-outlet pressure-outlet face
10 rotor-per-1 wall air face
12 rotor-per-2 wall air face
24 stator-per-2 wall air face
26 stator-per-1 wall air face
6 rotor-interface interface face
18 stator-interface interface face
11 rotor-per-4 wall air face
9 rotor-per-3 wall air face
25 stator-per-4 wall air face
27 stator-per-3 wall air face

/mesh/modify-zones>
/mesh/modify-zones> make-periodic
Periodic zone [()] 10
Shadow zone [()] 9
Rotational periodic? (if no, translational) [yes] yes
Create periodic zones? [yes] yes

zone 9 deleted

created periodic zones.

5. Similarly, change the following wall zone pairs to periodic zones:

Zone Pairs Respective Zone IDs


rotor-per-2 and rotor-per-4 12 and 11
stator-per-1 and stator-per-3 26 and 27
stator-per-2 and stator-per-4 24 and 25

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 355
Using Sliding Meshes

10.4.4. Models
1. Enable the inviscid model.

Setup → Models → Viscous Edit...

a. Select Inviscid in the Model list.

b. Click OK to close the Viscous Model dialog box.

10.4.5. Materials
1. Specify air (the default material) as the fluid material, using the ideal gas law to compute density.

Setup → Materials → Fluids → air → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
356 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Retain the default entry of air in the Name text entry field.

b. Select ideal-gas from the Density drop-down list in the Properties group box.

c. Retain the default values for all other properties.

d. Click Change/Create and close the Create/Edit Materials dialog box.

As reported in the console, ANSYS Fluent will automatically enable the energy equation, since this is re-
quired when using the ideal gas law to compute the density of the fluid.

2. Define Transient in the solver settings to enable Mesh Motion.

Setup → General

a. Retain the default selection of Pressure-Based in the Type list.

b. Select Transient in the Time list.

10.4.6. Cell Zone Conditions

Setup → Cell Zone Conditions

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 357
Using Sliding Meshes

1. Set the cell zone conditions for the fluid in the rotor (fluid-rotor).

Setup → Cell Zone Conditions → fluid-rotor → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
358 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Enable Mesh Motion.

b. Click the Mesh Motion tab.

c. Retain the default values of (0, 0, 1) for X, Y, and Z in the Rotation-Axis Direction group box.

d. Enter 37500 rpm for Speed in the Rotational Velocity group box.

e. Click OK to close the Fluid dialog box.

2. Set the cell zone conditions for the fluid in the stator (fluid-stator).

Setup → Cell Zone Conditions → fluid-stator → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 359
Using Sliding Meshes

a. Retain the default values of (0, 0, 1) for X, Y, and Z in the Rotation-Axis Direction group box.

b. Click OK to close the Fluid dialog box.

10.4.7. Boundary Conditions

Setup → Boundary Conditions

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
360 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

1. Enter rotor-inlet into the Zone field to filter the zone list.

Setup → Boundary Conditions → rotor-inlet → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 361
Using Sliding Meshes

a. Enter 1.0 atm for Gauge Total Pressure.

b. Enter 0.9 atm for Supersonic/Initial Gauge Pressure.

For information about the Supersonic/Initial Gauge Pressure, see the Fluent User's Guide.

c. Click the Thermal tab and enter 288 K for Total Temperature.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
362 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

d. Click OK to close the Pressure Inlet dialog box.

2. Enter stator-outlet into the Zone field to filter the zone list.

Setup → Boundary Conditions → stator-outlet → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 363
Using Sliding Meshes

a. Enter 1.08 atm for Gauge Pressure.

b. Enable Radial Equilibrium Pressure Distribution.

c. Click the Thermal tab and enter 288 K for Backflow Total Temperature.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
364 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

d. Click OK to close the Pressure Outlet dialog box.

Note

The momentum settings and temperature you input at the pressure outlet will be used
only if flow enters the domain through this boundary. It is important to set reasonable
values for these downstream scalar values, in case flow reversal occurs at some point
during the calculation.

3. Retain the default boundary conditions for all wall zones.

Setup → Boundary Conditions → rotor-blade-1 → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 365
Using Sliding Meshes

Note

For wall zones, ANSYS Fluent always imposes zero velocity for the normal velocity com-
ponent, which is required whether or not the fluid zone is moving. This condition is all
that is required for an inviscid flow, as the tangential velocity is computed as part of the
solution.

10.4.8. Operating Conditions


1. Set the operating pressure.

Setup → Boundary Conditions → Operating Conditions...

a. Enter 0 atm for Operating Pressure.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
366 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

b. Click OK to close the Operating Conditions dialog box.

Since you have specified the boundary condition inputs for pressure in terms of absolute pressures, you
have to set the operating pressure to zero. Boundary condition inputs for pressure should always be rel-
ative to the value used for operating pressure.

10.4.9. Mesh Interfaces


1. Create a periodic mesh interface between the rotor and stator mesh regions.

Setup → Mesh Interfaces New...

Select Manual Create...

a. Enter int for Mesh Interface.

b. Enable Periodic Repeats in the Interface Options group box.

Enabling this option, allows ANSYS Fluent to treat the interface between the sliding and non-sliding
zones as periodic where the two zones do not overlap.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 367
Using Sliding Meshes

c. Select rotor-interface from the Interface Zones Side 1 selection list.

Note

In general, when one interface zone is smaller than the other, it is recommended that
you choose the smaller zone as Interface Zone 1. In this case, since both zones are
approximately the same size, the order is not significant.

d. Select stator-interface from the Interface Zones Side 2 selection list.

e. Click Create and close the Create/Edit Mesh Interfaces dialog box.

f. Close the Mesh Interfaces dialog box.

2. Check the mesh again to verify that the warnings displayed earlier have been resolved.

Setting Up Domain → Mesh → Check

10.4.10. Solution
1. Set the solution parameters.

Solving → Solution → Methods...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
368 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Select Coupled from the Pressure-Velocity Coupling group box.

For many general fluid-flow problems, convergence speed can be improved by using the coupled
solver.

2. Change the Solution Controls

Solving → Controls → Controls...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 369
Using Sliding Meshes

a. Enter 0.5 for Momentum and Pressure in the Explicit Relaxation Factors group box.

b. Enter 0.9 for Temperature in the Under-Relaxation Factors group box.

3. Enable the plotting of residuals during the calculation.

Solving → Reports → Residuals...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
370 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Ensure that the Plot is selected in the Options group box.

b. Select relative from the Convergence Criterion drop-down list.

c. Enter 0.01 for Relative Criteria for each Residual (continuity, x-velocity, y-velocity, z-velocity, and
energy).

d. Click OK to close the Residual Monitors dialog box.

4. Enable the plotting of mass flow rate at the inlet (rotor-inlet).

Solving → Reports → Definitions → New → Surface Report → Mass Flow Rate...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 371
Using Sliding Meshes

a. Enter surf-mon-1 for the Name of the surface report definition.

b. In the Create group box, enable Report File, Report Plot and Print to Console.

c. Enter rotor-inlet in the Surfaces field to filter the list.

d. Select rotor-inlet from the Surfaces selection list.

e. Click OK to save the surface report definition settings and close the Surface Report Definition dialog
box.

surf-mon-1-rplot and surf-mon-1-rfile that are automatically generated by Fluent appear in


the tree (under Solution/Monitors/Report Plots and Solution/Monitors/Report Files, respect-
ively).

5. Enable the plotting of mass flow rate at the outlet (stator-outlet).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
372 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Solving → Reports → Definitions → New → Surface Report → Mass Flow Rate...

a. Enter surf-mon-2 for the Name of the surface report definition.

b. In the Create group box, enable Report File, Report Plot and Print to Console.

c. Enter stator-outlet in the Surfaces field to filter the list.

d. Select stator-outlet from the Surfaces selection list.

e. Click OK to save the surface report definition settings and close the Surface Report Definition dialog
box.

surf-mon-2-rplot and surf-mon-2-rfile that are automatically generated by Fluent appear in


the tree (under Solution/Monitors/Report Plots and Solution/Monitors/Report Files, respect-
ively).

6. Enable the plotting of the area-weighted average of the static pressure at the interface (stator-interface).

Solving → Reports → Definitions → New → Surface Report → Area-Weighted Average...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 373
Using Sliding Meshes

a. Enter surf-mon-3 for the Name of the surface report definition.

b. In the Create group box, enable Report File, Report Plot and Print to Console.

c. Retain the default selection of Pressure... and Static Pressure from the Field Variable drop-down
lists.

d. Enter stator-interface in the Surfaces field to filter the list.

e. Select stator-interface from the Surfaces selection list.

f. Click OK to save the surface report definition settings and close the Surface Report Definition dialog
box.

surf-mon-3-rplot and surf-mon-3-rfile that are automatically generated by Fluent appear in


the tree (under Solution/Monitors/Report Plots and Solution/Monitors/Report Files, respect-
ively).

7. Initialize the solution using the values at the inlet (rotor-inlet).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
374 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Solving → Initialization → Options...

a. Select rotor-inlet from the Compute from drop-down list.

b. Select Absolute in the Reference Frame list.

c. Click Initialize.

8. Save the initial case file (axial_comp.cas.gz).

File → Write → Case...

9. Run the calculation for one revolution of the rotor.

Solving → Run Calculation → Advanced...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 375
Using Sliding Meshes

a. Enter 6.6667e-6 s for Time Step Size.

The time step is set such that the passing of a single rotor blade is divided into 15 time steps. There
are 16 blades on the rotor. Therefore, in each time step the rotor rotates 360/16/15=1.5 degrees. With
a rotational speed of 37,500 rpm (225,000 deg/sec), 1.5 degrees of rotation takes 1.5 / 2.25e5 =
6.6667e-6 sec.

b. Enter 240 for Number of Time Steps.

There are 16 blades on the rotor, and each rotor blade period corresponds to 15 time steps (see
above). Therefore, a complete revolution of the rotor will take 16*15=240 time steps.

c. Retain the default setting of 20 for Max Iterations/Time Step.

d. Click Calculate.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
376 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

The calculation will run for approximately 4,200 iterations.

The residuals jump at the beginning of each time step and then fall at least two to three orders of mag-
nitude. Also, the relative convergence criteria is achieved before reaching the maximum iteration limit
(20) for each time step, indicating the limit does not need to be increased.

Figure 10.3: Residual History for the First Revolution of the Rotor

10. Examine the flow variable histories for the first revolution of the rotor (Figure 10.4: Mass Flow Rate at the
Inlet During the First Revolution (p. 378), Figure 10.5: Mass Flow Rate at the Outlet During the First Revolu-
tion (p. 378), and Figure 10.6: Static Pressure at the Interface During the First Revolution (p. 379)).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 377
Using Sliding Meshes

Figure 10.4: Mass Flow Rate at the Inlet During the First Revolution

Figure 10.5: Mass Flow Rate at the Outlet During the First Revolution

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
378 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 10.6: Static Pressure at the Interface During the First Revolution

The flow variable histories show that the large variations in flow rate and interface pressure that occur
early in the calculation are greatly reduced as time-periodicity is approached.

11. Save the case and data files (axial_comp-0240.cas.gz and axial_comp-0240.dat.gz).

File → Write → Case & Data...

Note

It is a good practice to save the case file whenever you are saving the data file espe-
cially for sliding mesh model. This is because the case file contains the mesh inform-
ation, which is changing with time.

Note

For transient-state calculations, you can add the character string %t to the file name so
that the iteration number is automatically appended to the name (for example, by entering
axial_comp-%t for the File Name in the Select File dialog box, ANSYS Fluent will save
files with the names axial_comp-0240.cas and axial_comp-0240.dat).

12. Rename the report output file in preparation for further iterations.

Solution → Monitors → Report Files → surf-mon-1-rfile Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 379
Using Sliding Meshes

a. Enter surf-mon-1b.out for Output File Base Name.

b. Click OK to close the Edit Report File dialog box.

13. Similarly, change the output file names for the surf-mon-2-rfile and surf-mon-3-rfile report file definitions
to surf-mon-2b.out and surf-mon-3b.out, respectively.

14. Continue the calculation for 720 more time steps to simulate three more revolutions of the rotor.

Solving → Run Calculation → Advanced...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
380 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

The calculation will run for approximately 11,600 more iterations.

15. Examine the flow variable histories for the next three revolutions of the rotor to verify that the solution is
time-periodic (Figure 10.7: Mass Flow Rate at the Inlet During the Next 3 Revolutions (p. 382) Figure 10.8: Mass
Flow Rate at the Outlet During the Next 3 Revolutions (p. 382), and Figure 10.9: Static Pressure at the Interface
During the Next 3 Revolutions (p. 383)).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 381
Using Sliding Meshes

Figure 10.7: Mass Flow Rate at the Inlet During the Next 3 Revolutions

Figure 10.8: Mass Flow Rate at the Outlet During the Next 3 Revolutions

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
382 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 10.9: Static Pressure at the Interface During the Next 3 Revolutions

16. Save the case and data files (axial_comp-0960.cas.gz and axial_comp-0960.dat.gz).

File → Write → Case & Data...

17. Change the file names for surf-mon-1b.out, surf-mon-2b.out, and surf-mon-3b.out to surf-mon-
1c.out, surf-mon-2c.out, and surf-mon-3c.out, respectively (as described in a previous step),
in preparation for further iterations.

18. Add a point at the interface of the stator.

Postprocessing → Surface → Create → Point...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 383
Using Sliding Meshes

a. Enter -0.02 for x0, -0.08 for y0, and -0.036 for z0 in the Point Surface dialog box.

b. Retain the default, point-1 for New Surface Name.

c. Click Create and close the Point Surface dialog box.

19. Enable plotting of the static pressure at a point on the stator interface (point-1).

Solving → Reports → Definitions → New → Surface Report → Vertex Average...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
384 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Enter surf-mon-4 for the Name of the surface report definition.

b. In the Create group box, enable Report File, Report Plot and Print to Console.

c. Retain the defaults of Pressure and Static Pressure for Field Variable.

d. Enter point-1 in the Surfaces field to filter the list.

e. Select point-1 from the Surfaces selection list.

f. Click OK to save the surface report definition settings and close the Surface Report Definition dialog
box.

20. Continue the calculation for one final revolution of the rotor, while saving data samples for the postpro-
cessing of the time statistics.

Solving → Run Calculation → Advanced...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 385
Using Sliding Meshes

a. Enter 240 for Number of Time Steps.

b. Enable Data Sampling for Time Statistics in the Options group box.

Enabling Data Sampling for Time Statistics causes ANSYS Fluent to calculate and store mean and
root-mean-square (RMS) values of various quantities and field functions over the calculation interval.

c. Click Calculate.

The calculation will run for approximately 3,800 more iterations.

21. Save the case and data files (axial_comp-1200.cas.gz and axial_comp-1200.dat.gz).

File → Write → Case & Data...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
386 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 10.10: Static Pressure at a Point on The Stator Interface During the Final Revolution

10.4.11. Postprocessing
1. Examine the vertex-averaged static pressure at the stator during the final revolution of the rotor (as calculated
from surf-mon-4.out), and plot the data.

Postprocessing → Plots → FFT...

a. Click the Load Input File... button to open the Select File dialog box.

i. Select All Files from the Files of type: drop-down list.

ii. Select surf-mon-4-rfile.out from the list of files.

iii. Click OK to close the Select File dialog box.

b. Click the Plot/Modify Input Signal... button to open the Plot/Modify Input Signal dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 387
Using Sliding Meshes

i. Enable Subtract Mean Value in the Options group box.

ii. Click Apply/Plot.

iii. Close the Plot/Modify Input Signal dialog box.

c. Click Plot FFT in the Fourier Transform dialog box.

d. Click Axes... to open the Axes - Fourier Transform dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
388 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

e. Select exponential from the Type drop-down list, and set Precision to 1 in the Number Format group
box.

f. Click Apply and close the Axes - Fourier Transform dialog box.

g. Click Plot FFT and close the Fourier Transform dialog box.

Figure 10.11: FFT of Static Pressure at the Stator

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 389
Using Sliding Meshes

The FFT plot clearly shows that the pressure fluctuations due to interaction at the interface are
dominated by the rotor and stator blade passing frequencies (which are 10 kHz and 20 kHz, respect-
ively) and their higher harmonics.

2. Display contours of the mean static pressure on the walls of the axial compressor.

Postprocessing → Graphics → Contours → Edit

a. Enable Filled in the Options group box.

b. Select Unsteady Statistics... and Mean Static Pressure from the Contours of drop-down lists.

c. Select wall from the Surface Types selection list.

Scroll down the Surfaces selection list to find wall.

d. Click Display and close the Contours dialog box.

e. Disable the Headlight and Lighting options.

f. Rotate the view to get the display as shown in Figure 10.12: Mean Static Pressure on the Outer Shroud
of the Axial Compressor (p. 391).

Shock waves are clearly visible in the flow near the outlets of the rotor and stator, as seen in the areas
of rapid pressure change on the outer shroud of the axial compressor.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
390 of ANSYS, Inc. and its subsidiaries and affiliates.
Further Improvements

Figure 10.12: Mean Static Pressure on the Outer Shroud of the Axial Compressor

10.5. Summary
This tutorial has demonstrated the use of the sliding mesh model for analyzing transient rotor-stator
interaction in an axial compressor stage. The model utilized the coupled pressure-based solver in con-
junction with the transient algorithm to compute the inviscid flow through the compressor stage. The
solution was calculated over time until the reported variables displayed time-periodicity (which required
several revolutions of the rotor), after which time-averaged data was collected while running the case
for the equivalent of one additional rotor revolution (240 time steps).

The Fast Fourier Transform (FFT) utility in ANSYS Fluent was employed to determine the time averages
from stored flow variable report data. You also used the FFT utility to examine the frequency content
of the transient report data. The observed peak corresponds to the passing frequency and the higher
harmonics of the passing frequency, which occurred at approximately 10,000 Hz.

10.6. Further Improvements


This tutorial guides you through the steps to reach a second-order solution. You may be able to obtain
a more accurate solution by adapting the mesh. Adapting the mesh can also ensure that your solution
is independent of the mesh. These steps are demonstrated in Introduction to Using ANSYS Fluent: Fluid
Flow and Heat Transfer in a Mixing Elbow (p. 1).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 391
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
392 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 11: Using Overset and Dynamic Meshes
The purpose of this tutorial is to provide guidelines and recommendations for setting up and solving
a dynamic overset mesh case. Overset mesh allows you to build up your case using multiple overlapping
meshes that automatically get connected by interpolating cell data in the overlapping regions. The
overset meshing technique is used in conjunction with the Six Degree of Freedom (6DOF) solver, allowing
bodies to move as a result of fluid and/or external forces.

In this tutorial, you will learn:

• Reading and appending mesh files into the Fluent solver and establishing a flow domain with the
overset approach from overlapping meshes.

• Best practices for overset mesh settings when two walls are close to each other or there is a very tight
gap.

• Compiling the UDF to specify the properties of the pod.

• Setting up the moving zones and hooking the UDF.

• Running a steady-state calculation and continuing an unsteady calculation for the problem.

• Best practices for monitoring and diagnosing an overset case and postprocessing the results.

Note

Overset meshing has many applications beyond store separation. Refer to Overset Meshes
in the Fluent User's Guide for additional information on overset meshing capabilities.

• ANSYS Fluent: Introduction to Overset Meshing

• ANSYS Fluent: Overset Meshing and Dynamic Meshes

• ANSYS Fluent: Using the Six Degrees of Freedom (Six DOF) Solver

• ANSYS Fluent: Setting up a Dynamic Mesh Problem for a Piston and Reed Valve - Part 1

11.1. Prerequisites
This tutorial is focused on overset meshing and it assumes that you are familiar with the ANSYS Fluent
interface and that you have a good understanding of the basic setup and solution procedures. Some

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 393
Using Overset and Dynamic Meshes

of the basic steps in the setup and solution procedure will not be shown explicitly. In this tutorial, you
will use the dynamic mesh model and the Six Degree of Freedom model. If you have not used these
models before, refer to Section 10.6: Dynamic Meshes in the ANSYS Fluent User’s Guide. You will use a
UDF to specify the properties of the pod. If you have not used UDFs before, refer to the Fluent Custom-
ization Manual.

11.2. Problem Description


A rescue pod is dropped from a moving airplane flying at Mach 0.8. As the pod falls, it is subjected to
pressure, viscous drag, and gravitational forces. These forces also create a moment on the pod, causing
it to rotate about its center of gravity.

The pod is released from the aircraft at t=0.

Figure 11.1: Schematic of Problem

The representation of the problem is shown in Figure 11.1: Schematic of Problem (p. 394) A close view
of the bay area and different walls with their interior zones are shown in Figure 11.2: Close View of Bay
Area (p. 395).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
394 of ANSYS, Inc. and its subsidiaries and affiliates.
Mesh

Figure 11.2: Close View of Bay Area

11.3. Preparation
1. Download the overset_dynamic_mesh.zip file here.

2. Unzip overset_dynamic_mesh.zip to your working directory.

3. The mesh file overset-background-mesh.msh, Overset-component-mesh.msh, and the


property.c can be found in the folder.

4. Use the Fluent Launcher to start the 2D version of ANSYS Fluent.

Fluent Launcher displays your Display Options preferences from the previous session.

For more information about Fluent Launcher, see starting ANSYS Fluent using the Fluent Launcher
in the Fluent Getting Started Guide.

5. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.

6. Ensure that the Serial processing option is selected.

7. Enable Double Precision.

11.4. Mesh
1. Read the mesh file Overset-background-mesh.msh.

File → Read → Mesh...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 395
Using Overset and Dynamic Meshes

As ANSYS Fluent reads the mesh file, it will report the progress in the console. This mesh has three dif-
ferent zones that allow for a greater level of refinement where the pod will be falling and less refinement
at the far field. Dividing the background mesh into multiple zones allows for non-conformal interfaces
between the other zones that will not be in the overset interface.

Note

Fluent uses the terminology of a component mesh and a background mesh. The mesh
containing the moving object is called component mesh and stationary mesh is called
the background mesh. The outer boundary of component mesh is referred as component
boundary.

2. In this step you will create mesh interfaces between multiple zones in the stationary mesh. This mesh has
three cell zones- upstream, downstream, and fluid-background.

Setting Up Domain → Interfaces → Mesh...

a. Select interface-background-downstream and interface-downstream-background in the Unas-


signed Interface Zones list.

b. Enter downstream-background for Interface Name Prefix.

c. Click Auto Create.

d. Select interface-background-upstream and interface-upstream-background in the Unassigned


Interface Zones list.

e. Enter upstream-background for Interface Name Prefix.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
396 of ANSYS, Inc. and its subsidiaries and affiliates.
Mesh

f. Click Auto Create and close the Mesh Interfaces dialog box.

3. Append the component mesh file

Setting Up Domain → Zones → Append → Append Case File...

a. Select overset-component-mesh.msh and click OK.

b. Click OK in the Warning dialog box that appears stating that some zone IDs have changed.

c. If you have the Display Mesh After Reading option enabled in the Fluent Launcher, then you must
refresh the graphics window by right-clicking in the graphics window and selecting Refresh Display.

Note

Fluent will append the component mesh and two meshes will overlap each other.
If background and component meshes are present in the same mesh file, then you
can start directly from the mesh file without appending.

4. Display the mesh.

Setting Up Domain → Mesh → Display

a. Select all surfaces and click Display.

b. Close the Mesh Display dialog box.

Note

There are approximately 110 K mesh elements in this case.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 397
Using Overset and Dynamic Meshes

5. Check the mesh.

Setting Up Domain → Mesh → Check

The mesh check fails with a warning. The warning states that there is an overset zone that is not a part
of any overset interface. If any zone already has overset type, we need to define overset-interface with
available overset zone. If mesh does not have any overset type predefined, then this warning will not
come.

Note

Fluent performs various checks on the mesh and reports the progress in the console
window. Pay attention to the reported minimum volume and make sure this is a positive
number.

11.5. Overset Interface Creation


1. Organize the boundary conditions by type.

Setup → Boundary Conditions Group By → Zone Type

2. In this step you will ensure that the component boundary is properly defined as the overset boundary
type.

Setup → Boundary Conditions → Overset → overset_boundary Type → overset

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
398 of ANSYS, Inc. and its subsidiaries and affiliates.
Overset Interface Creation

You can also use following TUI command to change overset_boundary to the overset type:

/define/boundary-conditions/zone-type overset_boundary overset

Note

ANSYS Meshing automatically assigns boundary types according to boundary names.


Meshes created in other meshing tools may require you to manually define all of the
boundary types.

3. Define Overset Interface.

Setting Up Domain → Interfaces → Overset...

This opens the Create/Edit Overset Interfaces dialog box.

a. Enter overset-interface for Name.

b. Select fluid-background from the Background group box and component from the Component
group box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 399
Using Overset and Dynamic Meshes

c. Click Create to create the overset interface.

d. Close the Create/Edit Overset Interfaces dialog box.

4. Repeat the mesh check to confirm that it is successful.

Setting Up Domain → Mesh → Check

5. Define overset settings for creating an efficient interface.

Set the donor-priority-method to boundary-distance-based. This option is only available


through the TUI command:

/define/overset-interfaces/options/donor-priority-method 1

While establishing overset interface, Fluent does an optimization to get best location of the interface
while reducing the number of cells in the overlapping region that will participate in the calculation.
There are options to define the priority of the cell zones that will take part in the overset interface creation.
Zones defined as higher priority will be given more weightage. When cell zones have the same priority,
there are two methods that govern overlap minimization (see "overlap minimization in the Fluent User's
Guide): one method is cell volume based (proportional to the inverse of the cell volume) and other
method is boundary distance based (proportional to the inverse of the distance to the closest boundary).

Cell volume based works best if the component mesh resolution is fine near walls and increases
gradually away from walls and becomes similar in size to or larger than the background mesh.
Boundary distance based method works best where overlapping meshes have uniform and nearly
identical resolutions and therefore it is most suitable when two walls have small distance in between
them. In this example, the store wall is very near to the bay wall and the boundary distance based
method allows Fluent to create an overset interface somewhere middle of the gap. It is important to
have sufficient cells overlapping each other between the gap region of two walls (at least 4 cells from
both walls), so it is better to create inflation layers on walls to resolve this requirement.

6. In this step you will create the overset intersection, also referred to as hole cutting. When the case is ini-
tialized, ANSYS Fluent automatically creates the overset intersection. Experts have the option to investigate
how the intersection is created by enabling expert options in the TUI:

/define/overset-interfaces/options/expert yes

With expert options enabled, you can create the intersection using the following command:

/define/overset-interfaces/intersect-all

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
400 of ANSYS, Inc. and its subsidiaries and affiliates.
Steady-State Case Setup

You can increase the overset verbosity to have Fluent print more information to the console for
any overset process. Verbosity settings range from 0 to 3 depending on the information required.
To increase verbosity, enter:

/define/overset-interfaces/options/verbosity 2

To list all overset interface related information, enter:

/define/overset-interfaces/list

11.6. Steady-State Case Setup


In this section you will set up the case for steady-state flow.

11.6.1. General Settings


Retain the setting of steady-state pressure-based solver.

Setting Up Physics → Solver

11.6.2. Models
1. Enable the energy equation.

Setting Up Physics → Models → Energy

2. Specify the k-omega viscous model.

Setting Up Physics → Models → Viscous...

a. Select k-omega (2 eqn) in the Model group box.

b. Select SST in the k-omega Model group box.

c. Enable the Viscous Heating and Production Limiter options.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 401
Using Overset and Dynamic Meshes

d. Click OK to close and confirm the model settings.

11.6.3. Materials
Specify the properties for air.

1. You will be using the ideal gas law, which is currently a beta feature when used in combination with
overset meshing.

Enable beta features using the define/beta-feature-access yes ok text command.

2. Open the Create/Edit Materials dialog box.

Setting Up Physics → Materials → Create/Edit

a. Select ideal-gas from the Density drop-down list.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
402 of ANSYS, Inc. and its subsidiaries and affiliates.
Steady-State Case Setup

b. Click Change/Create and close the dialog box.

11.6.4. Operating Conditions


Set the operating conditions.

Setting Up Physics → Operating Conditions...

1. Enter 0 pa for Operating Pressure.

2. Click OK to confirm the operating conditions.

11.6.5. Boundary Conditions


1. Set the boundary conditions for the inlet.

Setup → Boundary Conditions → Inlet → pressure-inlet

a. Enter 154419.3 pa for Gauge Total Pressure.

b. Enter 101325 pa for Super Sonic/Initial Gauge Pressure.

c. Retain Intensity and Viscosity Ratio as the Specification Method in the Turbulence group box.

d. Retain the default values of 5% and 10 for Turbulent Intensity and Turbulent Viscosity Ratio re-
spectively.

e. Click OK to confirm these settings.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 403
Using Overset and Dynamic Meshes

2. Set the boundary conditions for outlet.

Setup → Boundary Conditions → Outlet → pressure-outlet

a. Enter 101325 pa for Gauge Pressure.

b. Retain Intensity and Viscosity Ratio as the Specification Method in the Turbulence group box.

c. Retain the default values of 5% and 10 for Backflow Turbulent Intensity and Backflow Turbulent
Viscosity Ratio respectively.

d. Click OK to confirm these settings.

3. Keep the defaults for all of the other boundary conditions.

11.6.6. Reference Values

Setting Up Physics → Solver → Reference Values...

1. Select pressure-inlet from the Compute from drop-down list.

2. Select fluid-background from the Reference Zone drop-down list.

3. Retain the default Reference Values as shown above.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
404 of ANSYS, Inc. and its subsidiaries and affiliates.
Steady-State Case Setup

11.6.7. Solution
In this section you will specify solution methods and controls that are appropriate for this overset
meshing case.

1. Set the solution methods.

Solving → Solution → Methods...

a. Ensure that Flux Type is set to Rhie-Chow.

b. Ensure that Scheme is set to Coupled.

2. Set the solution controls.

Solving → Solution → Controls...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 405
Using Overset and Dynamic Meshes

a. Review and retain the default settings.

b. Click Limits… to open the Solution Limits dialog box.

c. Enter 1e+07 for Maximum Turb. Viscosity Ratio.

d. Click OK to accept the settings.

3. Define a report for the drag coefficient of the pod.

Solving → Reports → Definitions → New → Force Report → Drag...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
406 of ANSYS, Inc. and its subsidiaries and affiliates.
Steady-State Case Setup

a. Enable Report File and Report Plot in the Create group box.

b. Select wall-pod from the Wall Zones list.

c. Click OK to create the report.

For additional information on writing report files, refer to "Creating Report Files" in the Fluent User's
Guide User’s Guide.

4. Specify the residual monitor criterion for the solution equations.

Solving → Reports → Residuals...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 407
Using Overset and Dynamic Meshes

Enter 1e-06 as the Absolute Criterion for all of the Equations.

5. Ensure Hybrid is selected as the initialization method in the Solving ribbon tab.

Click Initialize.

6. Define parameters for calculation to a steady-state solution.

Solving → Run Calculation → Calculate...

a. Enter 1000 for No. of Iterations.

b. Click Calculate.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
408 of ANSYS, Inc. and its subsidiaries and affiliates.
Steady-State Case Setup

Solution converges in approximately 842 iterations, but this number may vary depending on your machine
and other settings. Run time is approximately 20-25 minutes when running in serial. Overset meshing
scales appropriately in Parallel, so increasing the number of cores may reduce solution time.

7. Check the mass imbalance for the inlet and outlet to confirm there is not a large difference.

Postprocessing → Reports → Fluxes...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 409
Using Overset and Dynamic Meshes

a. Select pressure-inlet and pressure-outlet from the list of Boundaries.

b. Click Compute.

8. Save the steady-state case and data files overset-pod-steady-state.cas/dat.gz..

File → Write → Case & Data...

Click OK in the Information dialog box that appears.

11.7. Unsteady Setup


In this section you will define the transient settings.

11.7.1. General Settings


1. Select Transient in the Setting up Physics ribbon tab (Solver group box, under Time).

Setting Up Physics → Solver → Transient

2. Set the Operating Conditions.

Setting Up Physics → Solver → Operating Conditions...

a. Enable Gravity.

b. Enter -9.81 for Y.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
410 of ANSYS, Inc. and its subsidiaries and affiliates.
Unsteady Setup

3. Click OK to confirm the operating conditions.

11.7.2. Compile the UDF

User-Defined → User-Defined → Functions → Compiled...

1. Click Add... to open the Select File dialog box.

2. Select property.c and click OK.

3. Click Build to build the library.

4. Click OK to close the Question dialog box that appears.

Note

This UDF contains the mass of the pod and its and moments of inertia.

ANSYS Fluent sets up the directory structure and compiles the code. You can see the compilation in the
console window.

5. Click Load to load the library.

11.7.3. Dynamic Mesh Settings


In this section you will specify the six degrees of freedom (Six DOF) and dynamic mesh settings.

Setting Up Domain → Mesh Models → Dynamic Mesh...

1. Enable Dynamic Mesh.

2. Disable Smoothing.

3. Enable Six DOF.

4. Click Settings… to open the Options dialog box.

a. Enable Write Motion History.

b. Enter pod-motion for the File Name.

c. Click OK to confirm the settings.

5. Set up the moving zones.

a. Create the dynamic zone for the component

i. Click Create/Edit… in the Dynamic Mesh task page to open the Dynamic Mesh Zones dialog
box.

ii. Select component from the Zone Names drop-down list.

iii. Retain the selection of Rigid Body for Type.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 411
Using Overset and Dynamic Meshes

iv. Retain the selection of On in the Six DOF group box.

v. Enable Passive in the Six DOF group box.

vi. Enter 7.6 for X and 18.5 for Y in the Center of Gravity Location group box.

vii. Click Create to create the dynamic zone for the component.

Note

The UDF is automatically selected in the Six DOF UDF/Properties drop-down list.
If there were additional UDFs loaded, then you would have to select the correct
one.

b. Create the dynamic zone for the pod.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
412 of ANSYS, Inc. and its subsidiaries and affiliates.
Unsteady Setup

i. Select wall-pod from the Zone Names drop-down list.

ii. Retain the selection of Rigid Body for Type.

iii. Retain the selection of On and disable Passive in the Six DOF group box.

iv. Retain the values for Center of Gravity Location.

v. Click Create to create the dynamic zone for the pod.

vi. Close the Dynamic Mesh Zones dialog box.

11.7.4. Report Generation for Unsteady Case


Create a new drag report definition named unsteady_pod for the drag coefficient on the wall-pod.

Solving → Reports → Definitions → New → Force Report → Drag...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 413
Using Overset and Dynamic Meshes

1. Enter unsteady-pod-drag for Name.

2. Enable Report File and Report Plot in the Create group box.

3. Select wall-pod from the Wall Zones list.

4. Click OK to create the report.

11.7.5. Run Calculations for Unsteady Case

Solving → Run Calculation → Advanced...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
414 of ANSYS, Inc. and its subsidiaries and affiliates.
Unsteady Setup

a. Enter 0.001 for Time Step Size (s).

b. Enter 1000 for Number of Time Steps.

c. Enter 8 for Max Iterations/Time Step.

d. Start recording the transcript.

File → Write → Start Transcript...

Enter a name for the transcript file.

e. Click Calculate.

It takes approximately 1.7 hours to complete the run on a 12 core machine

f. Stop recording the transcript.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 415
Using Overset and Dynamic Meshes

i. File → Write → Stop Transcript...

ii. Save the case and data files ( overset-pod-transient.cas.gz and overset-pod-
transient.dat.gz.

11.7.6. Overset Solution Checking


Check overset solution.

Open the transcript file and look for the warning of:
dead->solve cells

Ideally, no cells should go directly from being dead cells to being solve cells. A large number of cells
directly converting from dead to solve can affect the accuracy of the solution or cause divergence. If
you find that there is a large number of cells that went directly from dead to solve, then you can reduce
the time step size to decrease the likelihood of this issue occurring. If there are any dead to solve cells
present for this calculation run, the warning is printed as shown below:
WARNING: 1 overset dead->solve cells in interface o-i

Note

Objects move their position with time in transient overset moving mesh cases, requiring
dead cells to convert into solve cells. Dead cells do not have proper solution data, so they
need to convert to receptor cells to get the required solution information before converting
to solve cells. If a dead cell converts directly into a solve cell, it may lack required information
and cause an improper result. Refer to "Diagnosing Overset Interface Issues" in the Fluent
User's Guide for additional information.

11.7.7. Postprocessing
1. Create contours of static pressure.

Postprocessing → Graphics → Contours → Edit...

a. Enable Filled in the Options group box.

b. Ensure Pressure… and Static Pressure are selected from the Contours of drop-down lists.

c. Select the internal surfaces in the list of Surfaces.

d. Click Display.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
416 of ANSYS, Inc. and its subsidiaries and affiliates.
Unsteady Setup

e. Close the dialog box.

Note

To capture intermediate images, you can create an animation definition prior to


beginning the calculation. This would allow you to view the individual image files
as well as an animation of the pod as it falls. For additional information on creating
animation definitions, see Animating the Solution in the Fluent User’s Guide.

• ANSYS Fluent: Scene and Animation Creation

2. Plot the center of gravity motion of the pod.

a. Read the pod-motion file into Microsoft Excel and plot flow time vs CG-orientation of the pod.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 417
Using Overset and Dynamic Meshes

b. Plot flow time vs CG-angular orientation of the pod.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
418 of ANSYS, Inc. and its subsidiaries and affiliates.
Unsteady Setup

11.7.8. Diagnosing an Overset Case


Once an overset interface is created, it is important to check and diagnose it. In this section you will
learn about diagnosing an overset interface and about the different cells participating in the solution.

In overset meshing all meshes are categorized into five cell types:

• Solve – (yellow in figures Figure 11.3: Cell Marking on component (p. 423) & Figure 11.4: Cell Marking
on fluid-background (p. 423)) cells that take part in the solution.

• Donor – (marked red in figures Figure 11.3: Cell Marking on component (p. 423) & Figure 11.4: Cell
Marking on fluid-background (p. 423)) provide information to corresponding cell zones.

• Receptor – (marked blue in figures Figure 11.3: Cell Marking on component (p. 423) & Figure 11.4: Cell
Marking on fluid-background (p. 423)) receive information from donor cells in the corresponding cell
zones.

• Dead – (marked in red in figures Figure 11.5: Dead Cells in the Component (p. 425)) deactivated cells
located in regions of overlap between the background and component meshes, where multiple cells
are present in the same exact location. Only one set of cells in a region is allowed to take part in the
solution. Additionally, cells outside of the flow regime are marked as dead.

• Orphan – receptor cells that cannot find a corresponding donor cell. Although Fluent has intelligence
to deal with orphan cells, their presence should be avoided to reduce the risk of solution inaccuracies
and divergence.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 419
Using Overset and Dynamic Meshes

You can mark orphan cells using the TUI command:

define/overset-interfaces/mark-cells orphan yes

This will show all of the orphan cells present in the case, unless you specify a particular zone. Marking
orphan cells creates a register that you can display via the Manage Adaption Registers dialog box.

Select overset-orphan-cells-r0 and click Display.

In this case there are not any orphan cells, so nothing is displayed in the graphics window. If you mark
solve cells or other cells types and display those registers, then it will appear in the graphics window.

If large number of orphan cells are generated in a case, then it is advisable to modify the mesh accord-
ingly.

Different type of cells can also be displayed creating contours of Cell Info and displaying the Overset
Cell Type for given surfaces.

Enable the following TUI command to include receptor cells in the contours display:

/define/overset-interfaces/options/render-receptor-cells? yes

The overset interface for this tutorial is created properly, but issues could arise during overset interface
creation for geometries with complex topology. ANSYS Fluent provides options to diagnose issues and
fix them. You can use the ‘debug hole cut’ option to understand more about flood filling of seed cells
or leakage between overlapping boundaries. For detailed information on overset mesh diagnosis, refer
to "Diagnosing Overset Interface Issues" in the Fluent User's Guide.

1. Start a new Fluent session, and read overset-pod-steady-state.cas.gz and overset-pod-


steady-state.dat.gz.

File → Read → Case & Data...

2. Create zone surfaces for component and fluid-background.

Postprocessing → Surface → Create → Zone...

a. Select component in the Zone list.

b. Retain component for New Surface Name and click Create.

c. Similarly, create a zone surface for fluid-background.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
420 of ANSYS, Inc. and its subsidiaries and affiliates.
Unsteady Setup

d. Close the Zone Surface dialog box.

3. Enter the following TUI command in the console:/define/overset-interfaces/op-


tions/render-receptor-cells? Yes

4. Display contours of the overset cell type on the surface you just created.

Postprocessing → Graphics → Contours → Edit...

a. Enable Filled and disable Autorange (which enables Clip to Range) in the Options group box.

b. Disable Node Values and Global Range in the Options group box.

c. Select Cell Info... and Overset Cell Type from the Contours of drop-down lists.

d. Enter -0.5 for Min and 2.5 for Max.

Note

Table 11.1: Meaning of Values

Cell Type Integer Function Value


Donor 2
Solve 1
Receptor 0
Orphan -1
Dead -2

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 421
Using Overset and Dynamic Meshes

Dead cells cannot be displayed in contours.

e. Enter 3 for Levels.

f. Select component from the list of Surfaces.

g. Click Display.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
422 of ANSYS, Inc. and its subsidiaries and affiliates.
Unsteady Setup

Figure 11.3: Cell Marking on component

h. Repeat the process for fluid-background.

Figure 11.4: Cell Marking on fluid-background

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 423
Using Overset and Dynamic Meshes

5. Marking and displaying dead cells.

a. Expand Cell Zones in the tree to check the id number.

Setup → Cell Zone Conditions

b. Mark dead cells in component with the following TUI command: define/overset-inter-
faces/mark-cells dead yes 29

c. Mark dead cells in fluid-background with the following TUI command: /define/overset-in-
terfaces/mark-cells dead yes 7

d. Display the dead cells.

Setting Up Domain → Adapt → Manage Registers...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
424 of ANSYS, Inc. and its subsidiaries and affiliates.
Unsteady Setup

i. Click Options... in the Manage Adaption Registers dialog box.

A. Disable Draw Mesh in the Adaption Display Options dialog box that opens.

B. Click OK to close the Adaption Display Options dialog box.

ii. Select only overset-dead-cells-component-r0 in the Manage Adaption Registers dialog box
and click Display.

Figure 11.5: Dead Cells in the Component

iii. Select only overset-dead-cells-fluid-background-r1 and click Display

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 425
Using Overset and Dynamic Meshes

Figure 11.6: Dead Cells in the Background

11.8. Summary
In this tutorial, you have learned about overset meshing in ANSYS Fluent and its setup along with best
practices, by solving a store separation problem. You have also learned a few diagnostic techniques for
overset meshing and the postprocessing of results for a store separation case.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
426 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 12: Modeling Species Transport and Gaseous Combustion
This tutorial is divided into the following sections:
12.1. Introduction
12.2. Prerequisites
12.3. Problem Description
12.4. Background
12.5. Setup and Solution
12.6. Summary
12.7. Further Improvements

12.1. Introduction
This tutorial examines the mixing of chemical species and the combustion of a gaseous fuel.

A cylindrical combustor burning methane ( ) in air is studied using the eddy-dissipation model in
ANSYS Fluent.

This tutorial demonstrates how to do the following:

• Enable physical models, select material properties, and define boundary conditions for a turbulent flow with
chemical species mixing and reaction.

• Initiate and solve the combustion simulation using the pressure-based solver.

• Examine the reacting flow results using graphics.

• Predict thermal and prompt NOx production.

• Use custom field functions to compute NO parts per million.

12.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorial Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 1)
found in this manual and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some
steps in the setup and solution procedure will not be shown explicitly.

To learn more about chemical reaction modeling, see the Fluent User's Guide and the Fluent Theory
Guide. Otherwise, no previous experience with chemical reaction or combustion modeling is assumed.

12.3. Problem Description


The cylindrical combustor considered in this tutorial is shown in Figure 12.1: Combustion of Methane
Gas in a Turbulent Diffusion Flame Furnace (p. 428). The flame considered is a turbulent diffusion flame.
A small nozzle in the center of the combustor introduces methane at 80 . Ambient air enters the
combustor coaxially at 0.5 . The overall equivalence ratio is approximately 0.76 (approximately 28

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 427
Modeling Species Transport and Gaseous Combustion

excess air). The high-speed methane jet initially expands with little interference from the outer wall,
and entrains and mixes with the low-speed air. The Reynolds number based on the methane jet diameter
is approximately .

Figure 12.1: Combustion of Methane Gas in a Turbulent Diffusion Flame Furnace

12.4. Background
In this tutorial, you will use the generalized eddy-dissipation model to analyze the methane-air combus-
tion system. The combustion will be modeled using a global one-step reaction mechanism, assuming
complete conversion of the fuel to and . The reaction equation is
(12.1)

This reaction will be defined in terms of stoichiometric coefficients, formation enthalpies, and parameters
that control the reaction rate. The reaction rate will be determined assuming that turbulent mixing is
the rate-limiting process, with the turbulence-chemistry interaction modeled using the eddy-dissipation
model.

12.5. Setup and Solution


The following sections describe the setup and solution steps for this tutorial:
12.5.1. Preparation
12.5.2. Mesh
12.5.3. General Settings
12.5.4. Models
12.5.5. Materials
12.5.6. Boundary Conditions
12.5.7. Initial Reaction Solution
12.5.8. Postprocessing
12.5.9. NOx Prediction

12.5.1. Preparation
To prepare for running this tutorial:

1. Download the species_transport.zip file here.

2. Unzip species_transport.zip to your working directory.

3. The file gascomb.msh can be found in the folder.

4. Use Fluent Launcher to start the 2D version of ANSYS Fluent.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
428 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Fluent Launcher displays your Display Options preferences from the previous session.

For more information about Fluent Launcher, see starting ANSYS Fluent using the Fluent Launcher in
the Fluent Getting Started Guide.

5. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.

6. Enable Double-Precision.

7. Ensure Serial is selected under Processing Options.

12.5.2. Mesh
1. Read the mesh file gascomb.msh.

File → Read → Mesh...

After reading the mesh file, ANSYS Fluent will report that 1615 quadrilateral fluid cells have been read,
along with a number of boundary faces with different zone identifiers.

12.5.3. General Settings


1. Check the mesh.

Setting Up Domain → Mesh → Check

ANSYS Fluent will perform various checks on the mesh and will report the progress in the console. Ensure
that the reported minimum volume reported is a positive number.

2. Scale the mesh.

Setting Up Domain → Mesh → Scale...

Since this mesh was created in units of millimeters, you will need to scale the mesh into meters.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 429
Modeling Species Transport and Gaseous Combustion

a. Select mm from the Mesh Was Created In drop-down list in the Scaling group box.

b. Click Scale.

c. Ensure that m is selected from the View Length Unit In drop-down list.

d. Ensure that Xmax and Ymax are reset to 1.8 m and 0.225 m respectively.

The default SI units will be used in this tutorial, hence there is no need to change any units in this
problem.

e. Close the Scale Mesh dialog box.

f. Right click in the graphics window and select Refresh Display

g. Clicking the Fit to Window icon, , will cause the object to fit exactly and be centered in the window.

3. Check the mesh.

Setting Up Domain → Mesh → Check

Note

You should check the mesh after you manipulate it (scale, convert to polyhedra, merge,
separate, fuse, add zones, or smooth and swap). This will ensure that the quality of the
mesh has not been compromised.

4. Examine the mesh with the default settings.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
430 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 12.2: The Quadrilateral Mesh for the Combustor Model

Extra

You can use the right mouse button to probe for mesh information in the graphics win-
dow. If you click the right mouse button on any node in the mesh, information will be
displayed in the ANSYS Fluent console about the associated zone, including the name of
the zone. This feature is especially useful when you have several zones of the same type
and you want to distinguish between them quickly.

5. Select Axisymmetric in the 2D Space list.

Setup → General

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 431
Modeling Species Transport and Gaseous Combustion

12.5.4. Models
1. Enable heat transfer by enabling the energy equation.

Setting Up Physics → Models → Energy

2. Select the standard - turbulence model.

Setting Up Physics → Models → Viscous...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
432 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Select k-epsilon (2 eqn) in the Model list.

The Viscous Model dialog box will expand to provide further options for the k-epsilon model.

b. Retain the default settings for the k-epsilon model.

c. Click OK to close the Viscous Model dialog box.

3. Enable chemical species transport and reaction.

Setting Up Physics → Models → Species...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 433
Modeling Species Transport and Gaseous Combustion

a. Select Species Transport in the Model list.

The Species Model dialog box will expand to provide further options for the Species Transport
model.

b. Enable Volumetric in the Reactions group box.

c. Select methane-air from the Mixture Material drop-down list.

Scroll down the list to find methane-air.

Note

The Mixture Material list contains the set of chemical mixtures that exist in the ANSYS
Fluent database. You can select one of the predefined mixtures to access a complete
description of the reacting system. The chemical species in the system and their
physical and thermodynamic properties are defined by your selection of the mixture
material. You can alter the mixture material selection or modify the mixture material
properties using the Create/Edit Materials dialog box (see Materials (p. 435)).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
434 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

d. Select Eddy-Dissipation in the Turbulence-Chemistry Interaction group box.

The eddy-dissipation model computes the rate of reaction under the assumption that chemical kinetics
are fast compared to the rate at which reactants are mixed by turbulent fluctuations (eddies).

e. Click OK to close the Species Model dialog box.

Prior to listing the properties that are required for the models you have enabled, ANSYS Fluent will display
a warning about the symmetry zone in the console. You may have to scroll up to see this warning.
Warning: It appears that symmetry zone 5 should actually be an axis
(it has faces with zero area projections).
Unless you change the zone type from symmetry to axis,
you may not be able to continue the solution without
encountering floating point errors.

In the axisymmetric model, the boundary conditions should be such that the centerline is an axis type
instead of a symmetry type. You will change the symmetry zone to an axis boundary in Boundary Condi-
tions (p. 438).

12.5.5. Materials
In this step, you will examine the default settings for the mixture material. This tutorial uses mixture properties
copied from the Fluent Database. In general, you can modify these or create your own mixture properties
for your specific problem as necessary.

1. Confirm the properties for the mixture materials.

Setup → Materials → Mixture → methane-air Edit...

The Create/Edit Materials dialog box will display the mixture material (methane-air) that was selected
in the Species Model dialog box. The properties for this mixture material have been copied from the
Fluent Database... and will be modified in the following steps.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 435
Modeling Species Transport and Gaseous Combustion

a. Click the Edit... button to the right of the Mixture Species drop-down list to open the Species dialog
box.

You can add or remove species from the mixture material as necessary using the Species dialog box.

i. Retain the default selections from the Selected Species selection list.

The species that make up the methane-air mixture are predefined and require no modification.

ii. Click OK to close the Species dialog box.

b. Click the Edit... button to the right of the Reaction drop-down list to open the Reactions dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
436 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

The eddy-dissipation reaction model ignores chemical kinetics (the Arrhenius rate) and uses only the
parameters in the Mixing Rate group box in the Reactions dialog box. The Arrhenius Rate group
box will therefore be inactive. The values for Rate Exponent and Arrhenius Rate parameters are
included in the database and are employed when the alternate finite-rate/eddy-dissipation model is
used.

i. Retain the default values in the Mixing Rate group box.

ii. Click OK to close the Reactions dialog box.

c. Retain the selection of incompressible-ideal-gas from the Density drop-down list.

d. Retain the selection of mixing-law from the Cp (Specific Heat) drop-down list.

e. Retain the default values for Thermal Conductivity, Viscosity, and Mass Diffusivity.

f. Click Change/Create to accept the material property settings.

g. Close the Create/Edit Materials dialog box.

The calculation will be performed assuming that all properties except density and specific heat are con-
stant. The use of constant transport properties (viscosity, thermal conductivity, and mass diffusivity
coefficients) is acceptable because the flow is fully turbulent. The molecular transport properties will play
a minor role compared to turbulent transport.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 437
Modeling Species Transport and Gaseous Combustion

12.5.6. Boundary Conditions

Setup → Boundary Conditions

1. Convert the symmetry zone to the axis type.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
438 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Setup → Boundary Conditions → symmetry-5

The symmetry zone must be converted to an axis to prevent numerical difficulties where the radius reduces
to zero.

a. Select axis from the Type drop-down list.

2. Set the boundary conditions for the air inlet (velocity-inlet-8).

Setup → Boundary Conditions → velocity-inlet-8 Edit...

To determine the zone for the air inlet, display the mesh without the fluid zone to see the boundaries.
Use the right mouse button to probe the air inlet. ANSYS Fluent will report the zone name (velocity-inlet-
8) in the console.

a. Enter air-inlet for Zone Name.

This name is more descriptive for the zone than velocity-inlet-8.

b. Enter 0.5 for Velocity Magnitude.

c. Select Intensity and Hydraulic Diameter from the Specification Method drop-down list in the Tur-
bulence group box.

d. Enter 10 for Turbulent Intensity.

e. Enter 0.44 for Hydraulic Diameter.

f. Click the Thermal tab and retain the default value of 300 for Temperature.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 439
Modeling Species Transport and Gaseous Combustion

g. Click the Species tab and enter 0.23 for o2 in the Species Mass Fractions group box.

h. Click OK to close the Velocity Inlet dialog box.

3. Set the boundary conditions for the fuel inlet (velocity-inlet-6).

Setup → Boundary Conditions → velocity-inlet-6 Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
440 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Enter fuel-inlet for Zone Name.

This name is more descriptive for the zone than velocity-inlet-6.

b. Enter 80 for the Velocity Magnitude.

c. Select Intensity and Hydraulic Diameter from the Specification Method drop-down list in the Tur-
bulence group box.

d. Enter 10 for Turbulent Intensity.

e. Enter 0.01 for Hydraulic Diameter.

f. Click the Thermal tab and retain the default value of 300 for Temperature.

g. Click the Species tab and enter 1 for ch4 in the Species Mass Fractions group box.

h. Click OK to close the Velocity Inlet dialog box.

4. Set the boundary conditions for the exit boundary (pressure-outlet-9).

Setup → Boundary Conditions → pressure-outlet-9 Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 441
Modeling Species Transport and Gaseous Combustion

a. Retain the default value of 0 for Gauge Pressure.

b. Select Intensity and Hydraulic Diameter from the Specification Method drop-down list in the Tur-
bulence group box.

c. Enter 10 for Backflow Turbulent Intensity.

d. Enter 0.45 for Backflow Hydraulic Diameter.

e. Click the Thermal tab and retain the default value of 300 for Backflow Total Temperature.

f. Click the Species tab and enter 0.23 for o2 in the Species Mass Fractions group box.

g. Click OK to close the Pressure Outlet dialog box.

The Backflow values in the Pressure Outlet dialog box are utilized only when backflow occurs at the
pressure outlet. Always assign reasonable values because backflow may occur during intermediate itera-
tions and could affect the solution stability.

5. Set the boundary conditions for the outer wall (wall-7).

Setup → Boundary Conditions → wall-7 Edit...

Use the mouse-probe method described for the air inlet to determine the zone corresponding to the
outer wall.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
442 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Enter outer-wall for Zone Name.

This name is more descriptive for the zone than wall-7.

b. Click the Thermal tab.

i. Select Temperature in the Thermal Conditions list.

ii. Retain the default value of 300 for Temperature.

c. Click OK to close the Wall dialog box.

6. Set the boundary conditions for the fuel inlet nozzle (wall-2).

Setup → Boundary Conditions → wall-2 Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 443
Modeling Species Transport and Gaseous Combustion

a. Enter nozzle for Zone Name.

This name is more descriptive for the zone than wall-2.

b. Click the Thermal tab.

i. Retain the default selection of Heat Flux in the Thermal Conditions list.

ii. Retain the default value of 0 for Heat Flux, so that the wall is adiabatic.

c. Click OK to close the Wall dialog box.

12.5.7. Initial Reaction Solution


You will first calculate a solution for the basic reacting flow neglecting pollutant formation. In a later step,
you will perform an additional analysis to simulate NOx.

1. Select the Coupled Pseudo Transient solution method.

Solving → Solution → Methods...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
444 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Select Coupled from the Scheme drop-down list in the Pressure-Velocity Coupling group box.

b. Retain the default selections in the Spatial Discretization group box.

c. Enable Pseudo Transient.

The Pseudo Transient option enables the pseudo transient algorithm in the coupled pressure-based
solver. This algorithm effectively adds an unsteady term to the solution equations in order to improve
stability and convergence behavior. Use of this option is recommended for general fluid flow problems.

2. Modify the solution controls.

Solving → Controls → Controls...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 445
Modeling Species Transport and Gaseous Combustion

a. Enter 0.25 under Density in the Pseudo Transient Explicit Relaxation Factors group box.

The default explicit relaxation parameters in ANSYS Fluent are appropriate for a wide range of general
fluid flow problems. However, in some cases it may be necessary to reduce the relaxation factors to
stabilize the solution. Some experimentation is typically necessary to establish the optimal values.
For this tutorial, it is sufficient to reduce the density explicit relaxation factor to 0.25 for stability.

b. Click Advanced... to open the Advanced Solution Controls dialog box and select the Expert tab.

The Expert tab in the Advanced Solution Controls dialog box allows you to individually specify the
solution method and Pseudo Transient Time Scale Factors for each equation, except for the flow
equations. When using the Pseudo Transient method for general reacting flow cases, increasing the
species and energy time scales is recommended.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
446 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

i. Enable the pseudo-transient method for ch4, o2, co2, h2o, and Energy in the Expert tab, by selecting
each one under On/Off.

ii. Enter 10 for the Time Scale Factor for ch4, o2, co2, h2o, and Energy.

iii. Click OK to close the Advanced Solution Controls dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 447
Modeling Species Transport and Gaseous Combustion

3. Ensure the plotting of residuals during the calculation.

Solving → Reports → Residuals...

a. Ensure that Plot is enabled in the Options group box.

b. Click OK to close the Residual Monitors dialog box.

4. Initialize the field variables.

Solving → Initialization

a. Retain the default Hybrid initialization method and click Initialize to initialize the variables.

5. Save the case file (gascomb1.cas.gz).

File → Write → Case...

a. Enter gascomb1.cas.gz for Case File.

b. Ensure that Write Binary Files is enabled to produce a smaller, unformatted binary file.

c. Click OK to close the Select File dialog box.

6. Run the calculation by requesting 200 iterations.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
448 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Solving → Run Calculation → Advanced...

a. Select Aggressive from the Length Scale Method drop-down list.

When using the Automatic Time Step Method ANSYS Fluent computes the Pseudo Transient time step
based on characteristic length and velocity scales of the problem. The Conservative Length Scale
Method uses the smaller of two computed length scales emphasizing solution stability. The Aggressive
Length Scale Method uses the larger of the two which may provide faster convergence in some cases.

b. Enter 5 for the Timescale Factor.

The Timescale Factor allows you to further manipulate the computed Time Step calculated by ANSYS
Fluent. Larger time steps can lead to faster convergence. However, if the time step is too large it can
lead to solution instability.

c. Enter 200 for Number of Iterations.

d. Click Calculate.

The solution will converge after approximately 160 iterations.

7. Save the case and data files (gascomb1.cas.gz and gascomb1.dat.gz).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 449
Modeling Species Transport and Gaseous Combustion

File → Write → Case & Data...

Note

If you choose a file name that already exists in the current folder, ANSYS Fluent will ask
you to confirm that the previous file is to be overwritten.

12.5.8. Postprocessing
Review the solution by examining graphical displays of the results and performing surface integrations at
the combustor exit.

1. Report the total sensible heat flux.

Postprocessing → Reports → Fluxes...

a. Select Total Sensible Heat Transfer Rate in the Options list.

b. Select all the boundaries from the Boundaries selection list (you can click the select-all button ( ).

c. Click Compute and close the Flux Reports dialog box.

Note

The energy balance is good because the net result is small compared to the heat of
reaction.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
450 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

2. Display filled contours of temperature (Figure 12.3: Contours of Temperature (p. 451)).

Postprocessing → Graphics → Contours → Edit...

a. Ensure that Filled is enabled in the Options group box.

b. Select Temperature... and Static Temperature in the Contours of drop-down lists.

c. Click Display.

Figure 12.3: Contours of Temperature

The peak temperature is approximately 2310 .

3. Display velocity vectors (Figure 12.4: Velocity Vectors (p. 453)).

Postprocessing → Graphics → Vectors → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 451
Modeling Species Transport and Gaseous Combustion

a. Enter 0.01 for Scale.

b. Click the Vector Options... button to open the Vector Options dialog box.

i. Enable Fixed Length.

The fixed length option is useful when the vector magnitude varies dramatically. With fixed length
vectors, the velocity magnitude is described only by color instead of by both vector length and
color.

ii. Click Apply and close the Vector Options dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
452 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

c. Click Display and close the Vectors dialog box.

The entrainment of air into the high-velocity methane jet is clearly visible.

Figure 12.4: Velocity Vectors

4. Display filled contours of mass fraction for (Figure 12.5: Contours of CH4 Mass Fraction (p. 454)).

Postprocessing → Graphics → Contours → Edit...

a. Select Species... and Mass fraction of ch4 from the Contours of drop-down lists.

b. Click Display.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 453
Modeling Species Transport and Gaseous Combustion

Figure 12.5: Contours of CH4 Mass Fraction

5. In a similar manner, display the contours of mass fraction for the remaining species , , and (Fig-
ure 12.6: Contours of O2 Mass Fraction (p. 455), Figure 12.7: Contours of CO2 Mass Fraction (p. 455), and
Figure 12.8: Contours of H2O Mass Fraction (p. 456)) Close the Contours dialog box when all of the species
have been displayed.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
454 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 12.6: Contours of O2 Mass Fraction

Figure 12.7: Contours of CO2 Mass Fraction

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 455
Modeling Species Transport and Gaseous Combustion

Figure 12.8: Contours of H2O Mass Fraction

6. Determine the average exit temperature.

Postprocessing → Reports → Surface Integrals...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
456 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Select Mass-Weighted Average from the Report Type drop-down list.

b. Select Temperature... and Static Temperature from the Field Variable drop-down lists.

The mass-averaged temperature will be computed as:

(12.2)

c. Select pressure-outlet-9 from the Surfaces selection list, so that the integration is performed over this
surface.

d. Click Compute.

The Mass-Weighted Average field will show that the exit temperature is approximately 1840 .

7. Determine the average exit velocity.

Postprocessing → Reports → Surface Integrals...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 457
Modeling Species Transport and Gaseous Combustion

a. Select Area-Weighted Average from the Report Type drop-down list.

b. Select Velocity... and Velocity Magnitude from the Field Variable drop-down lists.

The area-weighted velocity-magnitude average will be computed as:


(12.3)

c. Click Compute.

The Area-Weighted Average field will show that the exit velocity is approximately 3.30 .

d. Close the Surface Integrals dialog box.

12.5.9. NOx Prediction


In this section you will extend the ANSYS Fluent model to include the prediction of NOx. You will first calculate
the formation of both thermal and prompt NOx, then calculate each separately to determine the contribution
of each mechanism.

1. Enable the NOx model.

Setup → Models → Species → NOx Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
458 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Enable Thermal NOx and Prompt NOx in the Pathways group box.

b. Select ch4 from the Fuel Species selection list.

c. Click the Turbulence Interaction Mode tab.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 459
Modeling Species Transport and Gaseous Combustion

i. Select temperature from the PDF Mode drop-down list.

This will enable the turbulence-chemistry interaction. If turbulence interaction is not enabled, you
will be computing NOx formation without considering the important influence of turbulent fluc-
tuations on the time-averaged reaction rates.

ii. Retain the default selection of beta from the PDF Type drop-down list and enter 20 for PDF Points.

The value for PDF Points is increased from 10 to 20 to obtain a more accurate NOx prediction.

iii. Select transported from the Temperature Variance drop-down list.

d. Select partial-equilibrium from the [O] Model drop-down list in the Formation Model Parameters
group box in the Thermal tab.

The partial-equilibrium model is used to predict the O radical concentration required for thermal
NOx prediction.

e. Click the Prompt tab.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
460 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

i. Retain the default value of 1 for Fuel Carbon Number.

ii. Enter 0.76 for Equivalence Ratio.

All of the parameters in the Prompt tab are used in the calculation of prompt NOx formation.
The Fuel Carbon Number is the number of carbon atoms per molecule of fuel. The Equivalence
Ratio defines the fuel-air ratio (relative to stoichiometric conditions).

f. Click Apply to accept these changes and close the NOx Model dialog box.

2. Enable the calculation of NO species only and temperature variance.

Solving → Controls → Equations...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 461
Modeling Species Transport and Gaseous Combustion

a. Deselect all variables except Pollutant no and Temperature Variance from the Equations selection
list.

b. Click OK to close the Equations dialog box.

You will predict NOx formation in a “postprocessing” mode, with the flow field, temperature, and
hydrocarbon combustion species concentrations fixed. Hence, only the NO equation will be computed.
Prediction of NO in this mode is justified on the grounds that the NO concentrations are very low
and have negligible impact on the hydrocarbon combustion prediction.

3. Modify the solution controls for Pollutant no and Temperature Variance.

Solving → Controls → Controls...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
462 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Click Advanced... to open the Advanced Solution Controls dialog box.

i. In the Expert tab, enable the pseudo-transient method for Pollutant no and Temperature
Variance, by selecting them under On/Off.

ii. Enter 10 for Time Scale Factor for Pollutant no and Temperature Variance.

iii. Click OK to close the Advanced Solution Controls dialog box.

b. Enter 1 for Pollutant no and Temperature Variance in the Pseudo Transient Explicit Relaxation
Factors group box.

4. Confirm the convergence criterion for the NO species equation.

Solving → Reports → Residuals...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 463
Modeling Species Transport and Gaseous Combustion

a. Ensure that the Absolute Criteria for pollut_no is set to 1e-06.

b. Click OK to close the Residual Monitors dialog box.

5. Request 25 more iterations.

Solution → Run Calculation

The solution will converge in approximately 10 iterations.

6. Save the new case and data files (gascomb2.cas.gz and gascomb2.dat.gz).

File → Write → Case & Data...

7. Review the solution by creating and displaying a contour definition for NO mass fraction (Figure 12.9: Con-
tours of NO Mass Fraction — Prompt and Thermal NOx Formation (p. 465)).

Postprocessing → Graphics → Contours → New...

a. Enter contour-no-mass-fraction for Contour Name.

b. Disable Filled in the Options group box.

c. Select NOx... and Mass fraction of Pollutant no from the Contours of drop-down lists.

d. Click Save/Display and close the Contours dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
464 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 12.9: Contours of NO Mass Fraction — Prompt and Thermal NOx Formation

8. Calculate the average exit NO mass fraction.

Postprocessing → Reports → Surface Integrals...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 465
Modeling Species Transport and Gaseous Combustion

a. Select Mass-Weighted Average from the Report Type drop-down list.

b. Select NOx... and Mass fraction of Pollutant no from the Field Variable drop-down lists.

c. Ensure that pressure-outlet-9 is selected from the Surfaces selection list.

d. Click Compute.

The Mass-Weighted Average field will show that the exit NO mass fraction is approximately 0.00421.

e. Close the Surface Integrals dialog box.

9. Disable the prompt NOx mechanism in preparation for solving for thermal NOx only.

Setup → Models → Species → NOx Edit...

a. In the Formation tab, disable Prompt NOx.

b. Click Apply and close the NOx Model dialog box.

10. Request 25 iterations.

Solution → Run Calculation

The solution will converge in approximately 6 iterations.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
466 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

11. Review the thermal NOx solution by displaying the contour-no-mass-fraction contour definition for NO
mass fraction (under the Results/Graphics/Contours tree branch) you created earlier (Figure 12.10: Contours
of NO Mass Fraction—Thermal NOx Formation (p. 467)).

Results → Graphics → Contours → contour-no-mass-fraction Display

Figure 12.10: Contours of NO Mass Fraction—Thermal NOx Formation

Note that the concentration of NO is slightly lower without the prompt NOx mechanism.

12. Compute the average exit NO mass fraction with only thermal NOx formation.

Postprocessing → Reports → Surface Integrals...

Tip

Follow the same procedure you used earlier for the calculation with both thermal
and prompt NOx formation.

The Mass-Weighted Average field will show that the exit NO mass fraction with only thermal
NOx formation (without prompt NOx formation) is approximately 0.004174.

13. Solve for prompt NOx production only.

Setup → Models → Species → NOx Edit...

a. Disable Thermal NOx in the Pathways group box.

b. Enable Prompt NOx.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 467
Modeling Species Transport and Gaseous Combustion

c. Click Apply and close the NOx Model dialog box.

14. Request 25 iterations.

Solution → Run Calculation

The solution will converge in approximately 13 iterations.

15. Review the prompt NOx solution by displaying the contour-no-mass-fraction contour definition for NO
mass fraction (under the Results/Graphics/Contours tree branch) (Figure 12.11: Contours of NO Mass
Fraction—Prompt NOx Formation (p. 468)).

Results → Graphics → Contours → contour-no-mass-fraction Display

Figure 12.11: Contours of NO Mass Fraction—Prompt NOx Formation

The prompt NOx mechanism is most significant in fuel-rich flames. In this case the flame is lean and
prompt NO production is low.

16. Compute the average exit NO mass fraction only with prompt NOx formation.

Postprocessing → Reports → Surface Integrals...

Tip

Follow the same procedure you used earlier for the calculation with both thermal
and prompt NOx formation.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
468 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

The Mass-Weighted Average field will show that the exit NO mass fraction with only prompt
NOx formation is approximately 9.975e-05.

Note

The individual thermal and prompt NO mass fractions do not add up to the levels predicted
with the two models combined. This is because reversible reactions are involved. NO
produced in one reaction can be destroyed in another reaction.

17. Use a custom field function to compute NO parts per million (ppm).

The NOppm will be computed from the following equation:

(12.4)

Note

This is the dry ppm. Therefore, the value is normalized by removing the water mole
fraction in the denominator.

User Defined → Field Functions → Custom...

a. Select NOx... and Mole fraction of Pollutant no from the Field Functions drop-down lists, and click
the Select button to enter molef-pollut-pollutant-0 in the Definition field.

b. Click the appropriate calculator buttons to enter

*10ˆ6/(1-

in the Definition field, as shown in the previous dialog box.

Tip

If you make a mistake, click the DEL button on the calculator pad to delete the
last item you added to the function definition.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 469
Modeling Species Transport and Gaseous Combustion

For more explicit instructions on using the Custom Field Function calculator buttons, see Intro-
duction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 1).

c. Select Species... and Mole fraction of h2o from the Field Functions drop-down lists, and click the
Select button to enter molef-h2o in the Definition field.

d. Click the ) button to complete the field function.

e. Enter no-ppm for New Function Name.

f. Click Define to add the new field function to the variable list and close the Custom Field Function
Calculator dialog box.

18. Display contours of NO ppm (Figure 12.12: Contours of NO ppm — Prompt NOx Formation (p. 470)).

Postprocessing → Graphics → Contours → Edit...

a. Select Custom Field Functions... and no-ppm from the Contours of drop-down lists.

Scroll up the list to find Custom Field Functions....

b. Click Display and close the Contours dialog box.

Figure 12.12: Contours of NO ppm — Prompt NOx Formation

The contours closely resemble the mass fraction contours (Figure 12.11: Contours of NO Mass Frac-
tion—Prompt NOx Formation (p. 468)), as expected.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
470 of ANSYS, Inc. and its subsidiaries and affiliates.
Further Improvements

12.6. Summary
In this tutorial you used ANSYS Fluent to model the transport, mixing, and reaction of chemical species.
The reaction system was defined by using a mixture-material entry in the ANSYS Fluent database. The
procedures used here for simulation of hydrocarbon combustion can be applied to other reacting flow
systems.

The NOx production in this case was dominated by the thermal NO mechanism. This mechanism is very
sensitive to temperature. Every effort should be made to ensure that the temperature solution is not
overpredicted, since this will lead to unrealistically high predicted levels of NO.

12.7. Further Improvements


Further improvements can be expected by including the effects of intermediate species and radiation,
both of which will result in lower predicted combustion temperatures.

The single-step reaction process used in this tutorial cannot account for the moderating effects of inter-
mediate reaction products, such as CO and . Multiple-step reactions can be used to address these
species. If a multi-step Magnussen model is used, considerably more computational effort is required
to solve for the additional species. Where applicable, the nonpremixed combustion model can be used
to account for intermediate species at a reduced computational cost.

For more details on the nonpremixed combustion model, see the Fluent User's Guide.

Radiation heat transfer tends to make the temperature distribution more uniform, thereby lowering the
peak temperature. In addition, radiation heat transfer to the wall can be very significant (especially here,
with the wall temperature set at 300 ). The large influence of radiation can be anticipated by computing
the Boltzmann number for the flow:

where is the Boltzmann constant (5.729 ) and is the adiabatic flame temperature.
For a quick estimate, assume , , and (the majority of the
inflow is air). Assume . The resulting Boltzmann number is Bo = 1.09, which shows that
radiation is of approximately equal importance to convection for this problem.

For details on radiation modeling, see the Fluent User's Guide.

This tutorial guides you through the steps to reach an initial set of solutions. You may be able to obtain
a more accurate solution by using an appropriate higher-order discretization scheme and by adapting
the mesh. Mesh adaption can also ensure that the solution is independent of the mesh. These steps
are demonstrated in Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing El-
bow (p. 1).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 471
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
472 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 13: Using the Non-Premixed Combustion Model
This tutorial is divided into the following sections:
13.1. Introduction
13.2. Prerequisites
13.3. Problem Description
13.4. Setup and Solution
13.5. Summary
13.6. References
13.7. Further Improvements

13.1. Introduction
The goal of this tutorial is to accurately model the combustion processes in a 300 KW BERL combustor.
The reaction can be modeled using either the species transport model or the non-premixed combustion
model. In this tutorial you will set up and solve a natural gas combustion problem using the non-premixed
combustion model for the reaction chemistry.

This tutorial demonstrates how to do the following:

• Define inputs for modeling non-premixed combustion chemistry.

• Prepare the PDF table in ANSYS Fluent.

• Solve a natural gas combustion simulation problem.

• Use the Discrete Ordinates (DO) radiation model for combustion applications.

• Use the - turbulence model.

The non-premixed combustion model uses a modeling approach that solves transport equations for
one or two conserved scalars (mixture fractions). Multiple chemical species, including radicals and inter-
mediate species, may be included in the problem definition. Their concentrations will be derived from
the predicted mixture fraction distribution.

Property data for the species are accessed through a chemical database, and turbulence-chemistry in-
teraction is modeled using a -function for the PDF. For details on the non-premixed combustion
modeling approach, the Fluent User's Guide.

13.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorial Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 1)
found in this manual and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some
steps in the setup and solution procedure will not be shown explicitly.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 473
Using the Non-Premixed Combustion Model

13.3. Problem Description


The flow considered is an unstaged natural gas flame in a 300 kW swirl-stabilized burner. The furnace
is vertically-fired and of octagonal cross-section with a conical furnace hood and a cylindrical exhaust
duct. The furnace walls are capable of being refractory-lined or water-cooled. The burner features 24
radial fuel ports and a bluff centerbody. Air is introduced through an annular inlet and movable swirl
blocks are used to impart swirl. The combustor dimensions are described in Figure 13.1: Problem De-
scription (p. 474), and Figure 13.2: Close-Up of the Burner (p. 475) shows a close-up of the burner assuming
2D axisymmetry. The boundary condition profiles, velocity inlet boundary conditions of the gas, and
temperature boundary conditions are based on experimental data [1].

Figure 13.1: Problem Description

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
474 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 13.2: Close-Up of the Burner

13.4. Setup and Solution


The following sections describe the setup and solution steps for this tutorial:
13.4.1. Preparation
13.4.2. Reading and Checking the Mesh
13.4.3. Specifying Solver and Analysis Type
13.4.4. Specifying the Models
13.4.5. Defining Materials and Properties
13.4.6. Specifying Boundary Conditions
13.4.7. Specifying Operating Conditions
13.4.8. Obtaining Solution
13.4.9. Postprocessing
13.4.10. Energy Balances Reporting

13.4.1. Preparation
To prepare for running this tutorial:

1. Download the non_premix_combustion.zip file here.

2. Unzip mixing_plane.zip to your working directory.

3. The files, berl.msh and berl.prof, can be found in the folder.

4. Use Fluent Launcher to start the 2D version of ANSYS Fluent.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 475
Using the Non-Premixed Combustion Model

Fluent Launcher displays your Display Options preferences from the previous session.

5. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.

6. Enable Double-Precision.

For more information about Fluent Launcher, see starting ANSYS Fluent using the Fluent Launcher
in the Fluent Getting Started Guide.

7. Ensure that the Serial processing option is selected.

13.4.2. Reading and Checking the Mesh


1. Read the mesh file berl.msh.

File → Read → Mesh...

The ANSYS Fluent console will report that the mesh contains 9784 quadrilateral cells. A warning will be
generated informing you to consider making changes to the zone type, or to change the problem defin-
ition to axisymmetric. You will change the problem to axisymmetric swirl in Specifying Solver and Ana-
lysis Type (p. 479).

2. Check the mesh.

Setting Up Domain → Mesh → Check

ANSYS Fluent will perform various checks on the mesh and will report the progress in the console. Ensure
that the reported minimum volume is a positive number.

3. Scale the mesh.

Setting Up Domain → Mesh → Scale...

a. Select mm from the View Length Unit In drop-down list.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
476 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

All dimensions will now be shown in millimeters.

b. Select mm from the Mesh Was Created In drop-down list in the Scaling group box.

c. Click Scale and verify that the domain extents are as shown in the Scale Mesh dialog box.

d. Close the Scale Mesh dialog box.

e. Right click in the graphics window and select Refresh Display

f. Clicking the Fit to Window icon, , will cause the object to fit exactly and be centered in the window.

4. Check the mesh.

Setting Up Domain → Mesh → Check

Note

It is a good idea to check the mesh after you manipulate it (that is, scale, convert to
polyhedra, merge, separate, fuse, add zones, or smooth and swap.) This will ensure that
the quality of the mesh has not been compromised.

5. Examine the mesh (Figure 13.3: 2D BERL Combustor Mesh Display (p. 477)).

Figure 13.3: 2D BERL Combustor Mesh Display

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 477
Using the Non-Premixed Combustion Model

Due to the mesh resolution and the size of the domain, you may find it more useful to display just the
outline, or to zoom in on various portions of the mesh display.

Extra

You can use the mouse zoom button (middle button, by default) to zoom in to the display
and the mouse probe button (right button, by default) to find out the boundary zone
labels. The zone labels will be displayed in the console.

6. Mirror the display about the axis of symmetry.

Results → Graphics Views...

a. Select axis-2 from the Mirror Planes selection list.

b. Click Apply and close the Views dialog box.

The full geometry is displayed, as shown in Figure 13.4: 2D BERL Combustor Mesh Display Including the
Symmetry Plane (p. 479)

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
478 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 13.4: 2D BERL Combustor Mesh Display Including the Symmetry Plane

13.4.3. Specifying Solver and Analysis Type


1. Retain the default settings of pressure-based steady-state solver in the Solver group box.

Setup → General

The non-premixed combustion model is available only with the pressure-based solver.

2. Change the spatial definition to axisymmetric swirl by selecting Axisymmetric Swirl in the 2D Space list.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 479
Using the Non-Premixed Combustion Model

13.4.4. Specifying the Models


1. Enable the Energy Equation.

Setting Up Physics → Models → Energy

Since heat transfer occurs in the system considered here, you will have to solve the energy equation.

2. Select the standard k-epsilon turbulence model.

Setting Up Physics → Models → Viscous...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
480 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Select k-epsilon (2eqn) in the Model list.

For axisymmetric swirling flow, the RNG k-epsilon model can also be used, but for this case you will
retain the default Standard, k-epsilon model.

b. Retain the default Standard Wall Functions in the Near-Wall Treatment group box.

c. Click OK to accept all other default settings and close the Viscous Model dialog box.

3. Select the Discrete Ordinates (DO) radiation model.

The DO radiation model provides a high degree of accuracy, but it can be CPU intensive. In cases where
the computational expense of the DO model is deemed too great, the P1 model may provide an acceptable
solution more quickly.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 481
Using the Non-Premixed Combustion Model

For details on the different radiation models available in ANSYS Fluent, see the Fluent User's Guide.

Setting Up Physics → Models → Radiation...

a. Select Discrete Ordinates (DO) in the Model list.

The dialog box will expand to show related inputs.

b. Enter 1 for Energy Iterations per Radiation Iteration.

c. Click OK to accept all other default settings and close the Radiation Model dialog box.

The ANSYS Fluent console lists the properties that are required for the model you have enabled. An
Information dialog box opens, reminding you to confirm the property values.

d. Click OK to close the Information dialog box.

4. Select the Non-Premixed Combustion model.

Setting Up Physics → Models → Species...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
482 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Select Non-Premixed Combustion in the Model list.

The dialog box will expand to show the related inputs. You will use this dialog box to create the PDF
table.

When you use the non-premixed combustion model, you need to create a PDF table. This table contains
information on the thermo-chemistry and its interaction with turbulence. ANSYS Fluent interpolates
the PDF during the solution of the non-premixed combustion model.

b. Enable Inlet Diffusion in the PDF Options group box.

The Inlet Diffusion option enables the mixture fraction to diffuse out of the domain through inlets
and outlets.

c. Define chemistry models.

i. Retain the default selection of the Chemical Equilibrium state relation and the Non-Adiabatic
energy treatment.

In most non-premixed combustion simulations, the Chemical Equilibrium model is recommended.


The Steady Diffusion Flamelet option can model local chemical non-equilibrium due to turbulent
strain.

ii. Retain the default value for Operating Pressure.

iii. Enter 0.064 for Fuel Stream Rich Flammability Limit.

The Fuel Stream Rich Flammability Limit enables you to perform a “partial equilibrium” calcu-
lation, suspending equilibrium calculations when the mixture fraction exceeds the specified rich
limit. This increases the efficiency of the PDF calculation, allowing you to bypass the complex
equilibrium calculations in the fuel-rich region. This is also more physically realistic than the as-
sumption of full equilibrium.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 483
Using the Non-Premixed Combustion Model

For combustion cases, a value 10% – 50% larger than the stoichiometric mixture fraction can be
used for the rich flammability limit of the fuel stream. In this case, the stoichiometric fraction is
0.058, therefore a value that is 10% greater is 0.064.

d. Click the Boundary tab to add and define the boundary species.

i. Enter c2h6 in the Boundary Species text-entry field and click Add.

The c2h6 species appears at the bottom of the table.

ii. Similarly, add c3h8, c4h10, and co2.

All the added species will appear in the table.

iii. Select Mole Fraction in the Specify Species in list.

iv. Retain the default values for n2 and o2 for Oxid.

The oxidizer (air) consists of 21% and 79% by volume.

v. Specify the fuel composition by entering the following values for Fuel:

The fuel composition is entered in mole fractions of the species, c2h6, c3h8, c4h10, and co2.

Species Mole Fraction


ch4 0.965
n2 0.013
c2h6 0.017
c3h8 0.001
c4h10 0.001

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
484 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Species Mole Fraction


co2 0.003

Tip

Scroll down to see all the species.

Note

All boundary species with a mass or mole fraction of zero will be ignored.

vi. Enter 315 K for Fuel and Oxid in the Temperature group box.

e. Click the Control tab and retain default species to be excluded from the equilibrium calculation.

f. Click the Table tab to specify the table parameters and calculate the PDF table.

i. Ensure that Automated Grid Refinement is enabled.

ii. Retain the default values for all the parameters in the Table Parameters group box.

The maximum number of species determines the number of most preponderant species to consider
after the equilibrium calculation is performed.

iii. Click Calculate PDF Table to compute the non-adiabatic PDF table.

iv. Click the Display PDF Table... button.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 485
Using the Non-Premixed Combustion Model

A. In the PDF Table dialog box, retain the default parameters and click Display (Figure 13.5: Non-
Adiabatic Temperature Look-Up Table on the Adiabatic Enthalpy Slice (p. 486)).

B. Close the PDF Table dialog box.

Figure 13.5: Non-Adiabatic Temperature Look-Up Table on the Adiabatic Enthalpy Slice

The 3D look-up tables are reviewed on a slice-by-slice basis. By default, the slice selected corresponds
to the adiabatic enthalpy values. You can also select other slices of constant enthalpy for display.

The maximum and minimum values for mean temperature and the corresponding mean mixture
fraction is also reported in the console. The maximum mean temperature is reported as 2246 K at a
mean mixture fraction of 0.058.

g. Save the PDF output file (berl.pdf).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
486 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

File → Write → PDF...

i. Retain berl.pdf for PDF File name.

ii. Click OK to write the file.

By default, the file will be saved as formatted (ASCII, or text). To save a binary (unformatted) file,
enable the Write Binary Files option in the Select File dialog box.

h. Click OK to close the Species Model dialog box.

13.4.5. Defining Materials and Properties


1. Specify the continuous phase (pdf-mixture) material.

Setup → Materials → pdf-mixture → Create/Edit...

All thermodynamic data for the continuous phase, including density, specific heat, and formation enthal-
pies are extracted from the chemical database when the non-premixed combustion model is used. These
properties are transferred to the pdf-mixture material, for which only transport properties, such as vis-
cosity and thermal conductivity, need to be defined. The Density and Cp (Specific Heat) laws cannot
be altered: these properties are stored in the non-premixed combustion look-up tables.

Under Properties, you can click the View... button next to Mixture Species to view the species included
in the pdf-mixture material. These are the species included during the system chemistry setup.

a. Under Properties, from the Absorption Coefficient drop-down list, select wsggm-domain-based.

Tip

Scroll down to view the Absorption Coefficient option.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 487
Using the Non-Premixed Combustion Model

This specifies a composition-dependent absorption coefficient, using the weighted-sum-of-gray-gases


model. WSGGM-domain-based is a variable coefficient that uses a length scale, based on the geometry
of the model.

For more details, see radiation in combusting flows in the Fluent Theory Guide.

b. Click Change/Create and close the Create/Edit Materials dialog box.

ANSYS Fluent uses the gas law to compute the mixture density and a mass-weighted mixing law to
compute the mixture . When the non-premixed combustion model is used, do not alter the properties
of the individual species. This will create an inconsistency with the PDF look-up table.

13.4.6. Specifying Boundary Conditions


1. Read the boundary conditions profile file.

File → Read → Profile...

a. Select berl.prof from the Select File dialog box.

b. Click OK.

The CFD solution for reacting flows can be sensitive to the boundary conditions, in particular the incoming
velocity field and the heat transfer through the walls. Here, you will use profiles to specify the velocity at
air-inlet-4, and the wall temperature for wall-9. The latter approach of fixing the wall temperature to
measurements is common in furnace simulations, to avoid modeling the wall convective and radiative
heat transfer. The data used for the boundary conditions was obtained from experimental data [1].

2. Set the boundary conditions for the pressure outlet (poutlet-3).

Setup → Boundary Conditions → poutlet-3 → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
488 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. In the Turbulence group, from the Specification Method drop-down list, select Intensity and Hydraulic
Diameter.

b. Retain 5% for Backflow Turbulent Intensity.

c. Enter 600 mm for Backflow Hydraulic Diameter.

d. Click the Thermal tab and enter 1300 K for Backflow Total Temperature.

e. Click OK to close the Pressure Outlet dialog box.

The exit gauge pressure of zero defines the system pressure at the exit to be the operating pressure. The
backflow conditions for scalars (temperature, mixture fraction, turbulence parameters) will be used only
if flow is entrained into the domain through the exit. It is a good idea to use reasonable values in case
flow reversal occurs at the exit at some point during the solution process.

3. Set the boundary conditions for the velocity inlet (air-inlet-4).

Setup → Boundary Conditions → air-inlet-4 → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 489
Using the Non-Premixed Combustion Model

a. From the Velocity Specification Method drop-down list, select Components.

b. From the Axial-Velocity drop-down list, select vel-prof u.

c. From the Swirl-Velocity drop-down list, select vel-prof w.

d. In the Turbulence group, from the Specification Method drop-down list, select Intensity and Hydraulic
Diameter.

e. Enter 17% for Turbulent Intensity.

f. Enter 29 mm for Hydraulic Diameter.

Turbulence parameters are defined based on intensity and length scale. The relatively large turbulence
intensity of 17% may be typical for combustion air flows.

g. Click the Thermal tab and enter 312 K for Temperature.

h. Click the Species tab. For the non-premixed combustion calculation, you have to define the inlet Mean
Mixture Fraction and Mixture Fraction Variance. In this case, the gas phase air inlet has a zero mixture
fraction. Therefore, you can retain the zero default settings.

i. Click OK to close the Velocity Inlet dialog box.

4. Set the boundary conditions for the velocity inlet (fuel-inlet-5).

Setup → Boundary Conditions → fuel-inlet-5 → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
490 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. From the Velocity Specification Method drop-down list, select Components.

b. Enter 157.25 m/s for Radial-Velocity.

c. In the Turbulence group, from the Specification Method drop-down list, select Intensity and Hydraulic
Diameter.

d. Retain 5% for Turbulent Intensity.

e. Enter 1.8 mm for Hydraulic Diameter.

The hydraulic diameter has been set to twice the height of the 2D inlet stream.

f. Click the Thermal tab and enter 308 K for Temperature.

g. Click the Species tab and enter 1 for Mean Mixture Fraction for the fuel inlet.

h. Click OK to close the Velocity Inlet dialog box.

5. Set the boundary conditions for wall-6.

Setup → Boundary Conditions → wall-6 → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 491
Using the Non-Premixed Combustion Model

a. Click the Thermal tab.

i. In the Thermal Conditions list, select Temperature.

ii. Enter 1370 K for Temperature.

iii. Enter 0.5 for Internal Emissivity.

b. Click OK to close the Wall dialog box.

6. Similarly, set the boundary conditions for wall-7 through wall-13 using the following values:

Zone Name Temperature Internal Emissivity


wall-7 312 0.5
wall-8 1305 0.5
wall-9 temp-prof t (from the drop-down list) 0.5
wall-10 1100 0.5
wall-11 1273 0.5
wall-12 1173 0.5
wall-13 1173 0.5

7. Plot the profile of temperature for the wall furnace (wall-9).

Postprocessing → Plots → Profile Data...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
492 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. From the Profile selection list, select temp-prof.

b. Retain the selection of t and x from the Y Axis Function and X Axis Function selection lists, respectively.

c. Click Plot (Figure 13.6: Profile Plot of Temperature for wall-9 (p. 493)).

Figure 13.6: Profile Plot of Temperature for wall-9

8. Plot the profiles of velocity for the swirling air inlet (air-inlet-4).

a. Plot the profile of axial-velocity for the swirling air inlet.

Postprocessing → Plots → Profile Data...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 493
Using the Non-Premixed Combustion Model

i. From the Profile selection list, select vel-prof.

ii. From the Y Axis Function selection list, retain the selection of u.

iii. From the X Axis Function selection list, select y.

iv. Click Plot (Figure 13.7: Profile Plot of Axial-Velocity for the Swirling Air Inlet (air-inlet-4) (p. 494)).

Figure 13.7: Profile Plot of Axial-Velocity for the Swirling Air Inlet (air-inlet-4)

b. Plot the profile of swirl-velocity for swirling air inlet.

Postprocessing → Plots → Profile Data...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
494 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

i. From the Profile selection list, retain the selection of vel-prof.

ii. From the Y Axis Function selection list, select w.

iii. From the X Axis Function selection list, retain the selection of y.

iv. Click Plot (Figure 13.8: Profile Plot of Swirl-Velocity for the Swirling Air Inlet (air-inlet-4) (p. 495)) and
close the Plot Profile Data dialog box.

Figure 13.8: Profile Plot of Swirl-Velocity for the Swirling Air Inlet (air-inlet-4)

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 495
Using the Non-Premixed Combustion Model

13.4.7. Specifying Operating Conditions


1. Retain the default operating conditions.

Setup → Boundary Conditions → Operating Conditions...

The Operating Pressure was already set in the PDF table generation in Specifying the Models (p. 480).

13.4.8. Obtaining Solution


1. Set the solution parameters.

Solving → Solution → Methods...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
496 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. In the Pressure-Velocity Coupling group, from the Scheme drop-down list, select Coupled.

b. In the Spatial Discretization group, from the Pressure drop-down list, select PRESTO!.

c. Retain the other default selections and settings.

2. Set the solution controls.

Solving → Controls → Controls...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 497
Using the Non-Premixed Combustion Model

a. Enter 70 for Flow Courant Number.

b. Set the following parameters in the Under-Relaxation Factors group box:

Under-Relaxation Factor Value


Density 0.2
Body Forces 0.8
Mean Mixture Fraction 0.99

The default under-relaxation factors are considered to be too aggressive for reacting flow cases with
high swirl velocity.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
498 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

3. Enable the display of residuals during the solution process.

Solving → Reports → Residuals...

a. Ensure that the Plot is enabled in the Options group box.

b. Click OK to close the Residual Monitors dialog box.

4. Initialize the flow field.

Solving → Initialization

a. Retain the Method at the default of Hybrid in the Initialization group.

b. Click Initialize.

5. Save the case file (berl-1.cas.gz).

File → Write → Case...

6. Start the calculation by requesting 1500 iterations.

Solving → Run Calculation →

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 499
Using the Non-Premixed Combustion Model

The solution will converge in approximately 1060 iterations.

7. Save the converged solution (berl-1.dat.gz).

File → Write → Data...

13.4.9. Postprocessing
1. Display the predicted temperature field (Figure 13.9: Temperature Contours (p. 501)).

Postprocessing → Graphics → Contours → Edit...

a. Enable Filled in the Options group box.

b. Select Temperature... and Static Temperature from the Contours of drop-down lists.

c. Click Display.

The peak temperature in the system is 1981 K.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
500 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 13.9: Temperature Contours

2. Display contours of velocity (Figure 13.10: Velocity Contours (p. 502)).

Postprocessing → Graphics → Contours → Edit...

a. Select Velocity... and Velocity Magnitude from the Contours of drop-down lists.

b. Click Display.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 501
Using the Non-Premixed Combustion Model

Figure 13.10: Velocity Contours

3. Display the contours of mass fraction of O2 (Figure 13.11: Contours of Mass Fraction of o2 (p. 503)).

Postprocessing → Graphics → Contours → Edit...

a. Select Species... and Mass fraction of o2 from the Contours of drop-down lists.

b. Click Display and close the Contours dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
502 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 13.11: Contours of Mass Fraction of o2

13.4.10. Energy Balances Reporting


ANSYS Fluent can report the overall energy balance and details of the heat and mass transfer.

1. Compute the gas phase mass fluxes through the domain boundaries.

Postprocessing → Reports → Fluxes...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 503
Using the Non-Premixed Combustion Model

a. Retain the default selection of Mass Flow Rate in the Options group box.

b. Select air-inlet-4, fuel-inlet-5, and poutlet-3 from the Boundaries selection list.

c. Click Compute.

The net mass imbalance should be a small fraction of the total flux through the system. If a significant
imbalance occurs, you should decrease your residual tolerances by at least an order of magnitude and
continue iterating.

2. Compute the fluxes of heat through the domain boundaries.

Postprocessing → Reports → Fluxes...

a. Select Total Heat Transfer Rate in the Options group box.

b. Select all the zones from the Boundaries selection list.

c. Click Compute, examine the resulting values, and close the Flux Reports dialog box.

The value will be displayed in the console. Positive flux reports indicate heat addition to the domain.
Negative values indicate heat leaving the domain. Again, the net heat imbalance should be a small
fraction (for example, 0.5% or less) of the total energy flux through the system. The reported value
may change for different runs.

3. Compute the mass weighted average of the temperature at the pressure outlet.

Postprocessing → Reports → Surface Integrals...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
504 of ANSYS, Inc. and its subsidiaries and affiliates.
Further Improvements

a. Select Mass-Weighted Average from the Report Type drop-down list.

b. Select Temperature... and Static Temperature from the Field Variable drop-down lists.

c. Select poutlet-3 from the Surfaces selection list.

d. Click Compute.

A value of approximately 1464 K will be displayed in the console.

e. Close the Surface Integrals dialog box.

13.5. Summary
In this tutorial you learned how to use the non-premixed combustion model to represent the gas phase
combustion chemistry. In this approach the fuel composition was defined and assumed to react according
to the equilibrium system data. This equilibrium chemistry model can be applied to other turbulent,
diffusion-reaction systems. You can also model gas combustion using the finite-rate chemistry model.

You also learned how to set up and solve a gas phase combustion problem using the Discrete Ordinates
radiation model, and applying the appropriate absorption coefficient.

13.6. References
1. A. Sayre, N. Lallement, J. Dugu, and R. Weber “Scaling Characteristics of Aerodynamics and Low-NOx
Properties of Industrial Natural Gas Burners”, The SCALING 400 Study, Part IV: The 300 KW BERL Test Results,
IFRF Doc No F40/y/11, International Flame Research Foundation, The Netherlands.

13.7. Further Improvements


This tutorial guides you through the steps to first generate an initial solution, and then to reach a more
accurate second-order solution. You may be able to increase the accuracy of the solution even further
by using an appropriate higher-order discretization scheme and by adapting the mesh. Mesh adaption
can also ensure that your solution is independent of the mesh. These steps are demonstrated in Intro-
duction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 1).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 505
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
506 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 14: Modeling Surface Chemistry
This tutorial is divided into the following sections:
14.1. Introduction
14.2. Prerequisites
14.3. Problem Description
14.4. Setup and Solution
14.5. Summary
14.6. Further Improvements

14.1. Introduction
In chemically reacting laminar flows, such as those encountered in chemical vapor deposition (CVD)
applications, accurate modeling of time-dependent hydrodynamics, heat and mass transfer, and
chemical reactions (including wall surface reactions) is important.

In this tutorial, surface reactions are considered. Modeling the reactions taking place at gas-solid interfaces
is complex and involves several elementary physicochemical processes like adsorption of gas-phase
species on the surface, chemical reactions occurring on the surface, and desorption of gases from the
surface back to the gas phase.

This tutorial demonstrates how to do the following:

• Create new materials and set the mixture properties.

• Model surface reactions involving site species.

• Enable physical models and define boundary conditions for a chemically reacting laminar flow involving
wall surface reactions.

• Calculate the deposition solution using the pressure-based solver.

• Examine the flow results using graphics.

14.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorial Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 1)
found in this manual and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some
steps in the setup and solution procedure will not be shown explicitly.

Before beginning with this tutorial, see the Fluent User's Guide for more information about species
transport, chemically reacting flows, wall surface reaction modeling, and chemical vapor deposition. In
particular, you should be familiar with the Arrhenius rate equation, as this equation is used for the
surface reactions modeled in this tutorial.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 507
Modeling Surface Chemistry

14.3. Problem Description


A rotating disk CVD reactor for the growth of Gallium Arsenide (GaAs) shown in Figure 14.1: Schematic
of the Reactor Configuration (p. 508) will be modeled.

Figure 14.1: Schematic of the Reactor Configuration

The process gases, Trimethyl Gallium ( ) and Arsine ( ) enter the reactor at 293 K through
the inlet at the top. These gases flow over the hot, spinning disk depositing thin layers of gallium and
arsenide on it in a uniform, repeatable manner. The disk rotation generates a radially pumping effect,
which forces the gases to flow in a laminar manner down to the growth surface, outward across the
disk, and finally to be discharged from the reactor.

The semiconductor materials Ga(s) and As(s) are deposited on the heated surface governed by the fol-
lowing surface reactions.
(14.1)
(14.2)

The inlet gas is a mixture of Trimethyl Gallium, which has a mass fraction of 0.15, and Arsine, which has
a mass fraction of 0.4, the remainder is hydrogen. The mixture velocity at the inlet is 0.02189 m/s. The
disk rotates at 80 rad/sec. The top wall (wall-1) is heated to 473 K and the sidewalls (wall-2) of the reactor
are maintained at 343 K. The susceptor (wall-4) is heated to a uniform temperature of 1023 K and the
bottom wall (wall-6) is at 303 K. These CVD reactors are typically known as cold-wall reactors, where
only the wafer surface is heated to higher temperatures, while the remaining reactor walls are maintained
at low temperatures.

In this tutorial, simultaneous deposition of Ga and As is simulated and examined. The mixture properties
and the mass diffusivity are determined based on kinetic theory. Detailed surface reactions with multiple

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
508 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

sites and site species, and full multi-component/thermal diffusion effects are also included in the simu-
lation.

The purpose of this tutorial is to demonstrate surface reaction capabilities in ANSYS Fluent. Convective
heat transfer is considered to be the dominant mechanism compared to radiative heat transfer, thus
radiation effects are ignored.

14.4. Setup and Solution


The following sections describe the setup and solution steps for this tutorial:
14.4.1. Preparation
14.4.2. Reading and Checking the Mesh
14.4.3. Solver and Analysis Type
14.4.4. Specifying the Models
14.4.5. Defining Materials and Properties
14.4.6. Specifying Boundary Conditions
14.4.7. Setting the Operating Conditions
14.4.8. Simulating Non-Reacting Flow
14.4.9. Simulating Reacting Flow
14.4.10. Postprocessing the Solution Results

14.4.1. Preparation
To prepare for running this tutorial:

1. Download the surface_chem.zip file here.

2. Unzip surface_chem.zip to your working directory.

3. The file surface.msh can be found in the folder.

4. Use Fluent Launcher to start the 3D version of ANSYS Fluent.

Fluent Launcher displays your Display Options preferences from the previous session.

For more information about the Fluent Launcher, see starting ANSYS Fluent using the Fluent
Launcher in the Fluent Getting Started Guide.

5. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.

6. Ensure that the Serial processing option is selected.

7. Enable Double Precision.

14.4.2. Reading and Checking the Mesh


1. Read in the mesh file surface.msh.

File → Read → Mesh...

2. Check the mesh.

Setting Up Domain → Mesh → Check

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 509
Modeling Surface Chemistry

ANSYS Fluent will perform various checks on the mesh and will report the progress in the console. Ensure
that the reported minimum volume is a positive number.

3. Scale the mesh.

Setting Up Domain → Mesh → Scale...

Scale the mesh to meters as it was created in centimeters.

a. Select cm (centimeters) from the Mesh Was Created In drop-down list in the Scaling group box.

b. Click Scale and verify that the domain extents are as shown in the Scale Mesh dialog box.

The default SI units will be used in this tutorial, hence there is no need to change any units.

c. Close the Scale Mesh dialog box.

d. Re-display the mesh

e. Click the Fit to Window icon, .

4. Check the mesh.

Setting Up Domain → Mesh → Check

Note

It is a good practice to check the mesh after manipulating it (scale, convert to polyhedra,
merge, separate, fuse, add zones, or smooth and swap). This will ensure that the quality
of the mesh has not been compromised.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
510 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

5. Examine the mesh (Figure 14.2: Mesh Display (p. 511)).

Figure 14.2: Mesh Display

Extra

You can use the left mouse button to rotate the image and view it from different angles.
Use the right mouse button to check which zone number corresponds to each boundary.
If you click the right mouse button on one of the boundaries in the graphics window, its
name and type will be printed in the ANSYS Fluent console. This feature is especially
useful when you have several zones of the same type and you want to distinguish between
them quickly. Use the middle mouse button to zoom the image.

14.4.3. Solver and Analysis Type


Retain the default solver settings of pressure-based steady-state solver in the Setting Up Physics tab
(Solver group).

Setting Up Physics → Solver

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 511
Modeling Surface Chemistry

14.4.4. Specifying the Models


In this problem, the energy equation and the species conservation equations will be solved, along with the
momentum and continuity equations.

1. Enable heat transfer by turning on the energy equation.

Setting Up Physics → Models → Energy

2. Enable chemical species transport.

Setting Up Physics → Models → Species...

a. Select Species Transport in the Model list.

The Species Model dialog box will expand to show relevant input options.

b. Retain the selection of mixture-template from the Mixture Material drop-down list.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
512 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

You will modify the mixture material later in this tutorial.

c. Retain the default setting for Diffusion Energy Source.

This includes the effect of enthalpy transport due to species diffusion in the energy equation, which
contributes to the energy balance, especially for the case of Lewis numbers far from unity.

d. Enable Full Multicomponent Diffusion and Thermal Diffusion.

The Full Multicomponent Diffusion activates Stefan-Maxwell’s equations and computes the diffusive
fluxes of all species in the mixture to all concentration gradients. The Thermal Diffusion effects cause
heavy molecules to diffuse less rapidly, and light molecules to diffuse more rapidly, toward heated
surfaces.

e. Click OK to close the Species Model dialog box.

14.4.5. Defining Materials and Properties


In the following steps you will copy the gas-phase species (AsH3 , Ga(CH3)3 , CH3 , and H2 ) from the ANSYS
Fluent database, specify the mixture materials, setup the reactions, and modify the material properties. You
will also create the site species (Ga_s and As_s) and the solid species (Ga and As).

1. Copy arsenic-trihydride, hydrogen, methyl-radical, and trimethyl-gallium from the ANSYS Fluent material
database to the list of fluid materials and modify their properties.

Setup → Materials → Fluid → air Edit...

a. Click Fluent Database... in the Create/Edit Materials dialog box to open the Fluent Database Mater-
ials dialog box.

b. In the Fluent Database Materials dialog box, select fluid from the Material Type drop-down list.

c. From the Fluent Fluid Materials selection list, select arsenic-trihydride (ash3), hydrogen (h2), methyl-
radical (ch3), and trimethyl-gallium (game3) by clicking each species once.

Scroll down the Fluent Fluid Materials list to locate each species.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 513
Modeling Surface Chemistry

d. Click Copy to copy the selected species to your model.

e. Click Close to close the Fluent Database Materials dialog box.

2. Create the site species (Ga_s and As_s) and the solid species (Ga and As).

a. In the Create/Edit Materials dialog box, select air from the Fluent Fluid Materials drop-down list.

b. Enter ga_s for the Name text entry field.

c. Enter ga_s for the Chemical Formula text entry field.

d. Click Change/Create to create the new material.

e. Click No in the Question dialog box when asked if you want to overwrite air.

The new material ga_s is added to your model and listed under Fluid in the Materials task page
and under the Setup/Materials/Fluid tree branch.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
514 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

f. Create as_a,ga, as following the same procedure as for ga_s and close the Create/Edit Materials
dialog box.

Extra

To enter complex formulae such as Ga(CH3)3 in the text entry box, use ‘<’ and ‘>’ instead
of ‘(’ and ‘ )’, respectively.

3. Set the mixture species.

Setup → Materials → Mixture → mixture-template Edit...

a. Enter gaas_deposition for Name.

b. Click Change/Create.

c. Click Yes in the Question dialog box to overwrite the mixture-template.

d. Set the Selected Species.

i. In Properties group box, click the Edit... button to the right of the names drop-down list for Mixture
Species to open the Species dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 515
Modeling Surface Chemistry

ii. Set the Selected Species from the Available Materials selection list as shown in Table 14.1: Selected
Species (p. 516) .

Table 14.1: Selected Species

Selected Species
ash3
game3
ch3
h2

Important

• Add arsenic-trihydride (ash3), trimethyl-gallium (game3), methyl-radical (ch3),


and hydrogen (h2) to the Selected Species list before removing h2o, o2, and n2.

• Ensure that h2 is at the bottom in the Selected Species selection list as shown in
Table 14.1: Selected Species (p. 516). ANSYS Fluent will interpret the last species in the
list as the bulk species.

Note

To add/remove the species:

• To add a particular species to the list, select the required species from the Available
Materials selection list and click Add in the corresponding species selection list (Se-
lected Species, Selected Site Species, or Selected Solid Species). The species will
be added to the end of the relevant list and removed from the Available Materials
list.

• To remove an unwanted species from the selection list, select the species from the
selection list (Selected Species, Selected Site Species, or Selected Solid Species)
and click Remove in the corresponding selection list. The species will be removed
from the list and added to the Available Materials list.

iii. Click OK to close the Species dialog box.

iv. Click Change/Create and close the Creat/Edit Materials dialog box.

4. Enable chemical species transport reaction.

Setting Up Physics → Models → Species...

Although you enable reactions, you still run a non-reacting flow to produce an initial solution. You will
run a reacting flow in Simulating Reacting Flow (p. 534).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
516 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Enable Volumetric and Wall Surface in the Reactions group box.

b. Retain the selection of gas_deposition from the Mixture Material drop-down list.

c. Disable Heat of Surface Reactions and enable Mass Deposition Source.

d. Click OK to close the Species Model dialog box.

5. Set the site and solid species and the mixture reactions in a similar manner to the mixture species.

Setup → Materials → Mixture → gaas_deposition Edit...

a. Click the Edit... button to the right of the names drop-down list for Mixture Species in the Properties
group box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 517
Modeling Surface Chemistry

Specify the Selected Site Species and the Selected Solid Species as shown in Table 14.2: Selected
Site and Solid Species (p. 518).

Table 14.2: Selected Site and Solid Species

Selected Site Species Selected Solid Species


ga_s ga
as_s as

Once you set the site and solid species, the Species dialog box should look like this:

b. Click OK to close the Species dialog box.

c. Click the Edit... button to the right of the Reaction drop-down list to open the Reactions dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
518 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

d. Increase the Total Number of Reactions to 2, and define the following reactions using the parameters
in Table 14.3: Reaction Parameters (p. 519) :
(14.3)
(14.4)

Table 14.3: Reaction Parameters

Parameter For Equation 14.3 (p. 519) For Equation 14.4 (p. 519)
Reaction ID 1 2 a

Reaction Name gallium-dep arsenic-dep


Reaction Type Wall Surface Wall Surface
Number of Reactants 2 2
Species ash3, ga_s game3, as_s
Stoich. Coefficient ash3= 1, ga_s= 1 game3= 1, as_s= 1
Rate Exponent ash3= 1, ga_s= 1 game3= 1, as_s= 1
Arrhenius Rate PEF= 1e+06, AE= 0, TE= 0.5 b PEF= 1e+12, AE= 0, TE= 0.5
Number of Products 3 3
Species ga, as_s, h2 as, ga_s, ch3

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 519
Modeling Surface Chemistry

Parameter For Equation 14.3 (p. 519) For Equation 14.4 (p. 519)
Stoich. Coefficient ga= 1, as_s= 1, h2= 1.5 as= 1, ga_s= 1, ch3= 3
Rate Exponent as_s= 0, h2= 0 ga_s= 0, ch3= 0
a
Set the ID to 2 in order to set the parameters for the second reaction.
b
Here, PEF = Pre-Exponential Factor, AE = Activation Energy, and TE = Temperature Exponent.

e. Click OK to save the data and close the Reactions dialog box.

f. Set the reaction mechanisms for the mixture.

i. Click the Edit... button to the right of the Mechanism drop-down list to open the Reaction Mech-
anisms dialog box.

ii. Retain Number of Mechanisms as 1.

iii. Enter gaas-ald for Name.

iv. Select Wall Surface in the Reaction Type group box.

v. Select gallium-dep and arsenic-dep from the Reactions selection list.

vi. Set Number of Sites to 1.

vii. Enter 1e-08 kgmol/m2 for Site Density for site-1.

viii.Click the Define... button to the right of site-1 to open the Site Parameters dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
520 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

A. Set Total Number of Site Species to 2.

B. Select ga_s as the first site species and enter 0.7 for Initial Site Coverage.

C. Select as_s as the second site species and enter 0.3 for Initial Site Coverage.

D. Click Apply and close the Site Parameters dialog box.

ix. Click OK to close the Reaction Mechanisms dialog box.

g. Retain the default selection of incompressible-ideal-gas from the Density drop-down list.

h. Retain the default selection of mixing-law from the Cp (Specific Heat) drop-down list.

i. Select mass-weighted-mixing-law from the Thermal Conductivity drop-down list.

j. Select mass-weighted-mixing-law from the Viscosity drop-down list.

k. Retain the default selection of kinetic-theory from the Mass Diffusivity drop-down list.

l. Retain the default selection of kinetic-theory from the Thermal Diffusion Coefficient drop-down list.

m. Click Change/Create and close the Create/Edit Materials dialog box.

6. Specify the material properties for arsenic-trihydride, hydrogen, methyl-radical, trimethyl-gallium, site
species (Ga_s and As_s), and solid species (Ga and As).

Setup → Materials → Mixture → gaas_deposition → arsenic-trihydride Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 521
Modeling Surface Chemistry

a. In the Properties group box, modify the arsenic-trihydride properties as shown in Table 14.4: Properties
of Species (p. 522).

Important

Ensure Mixture is set to gaas_deposition

Tip

Scroll down in the Properties group box to see all the parameters.

Table 14.4: Properties of Species

Parameter AsH_3 Ga(CH_3)_3 CH_3 H_2


Name arsenic-tri- trimethyl- methyl-radic- hydrogen
hydride gallium al
Chemical Formula ash3 game3 ch3 h2
Cp (Specific Heat) piecewise- piecewise-poly- piecewise-poly- piecewise-poly-
polynomial nomial nomial nomial
Thermal Conductiv- kinetic-theory kinetic-theory kinetic-theory kinetic-theory
ity
Viscosity kinetic-theory kinetic-theory kinetic-theory kinetic-theory
Molecular Weight 77.95 114.83 15 2.02
Standard State En- 0 0 2.044e+07 0
thalpy
Standard State En- 130579.1 130579.1 257367.6 130579.1
tropy

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
522 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Parameter AsH_3 Ga(CH_3)_3 CH_3 H_2


Reference Temper- 298.15 298.15 298.15 298.15
ature
L-J Characteristic 4.145 5.68 3.758 2.827
Length
L-J Energy Paramet- 259.8 398 148.6 59.7
er

b. When finished, click Change/Create to update your local copy of the species material.

Note

When you modify the properties of the material local copy, the original copy in Fluent
material database stays intact.

c. In a similar way, modify the properties of trimethyl-gallium (game3), methyl-radical (ch3), and hy-
drogen (h2).

Note

Make sure to click Change/Create each time you modify the properties for the mater-
ial to apply the changes to the local copy.

d. Select ga_s from the Fluent Fluid Materials drop-down list.

e. Enter the parameter values for the ga_s species as shown in Table 14.5: Properties of Species (p. 523).

Table 14.5: Properties of Species

Parameter Ga_s As_s Ga As


Name ga_s as_s ga as
Chemical Formula ga_s as_s ga as
Cp (Specific Heat) 520.64 520.64 1006.43 1006.43
Thermal Conduct- 0.0158 0.0158 kinetic-theory kinetic-theory
ivity
Viscosity 2.125e-05 2.125e-05 kinetic-theory kinetic-theory
Molecular Weight 69.72 74.92 69.72 74.92
Standard State -3117.71 -3117.71 0 0
Enthalpy
Standard State 154719.3 154719.3 0 0
Entropy
Reference Temper- 298.15 298.15 298.15 298.15
ature
L-J Characteristic 0 0 0 0
Length

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 523
Modeling Surface Chemistry

Parameter Ga_s As_s Ga As


L-J Energy Para- 0 0 0 0
meter

f. Modify the material properties for As_s, Ga, and As as shown in Table 14.5: Properties of Species (p. 523).

g. Close the Create/Edit Materials dialog box.

14.4.6. Specifying Boundary Conditions

1. Set the conditions for velocity-inlet.

Setup → Boundary Conditions → velocity-inlet Edit...

a. Retain the default selection of Magnitude, Normal to Boundary from the Velocity Specification
Method drop-down list.

b. Retain the default selection of Absolute from the Reference Frame drop-down list.

c. Enter 0.02189 m/s for Velocity Magnitude.

d. Click the Thermal tab and enter 293 K for Temperature.

e. Under the Species tab, set the Species Mass Fractions for ash3 to 0.4, game3 to 0.15, and ch3 to
0.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
524 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

The mass fraction of hydrogen is 0.45, but there is no need to specify this since it is the last species
in the mixture.

f. Click OK to close the Velocity Inlet dialog box.

2. Set the boundary conditions for outlet.

Setup → Boundary Conditions → outlet Edit...

a. Retain the default settings under the Momentum tab.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 525
Modeling Surface Chemistry

b. Under the Thermal tab, enter 400 K for Temperature.

c. Under the Species tab, set the Species Mass Fractions for ash3 to 0.32, game3 to 0.018, and ch3
to 0.06.

Since a certain amount of backflow is expected in the flow regions around the rotating shaft,
you should set the realistic backflow species mass fractions to minimize convergence difficulties.

d. Click OK to accept the remaining default settings.

3. Set the boundary conditions for wall-1.

Setup → Boundary Conditions → wall-1 Edit...

a. Click the Thermal tab.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
526 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

i. Select Temperature in the Thermal Conditions group box.

ii. Enter 473 K for Temperature.

b. Click OK to close the Wall dialog box.

4. Set the boundary conditions for wall-2.

Setup → Boundary Conditions → wall-2 Edit...

a. Click the Thermal tab.

i. Select Temperature in the Thermal Conditions group box.

ii. Enter 343 K for Temperature.

b. Click OK to close the Wall dialog box.

5. Set the boundary conditions for wall-4.

Setup → Boundary Conditions → wall-4 Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 527
Modeling Surface Chemistry

a. Select Moving Wall in the Wall Motion group box.

The Wall dialog box will expand to wall motion inputs and options.

b. Select Absolute and Rotational in the Motion group box.

c. Enter 80 rad/s for Speed.

d. Retain the other default settings.

e. Click the Thermal tab.

i. Select Temperature in the Thermal Conditions group box.

ii. Enter 1023 K for Temperature.

f. Click the Species tab.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
528 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

i. Enable Reaction.

ii. Retain the selection of gaas-ald from the Reaction Mechanisms drop-down list.

g. Click OK to close the Wall dialog box.

6. Set the boundary conditions for wall-5.

Setup → Boundary Conditions → wall-5 Edit...

a. Select Moving Wall in the Wall Motion group box.

b. Select Absolute and Rotational in the Motion group box.

c. Enter 80 rad/s for Speed.

d. Click the Thermal tab.

i. Select Temperature in the Thermal Conditions group box.

ii. Enter 720 K for Temperature.

e. Click OK to close the Wall dialog box.

7. Set the boundary conditions for wall-6.

Setup → Boundary Conditions → wall-6 Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 529
Modeling Surface Chemistry

a. Click the Thermal tab.

i. Select Temperature in the Thermal Conditions group box.

ii. Enter 303 K for Temperature.

b. Click OK to close the Wall dialog box.

14.4.7. Setting the Operating Conditions

1. Setting Up Physics → Solver → Operating Conditions...

a. Enter 10000 Pa for Operating Pressure.

b. Enable Gravity.

The dialog box will expand to show related gravitational inputs.

c. Enter 9.81 m/s2 for Gravitational Acceleration in the Z direction.

d. Enter 303 K for Operating Temperature.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
530 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

e. Click OK to close the Operating Conditions dialog box.

The Operating Conditions dialog box can be accessed from the Cell Zone Conditions task page.

14.4.8. Simulating Non-Reacting Flow


1. Disable Volumetric for solving non-reacting flow.

Setting Up Physics → Models → Species...

a. Disable Volumetric in the Reactions group box.

b. Click OK to close the Species Model dialog box.

You will first run a non-reacting solution to establish the flow.

2. Select the Coupled solver method.

Solution → Solution Methods

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 531
Modeling Surface Chemistry

a. Select Coupled from the Scheme drop-down list in the Pressure-Velocity Coupling group box.

b. Retain the default selections in the Spatial Discretization group box.

3. Examine Solution Controls and retain the default settings.

Solution → Solution Controls

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
532 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

4. Enable residual plotting during the calculation.

Solving → Reports → Residuals...

a. Retain the default settings and close the Residual Monitors dialog box.

5. Initialize the flow field.

Solution → Solution Initialization

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 533
Modeling Surface Chemistry

a. Retain the default selection of Hybrid Initialization from the Initialization Methods group box.

b. Click Initialize.

6. Save the case file (surface-non-react.cas.gz).

File → Write → Case...

7. Start the calculation by requesting 200 iterations.

Solving → Run Calculation

a. Enter 200 for No. of Iterations and click Calculate.

The solution will converge in approximately 50 iterations.

14.4.9. Simulating Reacting Flow


1. Enable Volumetric for the reacting flow solution.

Setting Up Physics → Models → Species...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
534 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Enable Volumetric and Wall Surface in the Reactions group box.

b. Ensure that Mass Deposition Source is enabled in the Wall Surface Reaction Options group box.

c. Click OK to close the Species Model dialog box.

2. Retain the default convergence criteria for calculation.

Solving → Reports → Residuals...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 535
Modeling Surface Chemistry

3. Request 200 more iterations.

Solving → Run Calculation → Calculate

The solution will converge in approximately 60 additional iterations.

4. Compute the mass fluxes.

Postprocessing → Reports → Fluxes...

a. Retain the default selection of Mass Flow Rate in the Options group box.

b. Select outlet, velocity-inlet, and wall-4 from the Boundaries selection list.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
536 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

In order to properly assess the mass balance, you must account for the mass deposition on the spinning
disk. Hence you select wall-4 in addition to the inlet and outlet boundaries.

c. Click Compute, examine the values displayed in the Results and Net Results boxes, and close the Flux
Reports dialog box.

The net mass imbalance should be a small fraction (for example, 0.5% or less) of the total flux
through the system. If a significant imbalance occurs, you should decrease your residual tolerances
by at least an order of magnitude and continue iterating.

5. Display contours of surface deposition rate of ga (Figure 14.3: Contours of Surface Deposition Rate of
Ga (p. 538)).

Postprocessing → Graphics → Contours → Edit...

a. Enable Filled in the Options group box.

b. Select Species... and Surface Deposition Rate of ga from the Contours of drop-down lists.

c. Select wall-4 from the Surfaces selection list.

d. Click Display and close the Contours dialog box.

Rotate the display with the mouse to obtain the view as shown in (Figure 14.3: Contours of Surface De-
position Rate of Ga (p. 538)).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 537
Modeling Surface Chemistry

Figure 14.3: Contours of Surface Deposition Rate of Ga

6. Reduce the convergence criteria.

Solving → Reports → Residuals...

a. Enter 5e-06 for Absolute Criteria for continuity.

b. Click OK to close the Residual Monitors dialog box.

7. Request 200 more iterations.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
538 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Solving → Run Calculation → Calculate

The solution will converge in approximately 175 additional iterations.

Figure 14.4: Scaled Residuals

8. Check the mass fluxes.

Postprocessing → Reports → Fluxes...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 539
Modeling Surface Chemistry

a. Retain the default selection of Mass Flow Rate in the Options group box.

b. Retain the selection of outlet and velocity-inlet and, wall-4 from the Boundaries selection list.

c. Click Compute, examine the values displayed in the Results and Net Results boxes, and close the Flux
Reports dialog box.

Again, the net mass imbalance should be a small fraction (for example, 0.5% or less) of the total
flux through the system.

9. Save the case and data files (surface-react1.cas.gz and surface-react1.dat.gz).

File → Write → Case & Data...

14.4.10. Postprocessing the Solution Results


1. Create an iso-surface near wall-4.

Postprocessing → Surface → Create → Iso-Surface...

a. Select Mesh... and Z-Coordinate from the Surface of Constant drop-down lists.

b. Click Compute.

The Min and Max fields display the z-extent of the domain.

c. Enter 0.075438 m for Iso-Values.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
540 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

d. Enter z=0.07 for New Surface Name.

Note

If you want to delete or otherwise manipulate any surfaces, click Manage... to open
the Surfaces dialog box.

e. Click Create and close the Iso-Surface dialog box.

The new surface z=0.07 is added to the surfaces selection list.

2. Display contours of temperature on the plane surface created. (Figure 14.5: Temperature Contours Near
wall-4 (p. 542)).

Postprocessing → Graphics → Contours → Edit...

a. Ensure that Filled is enabled in the Options group box.

b. Select Temperature... and Static Temperature from the Contours of drop-down lists.

c. Deselect wall-4 from the Surfaces selection list.

d. Select z=0.07 from the Surfaces selection list.

e. Click Display.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 541
Modeling Surface Chemistry

Figure 14.5: Temperature Contours Near wall-4

Figure 14.5: Temperature Contours Near wall-4 (p. 542) shows the temperature distribution across a plane
just above the rotating disk. You can see that the disk has a temperature of 1023 K.

3. Display contours of surface deposition rates of ga (Figure 14.6: Contours of Surface Deposition Rate of
ga (p. 543)).

Postprocessing → Graphics → Contours → Edit...

a. Select Species... and Surface Deposition Rate of ga from the Contours of drop-down lists.

b. Select wall-4 from the Surfaces selection list.

c. Deselect z=0.07 from the Surfaces selection list.

d. Click Display.

You may need to use the left mouse button to rotate the image so that you can see the contours on the
top side of wall-4 where the deposition takes place.

Figure 14.6: Contours of Surface Deposition Rate of ga (p. 543) shows the gradient of surface deposition
rate of ga. The maximum deposition is seen at the center of the disk.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
542 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 14.6: Contours of Surface Deposition Rate of ga

4. Display contours of surface coverage of ga_s (Figure 14.7: Contours of Surface Coverage of ga_s (p. 544)).

Postprocessing → Graphics → Contours → Edit...

a. Select Species... and Surface Coverage of ga_s from the Contours of drop-down lists.

b. Retain the selection of wall-4 in the Surfaces selection list.

c. Click Display and close the Contours dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 543
Modeling Surface Chemistry

Figure 14.7: Contours of Surface Coverage of ga_s

Figure 14.7: Contours of Surface Coverage of ga_s (p. 544) shows the rate of surface coverage of the site
species ga_s.

5. Create a line surface from the center of wall-4 to the edge.

Postsprocessing → Surface → Create → Line/Rake...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
544 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Enter the values for x0, x1, y0, y1, z0, and z1 as follows:

End Points Value


x0 -0.01040954
y0 -0.004949478
z0 0.0762001
x1 0.1428
y1 0.1386585
z1 0.07620001

You can also select the points by clicking Select Points with Mouse. Then, in the graphic display,
click at the center of wall-4 and at the edge using the right mouse button.

b. Click Create to accept the default name of line-9 for the New Surface Name.

Note

If you want to delete or otherwise manipulate any surfaces, click Manage... to open
the Surfaces dialog box

c. Close the Line/Rake Surface dialog box.

6. Plot the surface deposition rate of Ga versus radial distance (Figure 14.8: Plot of Surface Deposition Rate
of Ga (p. 547)).

Postprocessing → Plots → XY Plot → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 545
Modeling Surface Chemistry

a. Disable Node Values in the Options group box.

b. Select Species... and Surface Deposition Rate of ga from the Y Axis Function drop-down lists.

The source/sink terms due to the surface reaction are deposited in the cell adjacent to the wall cells,
so it is necessary to plot the cell values and not the node values.

c. Select line-9 you just created from the Surfaces selection list.

d. Click Plot and close the Solution XY Plot dialog box.

The peak surface deposition rate occurs at the center of wall-4 (where the concentration of the mixture
is highest).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
546 of ANSYS, Inc. and its subsidiaries and affiliates.
Further Improvements

Figure 14.8: Plot of Surface Deposition Rate of Ga

Extra

You can also perform all the postprocessing steps to analyze the deposition of As.

7. Save the case and data files (surface-react2.cas.gz and surface-react2.dat.gz).

File → Write → Case & Data...

14.5. Summary
The main focus of this tutorial is the accurate modeling of macroscopic gas flow, heat and mass transfer,
species diffusion, and chemical reactions (including surface reactions) in a rotating disk CVD reactor. In
this tutorial, you learned how to use the two-step surface reactions involving site species, and computed
simultaneous deposition of gallium and arsenide from a mixture of precursor gases on a rotating sus-
ceptor. Note that the same approach is valid if you are simulating multi-step reactions with multiple
sites/site species.

14.6. Further Improvements


This tutorial guides you through the steps to reach an initial solution. You may be able to obtain a more
accurate solution by using an appropriate higher-order discretization scheme and by adapting the mesh.
Mesh adaption can also ensure that the solution is independent of the mesh. These steps are demon-
strated in Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 1).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 547
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
548 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 15: Modeling Evaporating Liquid Spray
This tutorial is divided into the following sections:
15.1. Introduction
15.2. Prerequisites
15.3. Problem Description
15.4. Setup and Solution
15.5. Summary
15.6. Further Improvements

15.1. Introduction
In this tutorial, the air-blast atomizer model in ANSYS Fluent is used to predict the behavior of an
evaporating methanol spray. Initially, the air flow is modeled without droplets. To predict the behavior
of the spray, the discrete phase model is used, including a secondary model for breakup.

This tutorial demonstrates how to do the following:

• Define a spray injection for an air-blast atomizer.

• Calculate a solution using the discrete phase model in ANSYS Fluent.

15.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorial Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 1)
found in this manual and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some
steps in the setup and solution procedure will not be shown explicitly.

15.3. Problem Description


The geometry to be considered in this tutorial is shown in Figure 15.1: Problem Specification (p. 550).
Methanol is cooled to C before being introduced into an air-blast atomizer. The atomizer contains
an inner air stream surrounded by a swirling annular stream. To make use of the periodicity of the
problem, only a section of the atomizer will be modeled.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 549
Modeling Evaporating Liquid Spray

Figure 15.1: Problem Specification

15.4. Setup and Solution


The following sections describe the setup and solution steps for this tutorial:
15.4.1. Preparation
15.4.2. Mesh
15.4.3. Solver
15.4.4. Models
15.4.5. Materials
15.4.6. Boundary Conditions
15.4.7. Initial Solution Without Droplets
15.4.8. Creating a Spray Injection
15.4.9. Solution
15.4.10. Postprocessing

15.4.1. Preparation
To prepare for running this tutorial:

1. Download the evaporate_liquid.zip file here.

2. Unzip evaporate_liquid.zip to your working directory.

3. The mesh file sector.msh can be found in the folder.

4. Use the ANSYS Fluent Launcher to start the 3D version of ANSYS Fluent.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
550 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Fluent Launcher displays your Display Options preferences from the previous session.

For more information about the ANSYS Fluent Launcher, see starting ANSYS Fluent using the Fluent
Launcher in the Fluent Getting Started Guide.

5. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.

6. Ensure that the Serial processing option is selected.

7. Enable Double Precision.

8. Ensure that Meshing Mode is disabled.

15.4.2. Mesh
1. Read in the mesh file sector.msh.

File → Read → Mesh...

2. Change the periodic type of periodic-a to rotational.

Setup → Boundary Conditions → periodic-a → Edit...

a. Select Rotational in the Periodic Type group box.

b. Click OK to close the Periodic dialog box.

3. In a similar manner, change the periodic type of periodic-b to rotational.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 551
Modeling Evaporating Liquid Spray

4. Check the mesh.

Setting Up Domain → Mesh → Check

ANSYS Fluent will perform various checks on the mesh and report the progress in the console. Ensure
that the reported minimum volume is a positive number.

5. Display the mesh.

Setting Up Domain → Mesh → Display...

a. Ensure that Faces is enabled in the Options group box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
552 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

b. Select only atomizer-wall, central_air, and swirling_air from the Surfaces selection list.

Tip

To deselect all surfaces click the far-right button at the top of the Surfaces selec-
tion list, and then select the desired surfaces from the Surfaces selection list.

c. Click the Colors... button to open the Mesh Colors dialog box.

i. Select wall from the Types selection list.

ii. Select pink from the Colors selection list.

iii. Close the Mesh Colors dialog box.

d. Click Display and close the Mesh Display dialog box.

The graphics display will be updated to show the mesh. Zoom in with the mouse to obtain the view
shown in Figure 15.2: Air-Blast Atomizer Mesh Display (p. 554).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 553
Modeling Evaporating Liquid Spray

Figure 15.2: Air-Blast Atomizer Mesh Display

15.4.3. Solver
Retain the default solver settings of pressure-based steady-state solver in the Solver group of the Setting
Up Physics tab.

Setting Up Physics → Solver

15.4.4. Models
1. Enable heat transfer by enabling the energy equation.

Setting Up Physics → Models → Energy

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
554 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

2. Enable the Realizable - turbulence model.

Setting Up Physics → Models → Viscous...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 555
Modeling Evaporating Liquid Spray

a. Select k-epsilon (2 eqn) in the Model list.

b. Select Realizable in the k-epsilon Model list.

The Realizable - model gives a more accurate prediction of the spreading rate of both planar and
round jets than the standard - model.

c. Retain the default selection of Standard Wall Functions in the Near-Wall Treatment list.

d. Click OK to close the Viscous Model dialog box.

3. Enable chemical species transport and reaction.

Setting Up Physics → Models → Species...

a. Select Species Transport in the Model list.

b. Select methyl-alcohol-air from the Mixture Material drop-down list.

The Mixture Material list contains the set of chemical mixtures that exist in the ANSYS Fluent database.
When selecting an appropriate mixture for your case, you can review the constituent species and the
reactions of the predefined mixture by clicking View... next to the Mixture Material drop-down list.
The chemical species and their physical and thermodynamic properties are defined by the selection
of the mixture material. After enabling the Species Transport model, you can alter the mixture ma-
terial selection or modify the mixture material properties using the Create/Edit Materials dialog
box. You will modify your local copy of the mixture material later in this tutorial.

c. Click OK to close the Species Model dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
556 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

15.4.5. Materials
Define materials using the Materials task page.

Setup → Materials

1. Remove water vapor and carbon dioxide from the Mixture Species list.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 557
Modeling Evaporating Liquid Spray

Setup → Materials → Mixture → Create/Edit...

a. Click the Edit button next to the Mixture Species drop-down list to open the Species dialog box.

i. Select carbon dioxide (co2) from the Selected Species selection list.

ii. Click Remove to remove carbon dioxide from the Selected Species list.

iii. In a similar manner, remove water vapor (h2o) from the Selected Species list.

iv. Click OK to close the Species dialog box.

b. Click Change/Create and close the Create/Edit Materials dialog box.

Note

It is good practice to click the Change/Create button whenever changes are made
to material properties even though it is not necessary in this case.

15.4.6. Boundary Conditions


Specify boundary conditions using the Boundary Conditions task page.

Setup → Boundary Conditions

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
558 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

1. Set the boundary conditions for the inner air stream (central_air).

Setup → Boundary Conditions → central_air → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 559
Modeling Evaporating Liquid Spray

a. Enter 9.167e-5 kg/s for Mass Flow Rate.

b. Enter 0 for X-Component of Flow Direction.

c. Retain the default value of 0 for Y-Component of Flow Direction.

d. Enter 1 for Z-Component of Flow Direction.

e. Select Intensity and Hydraulic Diameter from the Specification Method drop-down list.

f. Enter 10 for Turbulent Intensity.

g. Enter 0.0037 m for Hydraulic Diameter.

h. Click the Thermal tab and enter 293 K for Total Temperature.

i. Click the Species tab and enter 0.23 for o2 in the Species Mass Fractions group box.

j. Click OK to close the Mass-Flow Inlet dialog box.

2. Set the boundary conditions for the air stream surrounding the atomizer (co-flow-air).

Setup → Boundary Conditions → co-flow-air → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
560 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Enter 1 m/s for Velocity Magnitude.

b. Select Intensity and Hydraulic Diameter from the Specification Method drop-down list.

c. Retain the default value of 5 for Turbulent Intensity.

d. Enter 0.0726 m for Hydraulic Diameter.

e. Click the Thermal tab and enter 293 K for Temperature.

f. Click the Species tab and enter 0.23 for o2 in the Species Mass Fractions group box.

g. Click OK to close the Velocity Inlet dialog box.

3. Set the boundary conditions for the exit boundary (outlet).

Setup → Boundary Conditions → outlet → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 561
Modeling Evaporating Liquid Spray

a. Select From Neighboring Cell from the Backflow Direction Specification Method drop-down list.

b. Retain Intensity and Viscosity Ratio from the Specification Method drop-down list.

c. Retain the default value of 5 for Backflow Turbulent Intensity (%).

d. Enter 5 for Backflow Turbulent Viscosity Ratio.

e. Click the Thermal tab and enter 293 K for Backflow Total Temperature.

f. Click the Species tab and enter 0.23 for o2 in the Species Mass Fractions group box.

g. Click OK to close the Pressure Outlet dialog box.

4. Set the boundary conditions for the swirling annular stream (swirling_air).

Setup → Boundary Conditions → swirling_air → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
562 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Select Magnitude and Direction from the Velocity Specification Method drop-down list.

b. Enter 19 m/s for Velocity Magnitude.

c. Select Cylindrical (Radial, Tangential, Axial) from the Coordinate System drop-down list.

d. Enter 0 for Radial-Component of Flow Direction.

e. Enter 0.7071 for Tangential-Component of Flow Direction.

f. Enter 0.7071 for Axial-Component of Flow Direction.

g. Select Intensity and Hydraulic Diameter from the Specification Method drop-down list.

h. Retain the default value of 5 for Turbulent Intensity.

i. Enter 0.0043 m for Hydraulic Diameter.

j. Click the Thermal tab and enter 293 K for Temperature.

k. Click the Species tab and enter 0.23 for o2 in the Species Mass Fractions group box.

l. Click OK to close the Velocity Inlet dialog box.

5. Set the boundary conditions for the outer wall of the atomizer (outer-wall).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 563
Modeling Evaporating Liquid Spray

Setup → Boundary Conditions → outer-wall → Edit...

a. Select Specified Shear in the Shear Condition list.

b. Retain the default values for the remaining parameters.

c. Click OK to close the Wall dialog box.

15.4.7. Initial Solution Without Droplets


The airflow will first be solved and analyzed without droplets.

1. Set the solution method.

Solving → Solution → Methods...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
564 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Select Coupled from the Scheme drop-down list in the Pressure-Velocity Coupling group box.

b. Enable Pseudo Transient.

The message appears in the console informing you of changing smoother type to ilu, post-sweeps to
3, coarsening group size to 8, max number of fixed cycles to 30 for scalar parameters.

2. Retain the default under-relaxation factors.

Solving → Controls → Controls...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 565
Modeling Evaporating Liquid Spray

3. Enable residual plotting during the calculation.

Solving → Reports → Residuals...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
566 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Ensure that Plot is enabled in the Options group box.

b. Click OK to close the Residual Monitors dialog box.

4. Initialize the flow field.

Solving → Initialization

a. Retain the Method at the default of Hybrid.

b. Click Initialize to initialize the variables.

Note

For flows in complex topologies, hybrid initialization will provide better initial velocity
and pressure fields than standard initialization. This will help to improve the convergence
behavior of the solver.

5. Save the case file (spray1.cas.gz).

File → Write → Case...

6. Start the calculation by requesting 150 iterations.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 567
Modeling Evaporating Liquid Spray

Solution → Run Calculation

a. Select User Specified from the Time Step Method group box.

b. Retain 1 s for Pseudo Time Step.

c. Enter 150 for Number of Iterations.

d. Click Calculate.

Figure 15.3: Scaled Residuals

7. Save the case and data files (spray1.cas.gz and spray1.dat.gz).

File → Write → Case & Data...

Note

ANSYS Fluent will ask you to confirm that the previous case file is to be overwritten.

8. Create a clip plane to examine the flow field at the midpoint of the atomizer section.

Postprocessing → Surface → Create → Iso-Surface...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
568 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Select Mesh... and Angular Coordinate from the Surface of Constant drop-down lists.

b. Click Compute to obtain the minimum and maximum values of the angular coordinate.

c. Enter 15 for Iso-Values.

d. Enter angle=15 for New Surface Name.

e. Click Create to create the isosurface.

f. Close the Iso-Surface dialog box.

9. Review the current state of the solution by examining contours of velocity magnitude (Figure 15.4: Velocity
Magnitude at Mid-Point of Atomizer Section (p. 571)).

Postprocessing → Graphics → Contours → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 569
Modeling Evaporating Liquid Spray

a. Enable Filled in the Options group box

b. Select Velocity... and Velocity Magnitude from the Contours of drop-down lists.

c. Enable Draw Mesh.

The Mesh Display dialog box will open.

i. Retain the current mesh display settings.

ii. Close the Mesh Display dialog box.

d. Select angle=15 from the Surfaces selection list.

e. Click Display and close the Contours dialog box.

f. Use the mouse to obtain the view shown in Figure 15.4: Velocity Magnitude at Mid-Point of Atomizer
Section (p. 571).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
570 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 15.4: Velocity Magnitude at Mid-Point of Atomizer Section

10. Modify the view to include the entire atomizer.

Viewing → Display → Views...

a. Click the Periodic Repeats Define... button to open the Graphics Periodicity dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 571
Modeling Evaporating Liquid Spray

i. Select fluid from the Cell Zones selection list.

ii. Retain the selection of Rotational in the Periodic Type list.

iii. Retain the value of 12 for Number of Repeats.

iv. Click Set and close the Graphics Periodicity dialog box.

The graphics display will be updated to show the entire atomizer.

b. Click Apply and close the Views dialog box.

11. Display pathlines of the air in the swirling annular stream (Figure 15.5: Pathlines of Air in the Swirling An-
nular Stream (p. 574)).

Postprocessing → Graphics → Pathlines → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
572 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Increase the Path Skip value to 5.

b. In the Release from Surfaces filter, type s to display the surface names that begin with s and select
swirling_air from the selection list.

c. Enable Draw Mesh in the Options group box.

The Mesh Display dialog box will open.

i. Retain the current mesh display settings.

ii. Close the Mesh Display dialog box.

d. Click Display and close the Pathlines dialog box.

e. Use the mouse to obtain the view shown in Figure 15.5: Pathlines of Air in the Swirling Annular
Stream (p. 574).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 573
Modeling Evaporating Liquid Spray

Figure 15.5: Pathlines of Air in the Swirling Annular Stream

15.4.8. Creating a Spray Injection


1. Define the discrete phase modeling parameters.

Setting Up Physics → Models → Discrete Phase...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
574 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Select Interaction with Continuous Phase in the Interaction group box.

This will include the effects of the discrete phase trajectories on the continuous phase.

b. Retain the value of 10 for DPM Iteration Interval.

c. Select Mean Values in the Contour Plots for DPM Variables group box.

This will make the cell-averaged variables available for postprocessing activities.

d. Select the Unsteady Particle Tracking option in the Particle Treatment group box.

e. Enter 0.0001 for Particle Time Step Size.

f. Enter 10 for Number of Time Steps.

g. Under the Physical Models tab, select the Temperature Dependent Latent Heat and Breakup (Options
group).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 575
Modeling Evaporating Liquid Spray

h. Under the Numerics tab, select Linearize Source Terms (Source Terms group).

Enabling this option will allow you to run the simulation with more aggressive setting for the
Discrete Phase Sources under-relaxation factor to speed up the solution convergence.

i. Click Injections... to open the Injections dialog box.

In this step, you will define the characteristics of the atomizer.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
576 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

An Information dialog box appears indicating that the Max. Number of Steps has been changed
from 50000 to 500. Click OK in the Information dialog box to continue.

j. Click the Create button to create the spray injection.

k. In the Set Injection Properties dialog box, select air-blast-atomizer from the Injection Type drop-
down list.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 577
Modeling Evaporating Liquid Spray

l. Enter 600 for Number of Streams.

This option controls the number of droplet parcels that are introduced into the domain at every time
step.

m. Select Droplet in the Particle Type group box.

n. Select methyl-alcohol-liquid from the Material drop-down list.

o. In the Point Properties tab, specify point properties for particle injections.

i. Retain the default values of 0 and 0 for X-Position and Y-Position.

ii. Enter 0.0015 for Z-Position.

iii. Retain the default values of 0, 0, and 1 for X-Axis, Y-Axis, and Z-Axis, respectively.

iv. Enter 263 K for Temperature.

Scroll down the list to see the remaining point properties.

v. Enter 8.5e-5 kg/s for Flow Rate.

This is the methanol flow rate for a 30-degree section of the atomizer. The actual atomizer flow
rate is 12 times this value.

vi. Retain the default Start Time of 0 s and enter 100 s for the Stop Time.

For this problem, the injection should begin at and not stop until long after the time period
of interest. A large value for the stop time (for example, 100 s) will ensure that the injection will
essentially never stop.

vii. Enter 0.0035 m for the Injector Inner Diameter and 0.0045 m for the Injector Outer Diameter.

viii.Enter 45 degrees for Spray Half Angle.

The spray angle is the angle between the liquid sheet trajectory and the injector centerline.

ix. Enter 82.6 m/s for the Relative Velocity.

The relative velocity is the expected relative velocity between the atomizing air and the liquid
sheet.

x. Retain the default Azimuthal Start Angle of 0 degrees and enter 30 degrees for the Azimuthal
Stop Angle.

This will restrict the injection to the 30-degree section of the atomizer that is being modeled.

p. In the Physical Models tab, specify the breakup model and drag parameters.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
578 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

i. In the Breakup group, ensure that Enable Breakup is selected and TAB is selected from the
Breakup Model drop-down list.

ii. Retain the default values of 0 for y0 and 2 for Breakup Parcels.

iii. In the Drag Parameters group box, select dynamic-drag from the Drag Law drop-down list.

The dynamic-drag law is available only when the Breakup model is used.

q. In the Turbulent Dispersion tab, define the turbulent dispersion.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 579
Modeling Evaporating Liquid Spray

i. Enable Discrete Random Walk Model and Random Eddy Lifetime in the Stochastic Tracking
group box.

These models will account for the turbulent dispersion of the droplets.

ii. Click OK to close the Set Injection Properties dialog box.

Note

To modify the existing injection, select its name in the Injections list and click
Set..., or simply double-click the injection of interest.

r. Close the Injections dialog box.

Note

In the case that the spray injection would be striking a wall, you should specify the
wall boundary conditions for the droplets. Though this tutorial does have wall zones,
they are a part of the atomizer apparatus. You need not change the wall boundary
conditions any further because these walls are not in the path of the spray droplets.

s. Click OK to close the Discrete Phase Model dialog box.

2. Specify the droplet material properties.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
580 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Setup → Materials → methyl-alcohol-liquid → Create/Edit...

When secondary atomization models (such as Breakup) are used, several droplet properties need to be
specified.

a. Ensure droplet-particle is selected in the Material Type drop-down list.

b. Enter 0.0056 kg/m-s for Viscosity in the Properties group box.

c. Ensure that piecewise-linear is selected from the Saturation Vapor Pressure drop-down list.

Scroll down to find the Saturation Vapor Pressure drop-down list.

d. Click the Edit... button next to Saturation Vapor Pressure to open the Piecewise-Linear Profile dialog
box.

e. Retain the default values and click OK to close the Piecewise-Linear Profile dialog box.

f. Select convection/diffusion-controlled from the Vaporization Model drop-down list.

g. Click OK to close the Convection/Diffusion Model dialog box.

h. Click Change/Create to accept the change in properties for the methanol droplet material and close
the Create/Edit Materials dialog box.

15.4.9. Solution
1. Increase the under-relaxation factor for Discrete Phase Sources.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 581
Modeling Evaporating Liquid Spray

Solving → Controls → Controls...

In the Pseudo Transient Explicit Relaxation Factors group box, change the under-relaxation factor
for Discrete Phase Sources to 0.9.

2. Remove the convergence criteria.

Solving → Reports → Residuals...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
582 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Select none from the Convergence Criterion drop-down list.

b. Click OK to close the Residual Monitors dialog box.

3. Enable the plotting of mass fraction of ch3oh.

Solving → Reports → Definitions → New → Surface Report → Mass-Weighted Average...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 583
Modeling Evaporating Liquid Spray

a. Enter ch3oh_outlet for Name of the surface report definition.

b. In the Create group box, enable Report Plot and Print to Console.

c. Select Species... and Mass fraction of ch3oh from the Field Variable drop-down lists.

d. Select outlet from the Surfaces selection list.

e. Click OK to save the surface report definition settings and close the Surface Report Definition dialog
box.

Fluent automatically generates the ch3oh_outlet-rplot report plot under the Solution/Monit-
ors/Report Plots tree branch.

4. Enable the plotting of the sum of the DPM Mass Source.

Solving → Reports → Definitions → New → Volume Report → Sum...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
584 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Enter dpm-mass-source for Name.

b. In the Create group box, enable Report Plot and Print to Console.

c. Select Discrete Phase Sources... and DPM Mass Source from the Field Variable drop-down lists.

d. Select fluid from the Cell Zones selection list.

e. Click OK to save the volume report definition settings and close the Volume Report Definition dialog
box.

Fluent automatically generates the dpm-mass-source-rplot report plot under Solution/Monit-


ors/Report Plots tree branch.

f. Modify the attributes of the dpm-mass-source-rplot report plot axes.

Solution → Monitors → Report Plots → dpm-mass-source-rplot Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 585
Modeling Evaporating Liquid Spray

i. In the Plot Window group box, click the Axes... button to open the Axes dialog box.

ii. Select Y in the Axis list.

iii. Select exponential from the Type drop-down list.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
586 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

iv. Set Precision to 2.

v. Click Apply and close the Axes dialog box.

vi. Click OK to close the Edit Report Plot dialog box.

5. Create a DPM report definition for tracking the total mass present in the domain.

Solving → Reports → Definitions → New → DPM Report → Mass in Domain...

a. Enter dpm-mass-in-domain for Name.

b. In the Create group box, enable Report Plot and Print to Console.

c. Select injection-0 from the Injections selection list.

d. Clear Show Mass Flow / Change Rate.

e. Click OK to save the volume report definition settings and close the DPM Report Definition dialog
box.

Fluent automatically generates the dpm-mass-in-domain-rplot report plot under Solution/Mon-


itors/Report Plots tree branch.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 587
Modeling Evaporating Liquid Spray

f. Modify the attributes of the dpm-mass-in-domain-rplot report plot axes (in a manner similar to that
for the dpm-mass-source-rplot plot).

Solution → Monitors → Report Plots → dpm-mass-in-domain-rplot Edit...

i. In the Plot Window group box, click the Axes... button to open the Axes dialog box.

ii. Select Y in the Axis list.

iii. Select exponential from the Type drop-down list.

iv. Set Precision to 2.

v. Click Apply and close the Axes dialog box.

vi. Click OK to close the Edit Report Plot dialog box.

6. Create a DPM report definition for tracking the mass of the evaporated particles.

Solving → Reports → Definitions → New → DPM Report → Evaporated Mass...

a. Enter dpm-evaporated-mass for Name.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
588 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

b. In the Create group box, enable Report Plot and Print to Console.

c. Select injection-0 from the Injections selection list.

d. Ensure that the Show Mass Flow / Change Rate option is selected.

e. Click OK to save the volume report definition settings and close the DPM Report Definition dialog
box.

Fluent automatically generates the dpm-evaporated-mass-rplot report plot under Solution/Mon-


itors/Report Plots tree branch.

f. Modify the attributes of the dpm-evaporated-mass-rplot report plot axes in a manner similar to that
for the dpm-mass-source-rplot plot.

7. Request 300 more iterations (Figure 15.6: Convergence History of Mass Fraction of ch3oh on Fluid (p. 589),
Figure 15.7: Convergence History of DPM Mass Source on Fluid (p. 590), Figure 15.8: Convergence History
of Total Mass in Domain (p. 590), and Figure 15.9: Convergence History of Evaporated Particle Mass (p. 591)).

Solving → Run Calculation

It can be concluded that the solution is converged because the number of particle tracks are constant
and the flow variable plots are flat.

Figure 15.6: Convergence History of Mass Fraction of ch3oh on Fluid

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 589
Modeling Evaporating Liquid Spray

Figure 15.7: Convergence History of DPM Mass Source on Fluid

Figure 15.8: Convergence History of Total Mass in Domain

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
590 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 15.9: Convergence History of Evaporated Particle Mass

8. Save the case and data files (spray2.cas.gz and spray2.dat.gz).

File → Write → Case & Data...

15.4.10. Postprocessing
1. Display the trajectories of the droplets in the spray injection (Figure 15.10: Particle Tracks for the Spray In-
jection (p. 593)).

This will allow you to review the location of the droplets.

Postprocessing → Graphics → Particle Tracks → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 591
Modeling Evaporating Liquid Spray

a. Enable Draw Mesh in the Options group box.

The Mesh Display dialog box will open.

i. Retain the current display settings.

ii. Close the Mesh Display dialog box.

b. Retain the default selection of point from the Track Style drop-down list.

c. Select Particle Variables... and Particle Diameter from the Color by drop-down lists.

This will display the location of the droplets colored by their diameters.

d. Select injection-0 from the Release from Injections selection list.

e. Click Display. As an optional exercise, you can increase the particle size by clicking the Attributes... button
in the Particle Tracks dialog box and adjusting the Marker Size value in the Track Style Attributes dialog
box.

f. Close the Particle Tracks dialog box.

g. Restore the 30–degree section to obtain the view as shown in Figure 15.10: Particle Tracks for the Spray
Injection (p. 593).

Viewing → Display → Views...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
592 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

i. Click the Define... button to open the Graphics Periodicity dialog box.

ii. Click Reset and close the Graphics Periodicity dialog box.

iii. Close the Views dialog box.

h. Use the mouse to obtain the view shown in Figure 15.10: Particle Tracks for the Spray Injection (p. 593).

Figure 15.10: Particle Tracks for the Spray Injection

The air-blast atomizer model assumes that a cylindrical liquid sheet exits the atomizer, which then disin-
tegrates into ligaments and droplets. Appropriately, the model determines that the droplets should be
input into the domain in a ring. The radius of this disk is determined from the inner and outer radii of
the injector.

Note

The maximum diameter of the droplets is about 10–4 m or 0.1 mm. This is slightly smaller
than the film height. The inner diameter and outer diameter of the injector are 3.5 mm
and 4.5 mm, respectively. Hence the film height is 0.5 mm. The range in the droplet sizes
is due to the fact that the air-blast atomizer automatically uses a distribution of droplet
sizes.

Also note that the droplets are placed a slight distance away from the injector. Once the
droplets are injected into the domain, their behavior will be determined by secondary
models. For instance, they may collide/coalesce with other droplets depending on the
secondary models employed. However, once a droplet has been introduced into the do-
main, the air-blast atomizer model no longer affects the droplet.

2. Display the mean particle temperature field (Figure 15.11: Contours of DPM Temperature (p. 595)).

Postprocessing → Graphics → Contours → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 593
Modeling Evaporating Liquid Spray

a. Ensure that Filled is enabled in the Options group box

b. Disable Draw Mesh.

c. Select Discrete Phase Variables... and DPM Temperature from the Contours of drop-down lists.

d. Disable Auto Range.

The Clip to Range option will automatically be enabled.

e. Click Compute to update the Min and Max fields.

f. Enter 260 for Min.

g. Select angle=15 from the Surfaces selection list.

h. Click Display and close the Contours dialog box.

i. Use the mouse to obtain the view shown in Figure 15.11: Contours of DPM Temperature (p. 595).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
594 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 15.11: Contours of DPM Temperature

3. Display the mean Sauter diameter (Figure 15.12: Contours of DPM Sauter Diameter (p. 595)).

Postprocessing → Graphics → Contours → Edit...

a. Enable Autorange in the Options group box.

b. Select Discrete Phase Variables... and DPM D32 from the Contours of drop-down lists.

c. Select angle=15 from the Surfaces selection list.

d. Click Display and close the Contours dialog box.

Figure 15.12: Contours of DPM Sauter Diameter

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 595
Modeling Evaporating Liquid Spray

4. Display vectors of DPM mean velocity colored by DPM velocity magnitude (Figure 15.13: Vectors of DPM
Mean Velocity Colored by DPM Velocity Magnitude (p. 597)).

Postprocessing → Graphics → Vectors → Edit...

a. Select dpm-mean-velocity from the Vectors of drop-down lists.

b. Select Discrete Phase Variables... and DPM Velocity Magnitude from the Color by drop-down lists.

c. Enter 7 for Scale.

d. Select angle=15 from the Surfaces selection list.

e. Click Display and close the Contours dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
596 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 15.13: Vectors of DPM Mean Velocity Colored by DPM Velocity Magnitude

5. Create an isosurface of the methanol mass fraction.

Postprocessing → Surface → Create → Iso-Surface...

a. Select Species... and Mass fraction of ch3oh from the Surface of Constant drop-down lists.

b. Click Compute to update the minimum and maximum values.

c. Enter 0.002 for Iso-Values.

d. Enter methanol-mf=0.002 for the New Surface Name.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 597
Modeling Evaporating Liquid Spray

e. Click Create and then close the Iso-Surface dialog box.

6. Display the isosurface you just created (methanol-mf=0.002).

Postprocessing → Graphics → Mesh → Edit...

a. Deselect atomizer-wall and select methanol-mf=0.002 in the Surfaces selection list.

b. Click the Colors... button to open the Mesh Colors dialog box.

i. Select surface in the Types list and green in the Colors list.

Scroll down the Types list to locate surface. The isosurface will now be displayed in green, which
contrasts better with the rest of the mesh.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
598 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

ii. Close the Mesh Colors dialog box.

c. Click Display in the Mesh Display dialog box.

The graphics display will be updated to show the isosurface.

7. Modify the view to include the entire atomizer.

Viewing → Display → Views...

a. Click Define... to open the Graphics Periodicity dialog box.

i. Select fluid from the Cell Zones list.

ii. Ensure that Rotational is selected from the Periodic Type list and the Number of Repeats is set
to 12.

iii. Click Set and close the Graphics Periodicity dialog box.

b. Click Apply and close the Views dialog box.

c. Click Display and close the Mesh Display dialog box.

d. Use the mouse to obtain the view shown in Figure 15.14: Full Atomizer Display with Surface of Constant
Methanol Mass Fraction (p. 600).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 599
Modeling Evaporating Liquid Spray

Figure 15.14: Full Atomizer Display with Surface of Constant Methanol Mass Fraction

e. This view can be improved to resemble Figure 15.15: Atomizer Display with Surface of Constant Meth-
anol Mass Fraction Enhanced (p. 601) by changing some of the following variables:

• Disable Edges in the Mesh Display dialog box

• Select only atomizer-wall and methanol-mf=0.002 in the Surfaces list of the Mesh Display
dialog box

• Change the Number of Repeats to 6 in the Graphics Periodicity dialog box

• Enable Lighting and change it to Flat in the Viewing tab (Display group)

• Enable Headlight check in the Viewing tab (Display group)

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
600 of ANSYS, Inc. and its subsidiaries and affiliates.
Further Improvements

Figure 15.15: Atomizer Display with Surface of Constant Methanol Mass Fraction Enhanced

8. Save the case and data files (spray3.cas.gz and spray3.dat.gz).

File → Write → Case & Data...

15.5. Summary
In this tutorial, a spray injection was defined for an air-blast atomizer and the solution was calculated
using the discrete phase model in ANSYS Fluent. The location of methanol droplet particles after exiting
the atomizer and an isosurface of the methanol mass fraction were examined.

15.6. Further Improvements


This tutorial guides you through the steps to reach an initial solution. You may be able to obtain a more
accurate solution by using an appropriate higher-order discretization scheme and by adapting the mesh.
Mesh adaption can also ensure that the solution is independent of the mesh. These steps are demon-
strated in Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 1).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 601
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
602 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 16: Using the VOF Model
This tutorial is divided into the following sections:
16.1. Introduction
16.2. Prerequisites
16.3. Problem Description
16.4. Setup and Solution
16.5. Summary
16.6. Further Improvements

16.1. Introduction
This tutorial examines the flow of ink as it is ejected from the nozzle of a printhead in an inkjet printer.
Using ANSYS Fluent’s volume of fluid (VOF) multiphase modeling capability, you will be able to predict
the shape and motion of the resulting droplets in an air chamber.

This tutorial demonstrates how to do the following:

• Set up and solve a transient problem using the pressure-based solver and VOF model.

• Copy material from the property database.

• Define time-dependent boundary conditions with a user-defined function (UDF).

• Patch initial conditions in a subset of the domain.

• Automatically save data files at defined points during the solution.

• Examine the flow and interface of the two fluids using volume fraction contours.

16.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorial Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 1)
found in this manual and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some
steps in the setup and solution procedure will not be shown explicitly.

16.3. Problem Description


The problem considers the transient tracking of a liquid-gas interface in the geometry shown in Fig-
ure 16.1: Schematic of the Problem (p. 604). The axial symmetry of the problem enables a 2D geometry
to be used. The computation mesh consists of 24,600 cells. The domain consists of two regions: an ink
chamber and an air chamber. The dimensions are summarized in Table 16.1: Ink Chamber Dimen-
sions (p. 604).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 603
Using the VOF Model

Figure 16.1: Schematic of the Problem

Table 16.1: Ink Chamber Dimensions

Ink Chamber, Cylindrical Region: Radius (mm) 0.015


Ink Chamber, Cylindrical Region: Length (mm) 0.050
Ink Chamber, Tapered Region: Final Radius (mm) 0.009
Ink Chamber, Tapered Region: Length (mm) 0.050
Air Chamber: Radius (mm) 0.030
Air Chamber: Length (mm) 0.280

The following is the chronology of events modeled in this simulation:

• At time zero, the nozzle is filled with ink, while the rest of the domain is filled with air. Both fluids are assumed
to be at rest. To initiate the ejection, the ink velocity at the inlet boundary (which is modeled in this simulation

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
604 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

by a user-defined function) suddenly increases from 0 to 3.58 m/s and then decreases according to a cosine
law.

• After 10 microseconds, the velocity returns to zero.

The calculation is run for 30 microseconds overall, that is, three times longer than the duration of the
initial impulse.

Because the dimensions are small, the double-precision version of ANSYS Fluent will be used. Air will
be designated as the primary phase, and ink (which will be modeled with the properties of liquid water)
will be designated as the secondary phase. Patching will be required to fill the ink chamber with the
secondary phase. Gravity will not be included in the simulation. To capture the capillary effect of the
ejected ink, the surface tension and prescription of the wetting angle will be specified. The surface inside
the nozzle will be modeled as neutrally wettable, while the surface surrounding the nozzle orifice will
be non-wettable.

16.4. Setup and Solution


The following sections describe the setup and solution steps for this tutorial:
16.4.1. Preparation
16.4.2. Reading and Manipulating the Mesh
16.4.3. General Settings
16.4.4. Models
16.4.5. Materials
16.4.6. Phases
16.4.7. Operating Conditions
16.4.8. User-Defined Function (UDF)
16.4.9. Boundary Conditions
16.4.10. Solution
16.4.11. Postprocessing

16.4.1. Preparation
To prepare for running this tutorial:

1. Download the vof.zip file here.

2. Unzip vof.zip to your working directory.

3. The files inkjet.msh and inlet1.c can be found in the folder.

4. Use Fluent Launcher to start the 2D version of ANSYS Fluent.

Fluent Launcher displays your Display Options preferences from the previous session.

5. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.

6. Enable Double-Precision.

Note

The double precision solver is recommended for modeling multiphase flows simulation.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 605
Using the VOF Model

7. Ensure that the Serial processing option is selected.

16.4.2. Reading and Manipulating the Mesh


1. Read the mesh file inkjet.msh.

File → Read → Mesh...

A warning message will be displayed twice in the console. You need not take any action at this point,
as the issue will be resolved when you define the solver settings in General Settings (p. 610).

2. Examine the mesh (Figure 16.2: Default Display of the Nozzle Mesh (p. 606)).

Figure 16.2: Default Display of the Nozzle Mesh

Tip

By zooming in with the middle mouse button, you can see that the interior of the model
is composed of a fine mesh of quadrilateral cells (see Figure 16.3: The Quadrilateral
Mesh (p. 607)).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
606 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 16.3: The Quadrilateral Mesh

3. Set graphics display options

Viewing → Display → Options...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 607
Using the VOF Model

a. Ensure that All is selected from the Animation Option drop-down list.

Selecting All will allow you to see the movement of the entire mesh as you manipulate the Camera
view in the next step.

4. Click Apply and close the Display Options dialog box.

5. Manipulate the mesh display to show the full chamber upright.

Viewing → Display → Views...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
608 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Select front from the Views selection list.

b. Select axis from the Mirror Planes selection list.

c. Click Apply.

The mesh display is updated to show both sides of the chamber.

d. Click the Camera... button to open the Camera Parameters dialog box.

Note

You may notice that the scale of the dimensions in the Camera Parameters dialog
box appear very large given the problem dimensions. This is because you have not
yet scaled the mesh to the correct units. You will do this in a later step.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 609
Using the VOF Model

i. Drag the indicator of the dial with the left mouse button in the clockwise direction until the upright
view is displayed (Figure 16.4: Mesh Display of the Nozzle Mirrored and Upright (p. 610)).

Figure 16.4: Mesh Display of the Nozzle Mirrored and Upright

ii. Close the Camera Parameters dialog box.

e. Close the Views dialog box.

16.4.3. General Settings


1. Check the mesh.

Setting Up Domain → Mesh → Check

ANSYS Fluent will perform various checks on the mesh and report the progress in the console. Make sure
that the reported minimum volume is a positive number.

2. Scale the mesh.

Setting Up Domain → Mesh → Scale...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
610 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Select Specify Scaling Factors from the Scaling group box.

b. Enter 1e-6 for X and Y in the Scaling Factors group box.

c. Click Scale and close the Scale Mesh dialog box.

3. a. Right click in the graphics window and select Refresh Display

b. Click the Fit to Window icon, , to center the graphic in the window.

4. Check the mesh.

Setting Up Domain → Mesh → Check

Note

It is a good idea to check the mesh after you manipulate it (that is, scale, convert to
polyhedra, merge, separate, fuse, add zones, or smooth and swap.) This will ensure that
the quality of the mesh has not been compromised.

5. Define the units for the mesh.

Setting Up Domain → Mesh → Units...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 611
Using the VOF Model

a. Select length from the Quantities list.

b. Select mm from the Units list.

c. Select surface-tension from the Quantities list.

d. Select dyn/cm from the Units list.

e. Close the Set Units dialog box.

6. Retain the default setting of Pressure-Based in the Solver group box of the Setting Up Physics ribbon
tab.

Setting Up Physics → Solver

7. Select Transient from the Time list.

8. Select Axisymmetric from the drop-down list in the Solver group box (below Reference Values).

16.4.4. Models
1. Enable the Volume of Fluid multiphase model.

Setting Up Physics → Models → Multiphase...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
612 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Select Volume of Fluid from the Model list.

The Multiphase Model dialog box expands to show related inputs.

b. Retain the default settings and click OK to close the Multiphase Model dialog box.

16.4.5. Materials
The default properties of air and water defined in ANSYS Fluent are suitable for this problem. In this step,
you will make sure that both materials are available for selection in later steps.

1. Add water to the list of fluid materials by copying it from the ANSYS Fluent materials database.

Setting Up Physics → Materials → Create/Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 613
Using the VOF Model

a. Click Fluent Database... in the Create/Edit Materials dialog box to open the Fluent Database Mater-
ials dialog box.

i. Select water-liquid (h2o < l >) from the Fluent Fluid Materials selection list.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
614 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Scroll down the Fluent Fluid Materials list to locate water-liquid (h2o < l >).

ii. Click Copy to copy the information for water to your list of fluid materials.

iii. Close the Fluent Database Materials dialog box.

b. Click Change/Create and close the Create/Edit Materials dialog box.

16.4.6. Phases
In the following steps, you will define water as the secondary phase. When you define the initial solution,
you will patch water in the nozzle region. In general, you can specify the primary and secondary phases
whichever way you prefer. It is a good idea to consider how your choice will affect the ease of problem setup,
especially with more complicated problems.

Setting Up Physics → Phases → List/Show All...

1. Specify air (air) as the primary phase.

In the Phases dialog box, select phase 1 – Primary Phase and click Edit... to open the Primary
Phase dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 615
Using the VOF Model

a. Enter air for Name.

b. Retain the default selection of air in the Phase Material drop-down list.

c. Click OK to close the Primary Phase dialog box.

2. Specify water (water-liquid) as the secondary phase.

In the Phases dialog box, select phase 2 – Secondary Phase and click Edit... to open the Secondary
Phase dialog box.

a. Enter water-liquid for Name.

b. Select water-liquid from the Phase Material drop-down list.

c. Click OK to close the Secondary Phase dialog box.

3. Specify the interphase interaction.

In the Phases dialog box, click Interaction... to open the Phase Interaction dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
616 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Click the Surface Tension tab.

b. Enable Surface Tension Force Modeling.

The surface tension inputs is displayed and the Continuum Surface Force model is set as the default.

c. Enable Wall Adhesion so that contact angles can be prescribed.

d. Select constant from the Surface Tension Coefficient drop-down list.

e. Enter 73.5 dyn/cm for Surface Tension Coefficient.

f. Click OK to close the Phase Interaction dialog box.

4. Close the Phases dialog box.

16.4.7. Operating Conditions


1. Set the operating reference pressure location.

Setup → Boundary Conditions → Operating Conditions...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 617
Using the VOF Model

You will set the Reference Pressure Location to be a point where the fluid will always be 100 air.

a. Enter 0.10 mm for X.

b. Enter 0.03 mm for Y.

c. Click OK to close the Operating Conditions dialog box.

16.4.8. User-Defined Function (UDF)


1. Interpret the UDF source file for the ink velocity distribution (inlet1.c).

User Defined → User Defined → Functions → Interpreted...

a. Enter inlet1.c for Source File Name.

If the UDF source file is not in your working directory, then you must enter the entire directory path
for Source File Name instead of just entering the file name. Alternatively, click the Browse... button
and select inlet1.c in the vof directory that was created after you unzipped the original file.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
618 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

b. Click Interpret.

The UDF defined in inlet1.c is now visible and available for selection as udf membrane_speed in the
drop-down lists of relevant graphical user interface dialog boxes.

c. Close the Interpreted UDFs dialog box.

16.4.9. Boundary Conditions


1. Set the boundary conditions at the inlet (inlet) for the mixture by selecting mixture from the Phase drop-
down list in the Boundary Conditions task page.

Setup → Boundary Conditions → inlet Edit...

a. Select udf membrane_speed from the Velocity Magnitude drop-down list.

b. Click OK to close the Velocity Inlet dialog box.

2. Set the boundary conditions at the inlet (inlet) for the secondary phase by selecting water-liquid from
the Phase drop-down list in the Boundary Conditions task page.

Setup → Boundary Conditions → inlet → water-liquid Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 619
Using the VOF Model

a. Click the Multiphase tab and enter 1 for the Volume Fraction.

b. Click OK to close the Velocity Inlet dialog box.

3. Set the boundary conditions at the outlet (outlet) for the secondary phase by selecting water-liquid from
the Phase drop-down list in the Boundary Conditions task page.

Setup → Boundary Conditions → outlet → water-liquid Edit...

a. Click the Multiphase tab and retain the default setting of 0 for the Backflow Volume Fraction.

b. Click OK to close the Pressure Outlet dialog box.

4. Set the conditions at the top wall of the air chamber (wall_no_wet) for the mixture by selecting mixture
from the Phase drop-down list in the Boundary Conditions task page.

Setup → Boundary Conditions → wall_no_wet Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
620 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Enter 175 degrees for Contact Angles.

b. Click OK to close the Wall dialog box.

Note

This angle affects the dynamics of droplet formation. You can repeat this simulation
to find out how the result changes when the wall is hydrophilic (that is, using a small
contact angle, say 10 degrees).

5. Set the conditions at the side wall of the ink chamber (wall_wet) for the mixture.

Setup → Boundary Conditions → wall_wet Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 621
Using the VOF Model

a. Retain the default setting of 90 degrees for Contact Angles.

b. Click OK to close the Wall dialog box.

16.4.10. Solution
1. Set the solution methods.

Solving → Solution → Methods...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
622 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Enable Non-Iterative Time Advancement.

The non-iterative time advancement (NITA) scheme is often advantageous compared to the iterative
schemes as it is less CPU intensive. Although smaller time steps must be used with NITA compared
to the iterative schemes, the total CPU expense is often smaller. If the NITA scheme leads to convergence
difficulties, then the iterative schemes (for example, PISO, SIMPLE) should be used instead.

b. Select Fractional Step from the Scheme drop-down list in the Pressure-Velocity Coupling group
box.

c. Retain the default selection of Least Squares Cell Based from the Gradient drop-down list in the
Spatial Discretization group box.

d. Retain the default selection of PRESTO! from the Pressure drop-down list.

e. Select QUICK from the Momentum drop-down list.

f. Select Compressive from the Volume-Fraction drop-down list.

2. Enable the plotting of residuals during the calculation.

Solving → Reports → Residuals...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 623
Using the VOF Model

a. Ensure Plot is selected in the Options group box.

b. Click OK to close the Residual Monitors dialog box.

3. Initialize the solution after reviewing the default initial values.

Solving → Initialization → Options...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
624 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Retain the default settings for all the parameters and click Initialize (either in the ribbon or in the
Solution Initialization task page.

4. Define a register for the ink chamber region.

Setting Up Domain → Adapt → Mark/Adapt Cells → Region...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 625
Using the VOF Model

a. Retain the default setting of 0 mm for X Min and Y Min in the Input Coordinates group box.

b. Enter 0.10 mm for X Max.

c. Enter 0.03 mm for Y Max.

d. Click Mark.

ANSYS Fluent will report in the console that 1500 cells were marked for refinement while zero cells
were marked for coarsening.

Tip

You can display and manipulate adaption registers, which are generated using the
Mark command, using the Manage Adaption Registers dialog box. Click the Man-
age... button in the Region Adaption dialog box to open the Manage Adaption
Registers dialog box. For details, see Adapting the Mesh (p. 51).

e. Close the Region Adaption dialog box.

5. Patch the initial distribution of the secondary phase (water-liquid).

Solving → Initialization → Patch...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
626 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Select water-liquid from the Phase drop-down list.

b. Select Volume Fraction from the Variable list.

c. Enter 1 for Value.

d. Select hexahedron-r0 from the Registers to Patch selection list.

e. Click Patch and close the Patch dialog box.

6. Request the saving of data files every 200 steps.

Solving → Activities → Autosave...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 627
Using the VOF Model

a. Enter 200 for Save Data File Every (Time Steps).

b. Ensure that time-step is selected from the Append File Name with drop-down list.

c. Enter inkjet for the File Name.

ANSYS Fluent will append the time step value to the file name prefix (inkjet). The standard .dat
extension will also be appended. This will yield file names of the form inkjet-1-00200.dat,
where 200 is the time step number.

Optionally, you can add the extension .gz to the end of the file name (for example, inkjet.gz),
which instructs ANSYS Fluent to save the data files in a compressed format, yielding file names of the
form inkjet-1-00200.dat.gz.

d. Click OK to close the Autosave dialog box.

7. Save the initial case file (inkjet.cas.gz).

File → Write → Case...

8. Run the calculation.

Solving → Run Calculation

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
628 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Enter 1.0e-8 seconds for the Time Step Size (s).

Note

Small time steps are required to capture the oscillation of the droplet interface and
the associated high velocities. Failure to use sufficiently small time steps may cause
differences in the results between platforms.

b. Enter 3000 for the Number of Time Steps.

c. Click Calculate.

The solution will run for 3000 iterations.

16.4.11. Postprocessing
1. Read the data file for the solution after 6 microseconds (inkjet-1-00600.dat.gz).

File → Read → Data...

2. Create and display a filled contour of water volume fraction after 6 microseconds (Figure 16.5: Contours
of Water Volume Fraction After 6 μs (p. 631)).

Postprocessing → Graphics → Contours → New...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 629
Using the VOF Model

a. Change the Contour Name to contour-volume-fraction.

b. Enable Filled in the Options group box.

c. Select Phases... and Volume fraction from the Contours of drop-down lists.

d. Select water-liquid from the Phase drop-down list.

e. Click Save/Display.

Tip

In order to display the contour plot in the graphics window, you may need to click the

Fit to Window button.

3. Display contours of water volume fraction after 12, 18, 24, and 30 microseconds (Figure 16.6: Contours of
Water Volume Fraction After 12 μs (p. 631) — Figure 16.9: Contours of Water Volume Fraction After 30
μs (p. 633)).

a. Read the data file for the solution after 12 microseconds (inkjet-1-01200.dat.gz).

File → Read → Data...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
630 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

b. Reload the contour graphic saved in the previous step.

Results → Graphics → Contours → contour-volume-fraction Display

c. Repeat these steps for the 18, 24, and 30 microseconds files.

Figure 16.5: Contours of Water Volume Fraction After 6 μs

Figure 16.6: Contours of Water Volume Fraction After 12 μs

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 631
Using the VOF Model

Figure 16.7: Contours of Water Volume Fraction After 18 μs

Figure 16.8: Contours of Water Volume Fraction After 24 μs

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
632 of ANSYS, Inc. and its subsidiaries and affiliates.
Further Improvements

Figure 16.9: Contours of Water Volume Fraction After 30 μs

16.5. Summary
This tutorial demonstrated the application of the volume of fluid method with surface tension effects.
The problem involved the 2D axisymmetric modeling of a transient liquid-gas interface, and postpro-
cessing showed how the position and shape of the surface between the two immiscible fluids changed
over time.

For additional details about VOF multiphase flow modeling, see the Fluent Theory Guide.

16.6. Further Improvements


This tutorial guides you through the steps to reach an initial solution. You may be able to obtain a more
accurate solution by using an appropriate higher-order discretization scheme and by adapting the mesh.
Mesh adaption can also ensure that the solution is independent of the mesh. These steps are demon-
strated in Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 1).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 633
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
634 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 17: Modeling Cavitation
This tutorial is divided into the following sections:
17.1. Introduction
17.2. Prerequisites
17.3. Problem Description
17.4. Setup and Solution
17.5. Summary
17.6. Further Improvements

17.1. Introduction
This tutorial examines the pressure-driven cavitating flow of water through a sharp-edged orifice. This
is a typical configuration in fuel injectors, and brings a challenge to the physics and numerics of cavit-
ation models because of the high pressure differentials involved and the high ratio of liquid to vapor
density. Using the multiphase modeling capability of ANSYS Fluent, you will be able to predict the
strong cavitation near the orifice after flow separation at a sharp edge.

This tutorial demonstrates how to do the following:

• Set boundary conditions for internal flow.

• Use the mixture model with cavitation effects.

• Calculate a solution using the pressure-based coupled solver.

17.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorial Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 1)
found in this manual and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some
steps in the setup and solution procedure will not be shown explicitly.

17.3. Problem Description


The problem considers the cavitation caused by the flow separation after a sharp-edged orifice. The
flow is pressure driven, with an inlet pressure of 5 x 105 Pa and an outlet pressure of 9.5 x 104 Pa. The
orifice diameter is 4 x 10–3 m, and the geometrical parameters of the orifice are D/d = 2.88 and L/d =
4, where D, d, and L are the inlet diameter, orifice diameter, and orifice length respectively. The geometry
of the orifice is shown in Figure 17.1: Problem Schematic (p. 636).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 635
Modeling Cavitation

Figure 17.1: Problem Schematic

17.4. Setup and Solution


The following sections describe the setup and solution steps for this tutorial:
17.4.1. Preparation
17.4.2. Reading and Checking the Mesh
17.4.3. Solver Settings
17.4.4. Models
17.4.5. Materials
17.4.6. Phases
17.4.7. Boundary Conditions
17.4.8. Operating Conditions
17.4.9. Solution
17.4.10. Postprocessing

17.4.1. Preparation
To prepare for running this tutorial:

1. Download the cavitation.zip file here.

2. Unzip cavitation.zip to your working directory.

3. The mesh file cav.msh can be found in the folder.

4. Use the Fluent Launcher to start the 2D version of ANSYS Fluent.

Fluent Launcher displays your Display Options preferences from the previous session.

For more information about Fluent Launcher, see starting ANSYS Fluent using the Fluent Launcher
in the Fluent Getting Started Guide.

5. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.

6. Ensure that the Serial processing option is selected.

7. Enable Double Precision.

Note

The double precision solver is recommended for modeling multiphase flows simulation.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
636 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

17.4.2. Reading and Checking the Mesh


1. Read the mesh file cav.msh.

File → Read → Mesh...

As ANSYS Fluent reads the mesh file, it will report the progress in the console. You can disregard the
warnings about the use of axis boundary conditions, as you will make the appropriate change to the
solver settings in the next step.

2. Check the mesh.

Setting Up Domain → Mesh → Check

ANSYS Fluent will perform various checks on the mesh and will report the progress in the console. Ensure
that the reported minimum volume is a positive number.

3. Check the mesh scale.

Setting Up Domain → Mesh → Scale...

a. Retain the default settings.

b. Close the Scale Mesh dialog box.

4. Examine the mesh (Figure 17.2: The Mesh in the Orifice (p. 638)).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 637
Modeling Cavitation

Figure 17.2: The Mesh in the Orifice

As seen in Figure 17.2: The Mesh in the Orifice (p. 638), half of the problem geometry is modeled, with an
axis boundary (consisting of two separate lines) at the centerline. The quadrilateral mesh is slightly graded
in the plenum to be finer toward the orifice. In the orifice, the mesh is uniform with aspect ratios close
to , as the flow is expected to exhibit two-dimensional gradients.

When you display data graphically in a later step, you will mirror the view across the centerline to obtain
a more realistic view of the model.

Since the bubbles are small and the flow is high speed, gravity effects can be neglected and the problem
can be reduced to axisymmetrical. If gravity could not be neglected and the direction of gravity were not
coincident with the geometrical axis of symmetry, you would have to solve a 3D problem.

17.4.3. Solver Settings


1. Specify an axisymmetric model.

Seup → General

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
638 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Retain the default selection of Pressure-Based in the Type list.

The pressure-based solver must be used for multiphase calculations.

b. Select Axisymmetric in the 2D Space list.

Note

A computationally intensive, transient calculation is necessary to accurately simulate the


irregular cyclic process of bubble formation, growth, filling by water jet re-entry, and
break-off. In this tutorial, you will perform a steady-state calculation to simulate the
presence of vapor in the separation region in the time-averaged flow.

17.4.4. Models
1. Enable the multiphase mixture model.

Setting Up Physics → Models → Multiphase...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 639
Modeling Cavitation

a. Select Mixture in the Model list.

The Multiphase Model dialog box will expand.

b. Clear Slip Velocity in the Mixture Parameters group box.

In this flow, the high level of turbulence does not allow large bubble growth, so gravity is not important.
It is also assumed that the bubbles have same velocity as the liquid. Therefore, there is no need to
solve for the slip velocity.

c. Click OK to close the Multiphase Model dialog box.

2. Enable the realizable - turbulence model with standard wall functions.

Setting Up Physics → Models → Viscous...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
640 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Select k-epsilon (2 eqn) in the Model list.

b. Select Realizable in the k-epsilon Model list.

c. Retain the default of Standard Wall Functions in the Near-Wall Treatment list.

d. Click OK to close the Viscous Model dialog box.

17.4.5. Materials
For the purposes of this tutorial, you will be modeling the liquid and vapor phases as incompressible.
Note that more comprehensive models are available for the densities of these phases, and could be
used to more fully capture the affects of the pressure changes in this problem.

1. Create a new material to be used for the primary phase.

Setup → Materials → Fluid New...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 641
Modeling Cavitation

a. Enter water for Name.

b. Enter 1000 kg/m3 for Density.

c. Enter 0.001 kg/m–s for Viscosity.

d. Click Change/Create.

A Question dialog box will open, asking if you want to overwrite air. Click Yes.

2. Copy water vapor from the materials database and modify the properties of your local copy.

a. In the Create/Edit Materials dialog box, click the Fluent Database... button to open the Fluent
Database Materials dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
642 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

i. Select water-vapor (h2o) from the Fluent Fluid Materials selection list.

Scroll down the list to find water-vapor (h2o).

ii. Click Copy to include water vapor in your model.

water-vapor appears under Fluid in the Materials task page

iii. Close the Fluent Database Materials dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 643
Modeling Cavitation

b. Enter 0.02558 kg/m3 for Density.

c. Enter 1.26e-06 kg/m–s for Viscosity.

d. Click Change/Create and close the Create/Edit Materials dialog box.

17.4.6. Phases

Setup → Models → Multiphase (Mixture) → Phases Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
644 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

1. Specify liquid water as the primary phase.

a. In the Phases dialog box, select phase 1 – Primary Phase and click Edit... to open the Primary Phase
dialog box.

b. Enter liquid for Name.

c. Retain the default selection of water from the Phase Material drop-down list.

d. Click OK to close the Primary Phase dialog box.

2. Specify water vapor as the secondary phase.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 645
Modeling Cavitation

a. In the Phases dialog box, select phase 2 – Secondary Phase and click Edit... to open the Secondary
Phase dialog box.

b. Enter vapor for Name.

c. Select water-vapor from the Phase Material drop-down list.

d. Click OK to close the Secondary Phase dialog box.

3. Enable the cavitation model.

a. In the Phases dialog box, click Interaction... to open the Phase Interaction dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
646 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

b. In the Mass tab, set Number of Mass Transfer Mechanisms to 1.

The dialog box expands to show relevant modeling parameters.

c. Ensure that liquid is selected from the From Phase drop-down list in the Mass Transfer group box.

d. Select vapor from the To Phase drop-down list.

e. Select cavitation from the Mechanism drop-down list.

The Cavitation Model dialog box will open to show the cavitation inputs.

i. Retain the value of 3540 Pa for Vaporization Pressure.

The vaporization pressure is a property of the working liquid, which depends mainly on the tem-
perature and pressure. The default value is the vaporization pressure of water at 1 atmosphere
and a temperature of 300 K.

ii. Set the Bubble Number Density to 1e11.

iii. Click OK to close the Cavitation Model dialog box.

f. Click OK to close the Phase Interaction dialog box.

4. Close the Phases dialog box.

17.4.7. Boundary Conditions


For the multiphase mixture model, you will specify conditions for the mixture (that is, conditions that apply
to all phases) and the conditions that are specific to the primary and secondary phases. In this tutorial,
boundary conditions are required only for the mixture and secondary phase of two boundaries: the pressure
inlet (consisting of two boundary zones) and the pressure outlet. The pressure outlet is the downstream
boundary, opposite the pressure inlets.

Setup → Boundary Conditions

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 647
Modeling Cavitation

1. Set the boundary conditions at inlet_1 for the mixture. Ensure that mixture is selected from the Phase
drop-down list in the Boundary Conditions task page.

Setup → Boundary Conditions → inlet_1 → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
648 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Enter 500000 Pa for Gauge Total Pressure.

b. Enter 449000 Pa for Supersonic/Initial Gauge Pressure.

If you choose to initialize the solution based on the pressure-inlet conditions, the Supersonic/Initial
Gauge Pressure will be used in conjunction with the specified stagnation pressure (the Gauge Total
Pressure) to compute initial values according to the isentropic relations (for compressible flow) or
Bernoulli’s equation (for incompressible flow). Otherwise, in an incompressible flow calculation, ANSYS
Fluent will ignore the Supersonic/Initial Gauge Pressure input.

c. Retain the default selection of Normal to Boundary from the Direction Specification Method drop-
down list.

d. Select K and Epsilon from the Specification Method drop-down list in the Turbulence group box.

e. Enter 0.02 m2/s2 for Turbulent Kinetic Energy.

f. Retain the value of 1 m2/s3 for Turbulent Dissipation Rate.

g. Click OK to close the Pressure Inlet dialog box.

2. Set the boundary conditions at inlet-1 for the secondary phase.

Setup → Boundary Conditions → inlet_1

a. Select vapor from the Phase drop-down list.

b. Click Edit... to open the Pressure Inlet dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 649
Modeling Cavitation

i. In the Multiphase tab, retain the default value of 0 for Volume Fraction.

ii. Click OK to close the Pressure Inlet dialog box.

3. Copy the boundary conditions defined for the first pressure inlet zone (inlet_1) to the second pressure
inlet zone (inlet_2).

Setup → Boundary Conditions → inlet_1

a. Select mixture from the Phase drop-down list.

b. Click Copy... to open the Copy Conditions dialog box.

i. Select inlet_1 from the From Boundary Zone selection list.

ii. Select inlet_2 from the To Boundary Zones selection list.

iii. Click Copy.

A Question dialog box will open, asking if you want to copy inlet_1 boundary conditions to in-
let_2. Click OK.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
650 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

iv. Close the Copy Conditions dialog box.

4. Set the boundary conditions at outlet for the mixture.

Setup → Boundary Conditions → outlet → Edit...

a. Enter 95000 for Gauge Pressure.

b. Select K and Epsilon from the Specification Method drop-down list in the Turbulence group box.

c. Enter 0.02 m2/s2 for Backflow Turbulent Kinetic Energy.

d. Retain the value of 1 m2/s3 for Backflow Turbulent Dissipation Rate.

e. Click OK to close the Pressure Outlet dialog box.

5. Set the boundary conditions at outlet for the secondary phase.

Setup → Boundary Conditions → outlet

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 651
Modeling Cavitation

a. Select vapor from the Phase drop-down list.

b. Click Edit... to open the Pressure Outlet dialog box.

i. In the Multiphase tab, retain the default value of 0 for Backflow Volume Fraction.

ii. Click OK to close the Pressure Outlet dialog box.

17.4.8. Operating Conditions


1. Set the operating pressure.

Setup → Boundary Conditions → Operating Conditions...

a. Enter 0 Pa for Operating Pressure.

b. Click OK to close the Operating Conditions dialog box.

17.4.9. Solution
1. Set the solution parameters.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
652 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Solving → Solution → Methods...

a. Select Coupled from the Scheme drop-down list in the Pressure-Velocity Coupling group box.

b. Retain the selection of PRESTO! from the Pressure drop-down list in the Spatial Discretization group
box.

c. Select QUICK for Momentum and Volume Fraction.

d. Retain First Order Upwind for Turbulent Kinetic Energy and Turbulent Dissipation Rate.

e. Enable Pseudo Transient.

f. Enable High Order Term Relaxation.

The relaxation of high order terms will help to improve the solution behavior of flow simulations
when higher order spatial discretizations are used (higher than first).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 653
Modeling Cavitation

2. Set the solution controls.

Solving → Controls → Controls...

a. Set the pseudo transient explicit relaxation factor for Volume Fraction to 0.3.

3. Enable the plotting of residuals during the calculation.

Solving → Reports → Residuals...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
654 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Ensure that Plot is enabled in the Options group box.

b. Enter 1e-05 for the Absolute Criteria of continuity, x-velocity, y-velocity, k, and epsilon.

Decreasing the criteria for these residuals will improve the accuracy of the solution.

c. Click OK to close the Residual Monitors dialog box.

4. Initialize the solution.

Solving → Initialization

a. Select Hybrid initialization method from the Initialization group.

b. Click More Settings... to open the Hybrid Initialization dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 655
Modeling Cavitation

c. Enable Use Specified Initial Pressure on Inlets in the Initialization Options group box. The velocity
will now be initialized to the Initial Gauge Pressure value that you set in the Pressure Inlet boundary
condition dialog box. For more information on initialization options, see hybrid initialization in the
Fluent User's Guide.

d. Click OK to close the Hybrid Initialization dialog box.

e. Click Initialize to initialize the solution.

Note

For flows in complex topologies, hybrid initialization will provide better initial velocity
and pressure fields than standard initialization. This will help to improve the conver-
gence behavior of the solver.

5. Save the case file (cav.cas.gz).

File → Write → Case...

6. Start the calculation by requesting 400 iterations.

Solving → Run Calculation → Advanced...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
656 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Enter 400 for Number of Iterations.

b. Click Calculate.

The solution will converge in approximately 305 iterations.

7. Save the data file (cav.dat.gz).

File → Write → Data...

17.4.10. Postprocessing
1. Create and plot a definition of pressure contours in the orifice (Figure 17.3: Contours of Static Pres-
sure (p. 659)).

Postprocessing → Graphics → Contours → New...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 657
Modeling Cavitation

a. Change Contour Name to contour-static-pressure

b. Enable Filled in the Options group box.

c. Retain the default selection of Pressure... and Static Pressure from the Contours of drop-down lists.

d. Click Save/Display and close the Contours dialog box.

The contour-static-pressure contour definition appears under the Results/Graphics/Con-


tours tree branch. Once you create a plot definition, you can use a right-click menu to display
this definition at a later time, for instance, in subsequent simulations with different settings ;or
in combination with other plot definitions.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
658 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 17.3: Contours of Static Pressure

Note the dramatic pressure drop at the flow restriction in Figure 17.3: Contours of Static Pressure (p. 659).
Low static pressure is the major factor causing cavitation. Additionally, turbulence contributes to cavitation
due to the effect of pressure fluctuation (Figure 17.4: Mirrored View of Contours of Static Pressure (p. 660))
and turbulent diffusion (Figure 17.5: Contours of Turbulent Kinetic Energy (p. 661)).

2. Mirror the display across the centerline (Figure 17.4: Mirrored View of Contours of Static Pressure (p. 660)).

Viewing → Display → Views...

Mirroring the display across the centerline gives a more realistic view.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 659
Modeling Cavitation

a. Select symm_2 and symm_1 from the Mirror Planes selection list.

b. Click Apply and close the Views dialog box.

Figure 17.4: Mirrored View of Contours of Static Pressure

3. Create and plot a contour definition of the turbulent kinetic energy (Figure 17.5: Contours of Turbulent
Kinetic Energy (p. 661)).

Postprocessing → Graphics → Contours → New...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
660 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Change Contour Name to contour-tke

b. Enable Filled in the Options group box.

c. Select Turbulence... and Turbulent Kinetic Energy(k) from the Contours of drop-down lists.

d. Click Save/Display.

Figure 17.5: Contours of Turbulent Kinetic Energy

In this example, the mesh used is fairly coarse. However, in cavitating flows the pressure distribution is
the dominant factor, and is not very sensitive to mesh size.

4. Create and plot a contour definition of the volume fraction of water vapor (Figure 17.6: Contours of Vapor
Volume Fraction (p. 662)).

Postprocessing → Graphics → Contours → New...

a. Change Contour Name to contour-vf-vapor

b. Enable Filled in the Options group box.

c. Select Phases... and Volume fraction from the Contours of drop-down lists.

d. Select vapor from the Phase drop-down list.

e. Click Save/Display and close the Contours dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 661
Modeling Cavitation

Figure 17.6: Contours of Vapor Volume Fraction

The high turbulent kinetic energy region near the neck of the orifice in Figure 17.5: Contours of Turbulent
Kinetic Energy (p. 661) coincides with the highest volume fraction of vapor in Figure 17.6: Contours of
Vapor Volume Fraction (p. 662). This indicates the correct prediction of a localized high phase change
rate. The vapor then gets convected downstream by the main flow.

17.5. Summary
This tutorial demonstrated how to set up and resolve a strongly cavitating pressure-driven flow through
an orifice, using multiphase mixture model of ANSYS Fluent with cavitation effects. You learned how
to set the boundary conditions for an internal flow. A steady-state solution was calculated to simulate
the formation of vapor in the neck of the flow after the section restriction at the orifice. A more compu-
tationally intensive transient calculation is necessary to accurately simulate the irregular cyclic process
of bubble formation, growth, filling by water jet re-entry, and break-off.

17.6. Further Improvements


This tutorial guides you through the steps to reach an initial solution. You may be able to obtain a more
accurate solution by using an appropriate higher-order discretization scheme and by adapting the mesh.
Mesh adaption can also ensure that the solution is independent of the mesh. These steps are demon-
strated in Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 1).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
662 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 18: Using the Mixture and Eulerian Multiphase Models
This tutorial is divided into the following sections:
18.1. Introduction
18.2. Prerequisites
18.3. Problem Description
18.4. Setup and Solution
18.5. Summary
18.6. Further Improvements

18.1. Introduction
This tutorial examines the flow of water and air in a tee junction. Initially you will solve the problem
using the less computationally intensive mixture model. You will then switch to the more accurate Eu-
lerian model and compare the results of these two approaches.

This tutorial demonstrates how to do the following:

• Use the mixture model with slip velocities.

• Set boundary conditions for internal flow.

• Calculate a solution using the pressure-based coupled solver with the mixture model.

• Use the Eulerian model.

• Calculate a solution using the multiphase coupled solver with the Eulerian model.

• Display the results obtained using the two approaches for comparison.

18.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorial Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 1)
found in this manual and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some
steps in the setup and solution procedure will not be shown explicitly.

18.3. Problem Description


This problem considers an air-water mixture flowing upwards in a duct and then splitting in a tee
junction. The ducts are 25 mm in width, the inlet section of the duct is 125 mm long, and the top and
the side ducts are 250 mm long. The schematic of the problem is shown in Figure 18.1: Problem Spe-
cification (p. 664).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 663
Using the Mixture and Eulerian Multiphase Models

Figure 18.1: Problem Specification

18.4. Setup and Solution


The following sections describe the setup and solution steps for this tutorial:
18.4.1. Preparation
18.4.2. Mesh
18.4.3. General Settings
18.4.4. Models
18.4.5. Materials
18.4.6. Phases
18.4.7. Boundary Conditions
18.4.8. Operating Conditions
18.4.9. Solution Using the Mixture Model
18.4.10. Postprocessing for the Mixture Solution
18.4.11. Higher Order Solution using the Mixture Model
18.4.12. Setup and Solution for the Eulerian Model
18.4.13. Postprocessing for the Eulerian Model

18.4.1. Preparation
To prepare for running this tutorial:

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
664 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

1. Download the mix_eulerian_multiphase.zip file here.

2. Unzip mix_eulerian_multiphase.zip to your working directory.

3. The file tee.msh can be found in the folder.

4. Use Fluent Launcher to enable Double Precision and start the 2D version of ANSYS Fluent.

Fluent Launcher displays your Display Options preferences from the previous session.

For more information about Fluent Launcher, see starting ANSYS Fluent using the Fluent Launcher
in the Fluent Getting Started Guide.

5. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.

6. Run in Serial under Processing Options.

Note

The double precision solver is recommended for modeling multiphase flow simulations.

18.4.2. Mesh
1. Read the mesh file tee.msh.

File → Read → Mesh...

As ANSYS Fluent reads the mesh file, it will report the progress in the console.

18.4.3. General Settings


1. Check the mesh.

Setting Up Domain → Mesh → Check

ANSYS Fluent will perform various checks on the mesh and will report the progress in the console. Ensure
that the reported minimum volume is a positive number.

2. Examine the mesh (Figure 18.2: Mesh Display (p. 666)).

Extra

You can use the right mouse button to probe for mesh information in the graphics win-
dow. If you click the right mouse button on any node in the mesh, information will be
displayed in the ANSYS Fluent console about the associated zone, including the name of
the zone. This feature is especially useful when you have several zones of the same type
and you want to distinguish between them quickly.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 665
Using the Mixture and Eulerian Multiphase Models

Figure 18.2: Mesh Display

3. Retain the default settings for the pressure-based solver.

Setup → General

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
666 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

18.4.4. Models
1. Select the mixture multiphase model with slip velocities.

Setting Up Physics → Models → Multiphase...

a. Select Mixture in the Model list.

The Multiphase Model dialog box will expand to show the inputs for the mixture model.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 667
Using the Mixture and Eulerian Multiphase Models

b. Ensure that Slip Velocity is enabled in the Mixture Parameters group box.

You need to solve the slip velocity equation because there will be significant difference in velocities
for the different phases.

c. Enable Implicit Body Force in the Body Force Formulation group box.

This treatment improves solution convergence by accounting for the partial equilibrium of the pressure
gradient and body forces in the momentum equations. It is used in VOF and mixture problems, where
body forces are large in comparison to viscous and convective forces.

d. Click OK to close the Multiphase Model dialog box.

2. Select the realizable - turbulence model with standard wall functions.

Setting Up Physics → Models → Viscous...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
668 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Select k-epsilon in the Model list.

b. Select Realizable under in the k-epsilon Model list.

The realizable - model is recommended in cases where flow separation around sharp corners or
over bluff bodies can be expected.

c. Retain Standard Wall Functions in the Near-Wall Treatment list.

This problem does not require a particularly fine mesh, and standard wall functions will be used.

d. Click OK to close the Viscous Model dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 669
Using the Mixture and Eulerian Multiphase Models

18.4.5. Materials
1. Copy the properties for liquid water from the materials database so that it can be used for the primary
phase.

Setup → Materials → Fluid → air Edit...

a. Click the Fluent Database... button to open the Fluent Database Materials dialog box.

i. Select water-liquid (h2o < l >) from the Fluent Fluid Materials selection list.

Scroll down the list to find water-liquid (h2o < l >).

ii. Click Copy to copy the properties for liquid water to your model.

iii. Close the Fluent Database Materials dialog box.

b. Close the Create/Edit Materials dialog box.

18.4.6. Phases
In the following steps you will define the liquid water and air phases that flow in the tee junction.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
670 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

1. Specify liquid water as the primary phase.

Setup → Models → Multiphase → Phases → phase-1 Edit...

a. Enter water for Name.

b. Select water-liquid from the Phase Material drop-down list.

c. Click OK to close the Primary Phase dialog box.

2. Specify air as the secondary phase.

Setup → Models → Multiphase → Phases → phase-2 Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 671
Using the Mixture and Eulerian Multiphase Models

a. Enter air for Name.

b. Retain the default selection of air from the Phase Material drop-down list.

c. Enter 0.001 m for Diameter.

d. Click OK to close the Secondary Phase dialog box.

3. Check that the drag coefficient is set to be calculated using the Schiller-Naumann drag law.

Setup → Models → Multiphase → Phases → Phases Interactions Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
672 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Retain the default selection of schiller-naumann from the Drag Coefficient drop-down list.

The Schiller-Naumann drag law describes the drag between the spherical particle and the surrounding
liquid for a wide range of conditions provided the bubbles remain approximately spherical. In this
case, the bubbles have a diameter of 1 mm which is within the spherical regime.

b. Click OK to close the Phase Interaction dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 673
Using the Mixture and Eulerian Multiphase Models

18.4.7. Boundary Conditions

For this problem, you need to set the boundary conditions for three boundaries: the velocity inlet and the
two outflows. Since this is a mixture multiphase model, you will set the conditions at the velocity inlet that
are specific for the mixture (conditions that apply to all phases) and also conditions that are specific to the
primary and secondary phases.

1. Set the boundary conditions at the velocity inlet (velocity-inlet-4) for the mixture.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
674 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Setup → Boundary Conditions → velocity-inlet-4 Edit...

a. Retain the default selection of Intensity and Viscosity Ratio as the turbulence Specification Method.

b. Retain the default of 5 % for Turbulent Intensity.

c. Retain the default of 10 for Turbulent Viscosity Ratio.

d. Click OK to close the Velocity Inlet dialog box.

2. Set the boundary conditions at the velocity inlet (velocity-inlet-4) for the primary phase (water).

Setup → Boundary Conditions → velocity-inlet-4 → water Edit...

a. Retain the default selection of Magnitude, Normal to Boundary from the Velocity Specification
Method drop-down list.

b. Retain the default selection of Absolute from the Reference Frame drop-down list.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 675
Using the Mixture and Eulerian Multiphase Models

c. Enter 1.53 m/s for Velocity Magnitude.

d. Click OK to close the Velocity Inlet dialog box.

Note

Note that you can also open the Velocity Inlet dialog box by double-clicking the
Setup/Boundary Conditions/velocity-inlet-4/water tree item.

3. Set the boundary conditions at the velocity inlet (velocity-inlet-4) for the secondary phase (air).

Setup → Boundary Conditions → velocity-inlet-4 → air Edit...

a. Retain the default selection of Magnitude, Normal to Boundary from the Velocity Specification
Method drop-down list.

b. Retain the default selection of Absolute from the Reference Frame drop-down list.

c. Enter 1.53 m/s for Velocity Magnitude.

In multiphase flows, the volume rate of each phase is usually known. Volume rate divided by the inlet
area gives the superficial velocity, which is the product of the inlet physical velocity and the volume
fraction. When you have two phases, you must enter two physical velocities and the volume fraction
of the secondary phase. Here it is assumed that bubbles at the inlet are moving at the same physical
speed as the water.

d. Click the Multiphase tab and enter 0.02 for Volume Fraction.

e. Click OK to close the Velocity Inlet dialog box.

Note

Note that you can also open the Velocity Inlet dialog box by double-clicking the
Setup/Boundary Conditions/velocity-inlet-4/air tree item.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
676 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

4. Set the boundary conditions at outflow-5 for the mixture.

Setup → Boundary Conditions → outflow-5 Edit...

a. Click Edit... to open the Outflow dialog box.

i. Enter 0.62 for Flow Rate Weighting.

ii. Click OK to close the Outflow dialog box.

5. Set the boundary conditions at outflow-3 for the mixture.

Setup → Boundary Conditions → outflow-3 Edit...

a. Enter 0.38 for Flow Rate Weighting.

b. Click OK to close the Outflow dialog box.

18.4.8. Operating Conditions


1. Set the gravitational acceleration.

Setup → Boundary Conditions → Operating Conditions...

a. Enable Gravity.

The Operating Conditions dialog box will expand to show additional inputs.

b. Enter -9.81 m/s2 for Y in the Gravitational Acceleration group box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 677
Using the Mixture and Eulerian Multiphase Models

c. Enable Specified Operating Density.

d. Enter 0 kg/m3 for Operating Density.

ANSYS Fluent redefines the fluid pressure by removing the hydrostatic component based on an average
density in the domain or a user-specified operating density. By setting the operating density to 0 you
force the hydrostatic pressure to appear explicitly in the postprocessed results. For more information,
refer to the Fluent User's Guide.

e. Click OK to close the Operating Conditions dialog box.

18.4.9. Solution Using the Mixture Model


You will begin by calculating a preliminary solution using first-order discretization for momentum,
volume fraction and turbulence quantities. You will then change to higher-order methods to refine the
solution.

1. Set the solution parameters.

Solving → Solution → Methods...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
678 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Select Coupled from the Scheme drop-down list.

b. Confirm that PRESTO! is selected from the Pressure drop-down list.

The PRESTO! method for pressure is a good choice when buoyancy and inertial forces are present.

2. Set the solution controls.

Solving → Solution → Controls...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 679
Using the Mixture and Eulerian Multiphase Models

a. Enter 40 for Flow Courant Number.

b. Enter 0.4 for Volume Fraction in the Under-Relaxation Factors group box.

3. Enable the plotting of residuals during the calculation.

Solving → Reports → Residuals...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
680 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Ensure that Plot is enabled in the Options group box.

b. Enter 1e-05 for Absolute Criteria for continuity.

c. Click OK to close the Residual Monitors dialog box.

4. Initialize the solution.

Solving → Initialization → Hybrid

a. Select Hybrid as the initialization Method (Initialization group).

b. Click Initialize.

Note

For flows in complex topologies, hybrid initialization will provide better initial velocity
and pressure fields than standard initialization. In general, this will help in improving
the convergence behavior of the solver.

5. Save the case file (tee_1a.cas.gz).

File → Write → Case...

6. Start the calculation by requesting 400 iterations.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 681
Using the Mixture and Eulerian Multiphase Models

Solving → Run Calculation

7. Save the case and data files (tee_1a.cas.gz and tee_1a.dat.gz).

File → Write → Case & Data...

8. Check the total mass flow rate for each phase.

Postprocessing → Reports → Fluxes...

a. Retain the default selection of Mass Flow Rate in the Options list.

b. Select water from the Phase drop-down list.

c. Select outflow-3, outflow-5, and velocity-inlet-4 from the Boundaries selection list.

d. Click Compute.

Note that the net mass flow rate of water is a small fraction of the inlet and outlet flow rates (<0.1%),
indicating that mass is conserved.

e. Select air from the Phase drop-down list and click Compute again.

Again, note that the net mass flow rate of air is small compared to the inlet and outlet flow rates.

f. Close the Flux Reports dialog box.

18.4.10. Postprocessing for the Mixture Solution


1. Display the static pressure field in the tee (Figure 18.3: Contours of Static Pressure (p. 684)).

Postprocessing → Graphics → Contours → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
682 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Enable Filled in the Options group box.

b. Retain the default selection of Pressure... and Static Pressure from the Contours of drop-down lists.

c. Click Display.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 683
Using the Mixture and Eulerian Multiphase Models

Figure 18.3: Contours of Static Pressure

In Figure 18.3: Contours of Static Pressure (p. 684) the hydrostatic pressure gradient is readily apparent in
the vertical arm — a result of setting the Operating Density to 0.

2. Display contours of velocity magnitude (Figure 18.4: Contours of Velocity Magnitude (p. 685)).

Postprocessing → Graphics → Contours → Edit...

a. Select Velocity... and Velocity Magnitude from the Contours of drop-down lists.

b. Select water from the Phase drop-down list.

c. Click Display.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
684 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 18.4: Contours of Velocity Magnitude

3. Display the volume fraction of air (Figure 18.5: Contours of Air Volume Fraction (p. 686)).

Postprocessing → Graphics → Contours → Edit...

a. Select Phases... and Volume fraction from the Contours of drop-down lists.

b. Select air from the Phase drop-down list.

c. Click Display and close the Contours dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 685
Using the Mixture and Eulerian Multiphase Models

Figure 18.5: Contours of Air Volume Fraction

When gravity acts downwards, it induces stratification in the side arm of the tee junction. In Fig-
ure 18.5: Contours of Air Volume Fraction (p. 686), you can see that the gas (air) tends to concentrate on
the upper part of the side arm. In this case, gravity acts against inertia that tends to concentrate gas on
the low pressure side, thereby creating gas pockets. In the vertical arm, both the gas and the water have
velocities in the same direction, and therefore there is no separation. The outflow split modifies the relation
between inertia forces and gravity to a large extent, and has an important role in flow distribution and
on the gas concentration.

18.4.11. Higher Order Solution using the Mixture Model


In this step you will change to higher order discretization schemes and continue the calculation to refine
the solution.

1. Revisit the Solution Methods task page and make the following selections:

Group Setting Value


Spatial Discretization Pressure PRESTO!
Momentum Third-Order MUSCL
Volume Fraction QUICK
Turbulent Kinetic Energy Third-Order MUSCL
Turbulent Dissipation Rate Third-Order MUSCL

2. Run the calculation for an additional 500 iterations.

3. Save the case and data files as tee_1b.cas.gz and tee_1b.dat.gz

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
686 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

File → Write → Case & Data...

4. Plot the contours of air volume fraction using the higher order method on the same scale as in Fig-
ure 18.5: Contours of Air Volume Fraction (p. 686).

Postprocessing → Graphics → Contours → Edit...

a. Select Phases... and Volume fraction from the Contours of drop-down lists.

b. Select air from the Phase drop-down list.

c. Disable Auto Range and Clip to Range.

d. Enter 0 and 3.70e-1 for Min and Max, respectively.

e. Click Display and close the Contours dialog box.

Figure 18.6: Contours of Air Volume Fraction — Higher Order Solution

18.4.12. Setup and Solution for the Eulerian Model


The mixture model is a simplification of the Eulerian model and is valid only when bubble inertia can be
neglected. This assumption can be violated in the recirculation pattern. The Eulerian model also offers
models for various non-drag forces that are not available when using the mixture model. As a result, the
Eulerian model is expected to make a more realistic prediction in this case. You will use the solution obtained
using the mixture model as an initial condition for the calculation using the Eulerian model. Because you
have already computed a reasonable initial solution, you will continue with the higher order discretization
methods.

1. Select the Eulerian multiphase model.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 687
Using the Mixture and Eulerian Multiphase Models

Setting Up Physics → Models → Multiphase...

a. Select Eulerian in the Model list.

b. Click OK to close the Multiphase Model dialog box.

2. Specify the drag and lift laws to be used for computing the interphase momentum transfer.

Setup → Models → Multiphase → Phases → Phases Interactions Edit...

a. In the Drag tab, retain the default selection of schiller-naumann from the Drag Coefficient drop-
down list.

b. In the Lift tab, select legendre-magnaudet from the Lift Coefficient drop-down list.

Lift forces can arise when the gradient of the primary phase velocity field has a component normal
to the bubble flow.

c. Click OK to close the Phase Interaction dialog box.

Note

For this problem, there are no parameters to be set for the individual phases other than
those that you specified when you set up the phases for the mixture model calculation.
If you use the Eulerian model for a flow involving a granular secondary phase, you will

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
688 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

need to set additional parameters. There are also other options in the Phase Interaction
dialog box that may be relevant for other applications.

For details on setting up an Eulerian multiphase calculation, see the Fluent User's Guide.

3. Select the multiphase turbulence model.

Setting Up Physics → Models → Viscous...

a. Retain the default selection of Mixture in the Turbulence Multiphase Model list.

In this case the dispersed phase volume concentration is relatively small so the mixture turbulence
model is sufficient to capture the important features of the turbulent flow.

b. Click OK to close the Viscous Model dialog box.

4. Confirm that the solution parameters are set to use the higher-order discretization schemes.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 689
Using the Mixture and Eulerian Multiphase Models

Revisit the Solution Methods task page and verify that the settings are as follows:

Group Setting Value


Pressure-Velocity Coupling Scheme Coupled
Spatial Discretization Momentum Third-Order MUSCL
Volume Fraction QUICK
Turbulent Kinetic Energy Third-Order MUSCL
Turbulent Dissipation Rate Third-Order MUSCL

5. Set the solution controls

Solution Controls

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
690 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Enter 40 for Flow Courant Number.

b. Enter 0.5 for Momentum and for Pressure in the Explicit Relaxation Factors group box.

c. Confirm that Volume Fraction is set to 0.4 in the Under-Relaxation Factors group box.

6. Continue the solution by requesting 400 additional iterations.

Solving → Run Calculation → Calculate

7. Check that the mass imbalance is small (less than about 0.2 %) using the Flux Reports dialog box as for
the Mixture model solution.

Postprocessing → Reports → Fluxes...

8. Save the case and data files (tee_2.cas.gz and tee_2.dat.gz).

File → Write → Case & Data...

18.4.13. Postprocessing for the Eulerian Model


1. Display the static pressure field in the tee for the mixture (Figure 18.7: Contours of Static Pressure — Eulerian
Model (p. 692)).

Postprocessing → Graphics → Contours → Edit...

a. Select Pressure... from the Contours of drop-down list.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 691
Using the Mixture and Eulerian Multiphase Models

By default, Dynamic Pressure will be displayed in the lower Contours of drop-down list. This will
automatically change to Static Pressure after you select the appropriate phase in the next step.

b. Select mixture from the Phase drop-down list.

The lower Contours of drop-down list will now display Static Pressure.

c. As before, disable Auto Range (Clip to Range will be enabled) and set the Min and Max values to
match those in Figure 18.3: Contours of Static Pressure (p. 684).

d. Click Display.

Figure 18.7: Contours of Static Pressure — Eulerian Model

2. Display contours of velocity magnitude for water (Figure 18.8: Contours of Water Velocity Magnitude —
Eulerian Model (p. 693)).

Postprocessing → Graphics → Contours → Edit...

a. Select Velocity... and Velocity Magnitude from the Contours of drop-down lists.

b. Retain the selection of water from the Phase drop-down list.

Since the Eulerian model solves individual momentum equations for each phase, you can choose the
phase for which solution data is plotted.

c. Set the range to match that in Figure 18.4: Contours of Velocity Magnitude (p. 685).

d. Click Display.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
692 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 18.8: Contours of Water Velocity Magnitude — Eulerian Model

3. Display the volume fraction of air (Figure 18.9: Contours of Air Volume Fraction — Eulerian model (p. 694)).

Postprocessing → Graphics → Contours → Edit...

a. Select Phases... and Volume fraction from the Contours of drop-down lists.

b. Select air from the Phase drop-down list.

c. Set the range to match that in Figure 18.5: Contours of Air Volume Fraction (p. 686).

d. Click Display and close the Contours dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 693
Using the Mixture and Eulerian Multiphase Models

Figure 18.9: Contours of Air Volume Fraction — Eulerian model

Compare the volume fraction plot in Figure 18.9: Contours of Air Volume Fraction — Eulerian model (p. 694)
with the volume fraction plot using the mixture model in Figure 18.6: Contours of Air Volume Fraction
— Higher Order Solution (p. 687). Notice that the path of the concentrated air stream in the side arm
extends farther into the side arm before drifting to the top surface. As is apparent from the velocity plots,
there is a substantial velocity gradient across the side arm as a result of the recirculation near the lower
corner of the tee junction. As the dispersed phase bubbles travel along the side arm with the flow, this
velocity gradient induces a lift force which tends to oppose the buoyancy force thereby delaying the ac-
cumulation of the air concentration along the top surface of the side arm.

18.5. Summary
This tutorial demonstrated how to set up and solve a multiphase problem using the mixture model and
the Eulerian model. You learned how to set boundary conditions for the mixture and both phases. The
solution obtained with the mixture model was used as a starting point for the calculation with the Eu-
lerian model. After completing calculations for each model, you displayed the results to allow for a
comparison of the two approaches. For more information about the mixture and Eulerian models, see
the Fluent User's Guide.

18.6. Further Improvements


This tutorial guides you through the steps to reach an initial set of solutions. You may be able to obtain
a more accurate solution by adapting the mesh. Mesh adaption can also ensure that the solution is in-
dependent of the mesh. These steps are demonstrated in Introduction to Using ANSYS Fluent: Fluid
Flow and Heat Transfer in a Mixing Elbow (p. 1).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
694 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 19: Modeling Solidification
This tutorial is divided into the following sections:
19.1. Introduction
19.2. Prerequisites
19.3. Problem Description
19.4. Setup and Solution
19.5. Summary
19.6. Further Improvements

19.1. Introduction
This tutorial illustrates how to set up and solve a problem involving solidification and will demonstrate
how to do the following:

• Define a solidification problem.

• Define pull velocities for simulation of continuous casting.

• Define a surface tension gradient for Marangoni convection.

• Solve a solidification problem.

19.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorial Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 1)
found in this manual and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some
steps in the setup and solution procedure will not be shown explicitly.

19.3. Problem Description


This tutorial demonstrates the setup and solution procedure for a fluid flow and heat transfer problem
involving solidification, namely the Czochralski growth process. The geometry considered is a 2D
axisymmetric bowl (shown in Figure 19.1: Solidification in Czochralski Model (p. 696)), containing liquid
metal. The bottom and sides of the bowl are heated above the liquidus temperature, as is the free
surface of the liquid. The liquid is solidified by heat loss from the crystal and the solid is pulled out of
the domain at a rate of 0.001 and a temperature of 500 . There is a steady injection of liquid at
the bottom of the bowl with a velocity of and a temperature of 1300 . Material
properties are listed in Figure 19.1: Solidification in Czochralski Model (p. 696).

Starting with an existing 2D mesh, the details regarding the setup and solution procedure for the solid-
ification problem are presented. The steady conduction solution for this problem is computed as an
initial condition. Then, the fluid flow is enabled to investigate the effect of natural and Marangoni
convection in a transient fashion.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 695
Modeling Solidification

Figure 19.1: Solidification in Czochralski Model

In the above figure, is the mushy zone constant. For details on modeling the solidification/melting
process, refer to momentum equations in the Fluent Theory Guide.

19.4. Setup and Solution


The following sections describe the setup and solution steps for this tutorial:
19.4.1. Preparation
19.4.2. Reading and Checking the Mesh
19.4.3. Specifying Solver and Analysis Type
19.4.4. Specifying the Models
19.4.5. Defining Materials
19.4.6. Setting the Cell Zone Conditions
19.4.7. Setting the Boundary Conditions
19.4.8. Solution: Steady Conduction
19.4.9. Solution: Transient Flow and Heat Transfer

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
696 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

19.4.1. Preparation
To prepare for running this tutorial:

1. Download the solidification.zip file here.

2. Unzip solidification.zip to your working directory.

3. The file solid.msh can be found in the folder.

4. Use Fluent Launcher to start the 2D single precision (disable Double Precision) version of ANSYS Fluent.

Fluent Launcher displays your Display Options preferences from the previous session.

For more information about the Fluent Launcher, see starting ANSYS Fluent using the Fluent Launcher
in the Fluent Getting Started Guide.

5. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.

6. Ensure that the Serial processing option is selected.

19.4.2. Reading and Checking the Mesh


1. Read the mesh file solid.msh.

File → Read → Mesh...

As the mesh is read by ANSYS Fluent, messages will appear in the console reporting the progress of the
reading.

A warning about the use of axis boundary conditions is displayed in the console. You are asked to consider
making changes to the zone type or change the problem definition to axisymmetric. You will change the
problem to axisymmetric swirl later in this tutorial.

2. Check the mesh.

Setting Up Domain → Mesh → Check

ANSYS Fluent will perform various checks on the mesh and will report the progress in the console. Make
sure that the minimum volume is a positive number.

3. Examine the mesh (Figure 19.2: Mesh Display (p. 698)).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 697
Modeling Solidification

Figure 19.2: Mesh Display

19.4.3. Specifying Solver and Analysis Type


1. Select Axisymmetric Swirl from the 2D Space list.

Setup → General

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
698 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

The geometry comprises an axisymmetric bowl. Furthermore, swirling flows are considered in this problem,
so the selection of Axisymmetric Swirl best defines this geometry.

Also, note that the rotation axis is the X axis. Hence, the X direction is the axial direction and the Y direction
is the radial direction. When modeling axisymmetric swirl, the swirl direction is the tangential direction.

2. Add the effect of gravity on the model.

Setup → General → Gravity

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 699
Modeling Solidification

a. Enable Gravity.

b. Enter -9.81 for X in the Gravitational Acceleration group box.

19.4.4. Specifying the Models


1. Define the solidification model.

Setup → Models → Solidification & Melting Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
700 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Enable the Solidification/Melting option in the Solidification and Melting dialog box.

The Solidification and Melting dialog box will expand to show the related parameters.

b. Retain the default value of 100000 for the Mushy Zone Constant.

This default value is acceptable for most cases.

c. Enable the Include Pull Velocities option.

By including the pull velocities, you will account for the movement of the solidified material as it is
continuously withdrawn from the domain in the continuous casting process.

When you enable this option, the Solidification and Melting dialog box will expand to show the
Compute Pull Velocities option. If you were to enable this additional option, ANSYS Fluent would
compute the pull velocities during the calculation. This approach is computationally expensive and
is recommended only if the pull velocities are strongly dependent on the location of the liquid-solid
interface. In this tutorial, you will patch values for the pull velocities instead of having ANSYS Flu-
ent compute them.

For more information about computing the pull velocities, see the Fluent User's Guide.

d. Click OK to close the Solidification and Melting dialog box.

An Information dialog box opens, telling you that available material properties have changed for
the solidification model. You will set the material properties later, so you can click OK in the dialog
box to acknowledge this information.

Note

ANSYS Fluent will automatically enable the energy calculation when you enable the so-
lidification model, so you need not visit the Energy dialog box.

19.4.5. Defining Materials


In this step, you will create a new material and specify its properties, including the melting heat, solidus
temperature, and liquidus temperature.

1. Define a new material.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 701
Modeling Solidification

Setup → Materials → Fluid → air Edit...

a. Enter liquid-metal for Name.

b. Select polynomial from the Density drop-down list in the Properties group box.

c. Configure the following settings In the Polynomial Profile dialog box:

i. Set Coefficients to 2.

ii. In the Coefficients group box, enter 8000 for 1 and -0.1 for 2.

As shown in Figure 19.1: Solidification in Czochralski Model (p. 696), the density of the material is
defined by a polynomial function: .

iii. Click OK to close the Polynomial Profile dialog box.

d. In the Question dialog box, click Yes to overwrite air and add the new material (liquid-metal) to the
Fluent Fluid Materials drop-down list.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
702 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

e. Click OK in the information dialog box.

f. Set the liquid-metal material properties as follows:

g. Enter 680 for Cp (Specific Heat).

h. Enter 30 for Thermal Conductivity.

i. Enter 0.00553 for Viscosity.

j. Enter 100000 for Pure Solvent Melting Heat.

Scroll down the group box to find Pure Solvent Melting Heat and the properties that follow.

k. Enter 1150 for Solidus Temperature.

l. Enter 1150 for Liquidus Temperature.

m. Click Change/Create and close the Create/Edit Materials dialog box.

19.4.6. Setting the Cell Zone Conditions


1. Set the cell zone conditions for the fluid (fluid).

Setup → Cell Zone Conditions → fluid Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 703
Modeling Solidification

a. Ensure liquid-metal is selected from the Material Name drop-down list.

b. Click OK to close the Fluid dialog box.

19.4.7. Setting the Boundary Conditions


1. Set the boundary conditions for the inlet (inlet).

Setup → Boundary Conditions → inlet Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
704 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Enter 0.00101 for Velocity Magnitude.

b. Click the Thermal tab and enter 1300 for Temperature.

c. Click OK to close the Velocity Inlet dialog box.

2. Set the boundary conditions for the outlet (outlet).

Setup → Boundary Conditions → outlet Edit...

Here, the solid is pulled out with a specified velocity, so a velocity inlet boundary condition is used with
a positive axial velocity component.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 705
Modeling Solidification

a. From the Velocity Specification Method drop-down list, select Components.

The Velocity Inlet dialog box will change to show related inputs.

b. Enter 0.001 for Axial-Velocity.

c. Enter 1 for Swirl Angular Velocity.

d. Click the Thermal tab and enter 500 for Temperature.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
706 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

e. Click OK to close the Velocity Inlet dialog box.

3. Set the boundary conditions for the bottom wall (bottom-wall).

Setup → Boundary Conditions → bottom-wall Edit...

a. Click the Thermal tab.

i. Select Temperature in the Thermal Conditions group box.

ii. Enter 1300 for Temperature.

b. Click OK to close the Wall dialog box.

4. Set the boundary conditions for the free surface (free-surface).

Setup → Boundary Conditions → free-surface Edit...

The specified shear and Marangoni stress boundary conditions are useful in modeling situations in which
the shear stress (rather than the motion of the fluid) is known. A free surface condition is an example of
such a situation. In this case, the convection is driven by the Marangoni stress and the shear stress is
dependent on the surface tension, which is a function of temperature.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 707
Modeling Solidification

a. Select Marangoni Stress in the Shear Condition group box.

The Marangoni Stress condition allows you to specify the gradient of the surface tension with respect
to temperature at a wall boundary.

b. Enter -0.00036 for Surface Tension Gradient.

c. Click the Thermal tab to specify the thermal conditions.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
708 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

i. Select Convection from the Thermal Conditions group box.

ii. Enter 100 for Heat Transfer Coefficient.

iii. Enter 1500 for Free Stream Temperature.

d. Click OK to close the Wall dialog box.

5. Set the boundary conditions for the side wall (side-wall).

Setup → Boundary Conditions → side-wall Edit...

a. Click the Thermal tab.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 709
Modeling Solidification

i. Select Temperature from the Thermal Conditions group box.

ii. Enter 1400 for the Temperature.

b. Click OK to close the Wall dialog box.

6. Set the boundary conditions for the solid wall (solid-wall).

Setup → Boundary Conditions → solid-wall Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
710 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. From the Wall Motion group box, select Moving Wall.

The Wall dialog box is expanded to show additional parameters.

b. in the Motion group box, in the lower box, select Rotational.

The Wall dialog box is changed to show the rotational speed.

c. Enter 1.0 for Speed.

d. Click the Thermal tab to specify the thermal conditions.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 711
Modeling Solidification

i. Select Temperature from the Thermal Conditions selection list.

ii. Enter 500 for Temperature.

e. Click OK to close the Wall dialog box.

19.4.8. Solution: Steady Conduction


In this step, you will specify the discretization schemes to be used and temporarily disable the calculation of
the flow and swirl velocity equations, so that only conduction is calculated. This steady-state solution will
be used as the initial condition for the time-dependent fluid flow and heat transfer calculation.

1. Set the solution parameters.

Solving → Solution → Methods...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
712 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Select Coupled from the Scheme drop-down list in the Pressure-Velocity Coupling group box.

b. Select PRESTO! from the Pressure drop-down list in the Spatial Discretization group box.

The PRESTO! scheme is well suited for rotating flows with steep pressure gradients.

c. Retain the default selection of Second Order Upwind from the Momentum, Swirl Velocity, and Energy
drop-down lists.

d. Enable Pseudo Transient.

The Pseudo Transient option enables the pseudo transient algorithm in the coupled pressure-based
solver. This algorithm effectively adds an unsteady term to the solution equations in order to improve
stability and convergence behavior. Use of this option is recommended for general fluid flow problems.

2. Enable the calculation for energy.

Solving → Controls → Equations...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 713
Modeling Solidification

a. Deselect Flow and Swirl Velocity from the Equations selection list to disable the calculation of flow
and swirl velocity equations.

b. Click OK to close the Equations dialog box.

3. Confirm the Relaxation Factors.

Solving → Controls → Controls...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
714 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Retain the default values.

4. Enable the plotting of residuals during the calculation.

Solving → Reports → Residuals...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 715
Modeling Solidification

a. Ensure Plot is enabled in the Options group box.

b. Click OK to accept the remaining default settings and close the Residual Monitors dialog box.

5. Initialize the solution.

Solving → Initialization

a. Retain the Method at the default of Hybrid in the Initialization group.

For flows in complex topologies, hybrid initialization will provide better initial velocity and pressure
field than standard initialization. This in general will help in improving the convergence behavior of
the solver.

b. Click Initialize.

6. Define a custom field function for the swirl pull velocity.

Parameters & Customization → Custom Field Functions New...

In this step, you will define a field function to be used to patch a variable value for the swirl pull velocity
in the next step. The swirl pull velocity is equal to , where is the angular velocity, and is the radial
coordinate. Since = 1 rad/s, you can simplify the equation to simply . In this example, the value of
is included for demonstration purposes.

a. From the Field Functions drop-down lists, select Mesh... and Radial Coordinate.

b. Click the Select button to add radial-coordinate in the Definition field.

If you make a mistake, click the DEL button on the calculator pad to delete the last item you added
to the function definition.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
716 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

c. Click the button on the calculator pad.

d. Click the 1 button.

e. Enter omegar for New Function Name.

f. Click Define.

The omegar item appears under the Parameters & Customisation/Parameters tree branch.

Note

To check the function definition or delete the custom field function, click Manage....
Then in the Field Function Definitions dialog box, from the Field Functions selection
list, select omegar to view the function definition.

g. Close the Custom Field Function Calculator dialog box.

7. Patch the pull velocities.

Solving → Initialization → Patch...

As noted earlier, you will patch values for the pull velocities, rather than having ANSYS Fluent compute
them. Since the radial pull velocity is zero, you will patch just the axial and swirl pull velocities.

a. From the Variable selection list, select Axial Pull Velocity.

b. Enter 0.001 for Value.

c. From the Zones to Patch selection list, select fluid.

d. Click Patch.

You have just patched the axial pull velocity. Next you will patch the swirl pull velocity.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 717
Modeling Solidification

e. From the Variable selection list, select Swirl Pull Velocity.

Scroll down the list to find Swirl Pull Velocity.

f. Enable the Use Field Function option.

g. Select omegar from the Field Function selection list.

h. Ensure that fluid is selected from the Zones to Patch selection list.

i. Click Patch and close the Patch dialog box.

8. Save the initial case and data files (solid0.cas.gz and solid0.dat.gz).

File → Write → Case & Data...

9. Start the calculation by requesting 20 iterations.

Solving → Run Calculation → Advanced...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
718 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. In the Run Calculation task page, select User Specified for the Time Step Method in both the Fluid
Time Scale and the Solid Time Scale group boxes.

b. Retain the default values of 1 and 1000 for the Pseudo Time Step (s) in the Fluid Time Scale and the
Solid Time Scale group boxes, respectively.

c. Enter 20 for Number of Iterations.

d. Click Calculate.

The solution will converge in approximately 12 iterations.

10. Create and display the definition of filled temperature contours (Figure 19.3: Contours of Temperature for
the Steady Conduction Solution (p. 721)).

Postprocessing → Graphics → Contours → New...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 719
Modeling Solidification

a. Enter temperature for Contour Name.

b. Enable the Filled option.

c. Select Temperature... and Static Temperature from the Contours of drop-down lists.

d. Click Save/Display (Figure 19.3: Contours of Temperature for the Steady Conduction Solution (p. 721)).

The temperature contour definition appear under the Results/Graphics/Contours tree branch.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
720 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 19.3: Contours of Temperature for the Steady Conduction Solution

11. Display filled contours of temperature to determine the thickness of mushy zone.

Postprocessing → Graphics → Contours → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 721
Modeling Solidification

a. Disable Auto Range in the Options group box.

The Clip to Range option is automatically enabled.

b. Enter 1100 for Min and 1200 for Max.

c. Click Display (See Figure 19.4: Contours of Temperature (Mushy Zone) for the Steady Conduction
Solution (p. 723)) and close the Contours dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
722 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 19.4: Contours of Temperature (Mushy Zone) for the Steady Conduction Solution

12. Save the case and data files for the steady conduction solution (solid.cas.gz and solid.dat.gz).

File → Write → Case & Data...

19.4.9. Solution: Transient Flow and Heat Transfer


In this step, you will turn on time dependence and include the flow and swirl velocity equations in the calcu-
lation. You will then solve the transient problem using the steady conduction solution as the initial condition.

1. Enable a time-dependent solution by selecting Transient from the Time list.

Setup → General

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 723
Modeling Solidification

2. Set the solution parameters.

Solving → Solution → Methods...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
724 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Retain the default selection of First Order Implicit from the Transient Formulation drop-down list.

b. Ensure that PRESTO! is selected from the Pressure drop-down list in the Spatial Discretization group
box.

3. Enable calculations for flow and swirl velocity.

Solving → Controls → Equations...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 725
Modeling Solidification

a. Select Flow and Swirl Velocity and ensure that Energy is selected from the Equations selection list.

Now all three items in the Equations selection list will be selected.

b. Click OK to close the Equations dialog box.

4. Set the Under-Relaxation Factors.

Solving → Controls → Controls...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
726 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Enter 0.1 for Liquid Fraction Update.

b. Retain the default values for other Under-Relaxation Factors.

5. Save the initial case and data files (solid01.cas.gz and solid01.dat.gz).

File → Write → Case & Data...

6. Run the calculation for 2 time steps.

Solving → Run Calculation → Advanced...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 727
Modeling Solidification

a. Enter 0.1 s for Time Step Size.

b. Set the Number of Time Steps to 2.

c. Retain the default value of 20 for Max Iterations/Time Step.

d. Click Calculate.

7. Display filled contours of the temperature after 0.2 seconds using the temperature contours definition
that you created earlier.

Results → Graphics → Contours → temperature Display

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
728 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 19.5: Contours of Temperature at t=0.2 s

8. Create and display the definition of stream function contours (Figure 19.6: Contours of Stream Function at
t=0.2 s (p. 730)).

Postprocessing → Graphics → Contours → New...

a. Enter stream-function for Contour Name.

b. Disable Filled in the Options group box.

c. Disable Global Range.

d. Ensure that the Auto Range is enabled.

e. Select Velocity... and Stream Function from the Contours of drop-down lists.

f. Click Save/Display.

The stream-function contour definition appear under the Results/Graphics/Contours tree


branch.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 729
Modeling Solidification

Figure 19.6: Contours of Stream Function at t=0.2 s

As shown in Figure 19.6: Contours of Stream Function at t=0.2 s (p. 730), the liquid is beginning to circulate
in a large eddy, driven by natural convection and Marangoni convection on the free surface.

9. Create and display the definition of liquid fraction contours by modifying the stream-function contour
definition (Figure 19.7: Contours of Liquid Fraction at t=0.2 s (p. 731)).

Postprocessing → Graphics → Contours → New...

a. Enter liquid-fraction for Contour Name.

b. Enable Filled in the Options group box.

c. Select Solidification/Melting... and Liquid Fraction from the Contours of drop-down lists.

d. Click Save/Display and close the Contours dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
730 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 19.7: Contours of Liquid Fraction at t=0.2 s

The liquid fraction contours show the current position of the melt front. Note that in Figure 19.7: Contours
of Liquid Fraction at t=0.2 s (p. 731), the mushy zone divides the liquid and solid regions roughly in half.

10. Continue the calculation for 48 additional time steps.

Solving → Run Calculation → Advanced...

a. Enter 48 for Number of Time Steps.

b. Click Calculate.

After a total of 50 time steps have been completed, the elapsed time will be 5 seconds.

11. Display filled contours of the temperature after 5 seconds using the contour definition created earlier
(Figure 19.8: Contours of Temperature at t=5 s (p. 732)).

Results → Graphics → Contours → temperature Display

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 731
Modeling Solidification

Figure 19.8: Contours of Temperature at t=5 s

As shown in Figure 19.8: Contours of Temperature at t=5 s (p. 732), the temperature contours are fairly
uniform through the melt front and solid material. The distortion of the temperature field due to the re-
circulating liquid is also clearly evident.

In a continuous casting process, it is important to pull out the solidified material at the proper time. If
the material is pulled out too soon, it will not have solidified (that is, it will still be in a mushy state). If
it is pulled out too late, it solidifies in the casting pool and cannot be pulled out in the required shape.
The optimal rate of pull can be determined from the contours of liquidus temperature and solidus tem-
perature.

12. Display contours of stream function (Figure 19.9: Contours of Stream Function at t=5 s (p. 733)).

Results → Graphics → Contours → stream-function Display

As shown in Figure 19.9: Contours of Stream Function at t=5 s (p. 733), the flow has developed more fully
by 5 seconds, as compared with Figure 19.6: Contours of Stream Function at t=0.2 s (p. 730) after 0.2
seconds. The main eddy, driven by natural convection and Marangoni stress, dominates the flow.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
732 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 19.9: Contours of Stream Function at t=5 s

To examine the position of the melt front and the extent of the mushy zone, you will plot the contours
of liquid fraction.

13. Display filled contours of liquid fraction (Figure 19.10: Contours of Liquid Fraction at t=5 s (p. 734)).

Results → Graphics → Contours → liquid-fraction Display

The introduction of liquid material at the left of the domain is balanced by the pulling of the solidified
material from the right. After 5 seconds, the equilibrium position of the melt front is beginning to be es-
tablished (Figure 19.10: Contours of Liquid Fraction at t=5 s (p. 734)).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 733
Modeling Solidification

Figure 19.10: Contours of Liquid Fraction at t=5 s

14. Save the case and data files for the solution at 5 seconds (solid5.cas.gz and solid5.dat.gz).

File → Write → Case & Data...

19.5. Summary
In this tutorial, you studied the setup and solution for a fluid flow problem involving solidification for
the Czochralski growth process.

The solidification model in ANSYS Fluent can be used to model the continuous casting process where
a solid material is continuously pulled out from the casting domain. In this tutorial, you patched a
constant value and a custom field function for the pull velocities instead of computing them. This ap-
proach is used for cases where the pull velocity is not changing over the domain, as it is computationally
less expensive than having ANSYS Fluent compute the pull velocities during the calculation.

For more information about the solidification/melting model, see the Fluent User's Guide.

19.6. Further Improvements


This tutorial guides you through the steps to reach an initial set of solutions. You may be able to obtain
a more accurate solution by using an appropriate higher-order discretization scheme and by adapting
the mesh. Mesh adaption can also ensure that the solution is independent of the mesh. These steps
are demonstrated in Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing El-
bow (p. 1).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
734 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 20: Using the Eulerian Granular Multiphase Model with
Heat Transfer
This tutorial is divided into the following sections:
20.1. Introduction
20.2. Prerequisites
20.3. Problem Description
20.4. Setup and Solution
20.5. Summary
20.6. Further Improvements
20.7. References

20.1. Introduction
This tutorial examines the flow of air and a granular solid phase consisting of glass beads in a hot gas
fluidized bed, under uniform minimum fluidization conditions. The results obtained for the local wall-
to-bed heat transfer coefficient in ANSYS Fluent can be compared with analytical results [1].

This tutorial demonstrates how to do the following:

• Use the Eulerian granular model.

• Set boundary conditions for internal flow.

• Compile a User-Defined Function (UDF) for the gas and solid phase thermal conductivities.

• Calculate a solution using the pressure-based solver.

20.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorial Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 1)
found in this manual and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some
steps in the setup and solution procedure will not be shown explicitly.

In order to complete the steps to compile the UDF, you will need to have a working C compiler installed
on your machine.

20.3. Problem Description


This problem considers a hot gas fluidized bed in which air flows upwards through the bottom of the
domain and through an additional small orifice next to a heated wall. A uniformly fluidized bed is ex-
amined, which you can then compare with analytical results [1]. The geometry and data for the problem
are shown in Figure 20.1: Problem Schematic (p. 736).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 735
Using the Eulerian Granular Multiphase Model with Heat Transfer

Figure 20.1: Problem Schematic

20.4. Setup and Solution


The following sections describe the setup and solution steps for this tutorial:
20.4.1. Preparation
20.4.2. Mesh
20.4.3. Solver Settings
20.4.4. Models
20.4.5. UDF
20.4.6. Materials
20.4.7. Phases
20.4.8. Boundary Conditions
20.4.9. Solution
20.4.10. Postprocessing

20.4.1. Preparation
To prepare for running this tutorial:

1. Download the eulerian_granular_heat.zip file here.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
736 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

2. Unzip eulerian_granular_heat.zip to your working directory.

3. The files, fluid-bed.msh and conduct.c, can be found in the folder.

4. Use Fluent Launcher to enable Double Precision and start the 2D version of ANSYS Fluent.

Fluent Launcher displays your Display Options preferences from the previous session.

For more information about the Fluent Launcher, see starting ANSYS Fluent using the Fluent
Launcher in the Fluent Getting Started Guide.

5. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.

6. Run in Serial by selecting Serial under Processing Options.

7. Ensure that Set up Compilation Environment for UDF is enabled in the Environment tab of the Fluent
Launcher window. This will allow you to compile the UDF.

Note

The double precision solver is recommended for modeling multiphase flow simulations.

20.4.2. Mesh
1. Read the mesh file fluid-bed.msh.

File → Read → Mesh...

As ANSYS Fluent reads the mesh file, it will report the progress in the console.

2. Check the mesh.

Setting Up Domain → Mesh → Check

ANSYS Fluent will perform various checks on the mesh and will report the progress in the console. Make
sure that the reported minimum volume is a positive number.

3. Examine the mesh (Figure 20.2: Mesh Display of the Fluidized Bed (p. 738)).

Extra

You can use the right mouse button to check which zone number corresponds to each
boundary. If you click the right mouse button on one of the boundaries in the graphics
window, its zone number, name, and type will be printed in the ANSYS Fluent console.
This feature is especially useful when you have several zones of the same type and you
want to distinguish between them quickly.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 737
Using the Eulerian Granular Multiphase Model with Heat Transfer

Figure 20.2: Mesh Display of the Fluidized Bed

20.4.3. Solver Settings


1. Enable the pressure-based transient solver.

Setup → General

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
738 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Retain the default selection of Pressure-Based from the Type list.

The pressure-based solver must be used for multiphase calculations.

b. Select Transient from the Time list.

2. Set the gravitational acceleration.

Setup → General → Gravity

a. Enter -9.81 m/s2 for the Gravitational Acceleration in the Y direction.

20.4.4. Models
1. Enable the Eulerian multiphase model for two phases.

You will use the default settings for the Eulerian model, so you can enable it directly from the tree by
right-clicking the Multiphase node and choosing Eulerian from the context menu.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 739
Using the Eulerian Granular Multiphase Model with Heat Transfer

Setup → Models → Multiphase Eulerian

2. Enable heat transfer by enabling the energy equation.

Setup → Models → Energy On

An Information dialog box appears reminding you to confirm the property values. Click OK in the
Information dialog box to continue.

3. Retain the default laminar viscous model.

The decision to use the laminar model should be based on the Stokes number for the particles suspended
in the fluid flow.

Setup → Models → Viscous Model → Laminar

20.4.5. UDF
1. Compile the user-defined function, conduct.c, that will be used to define the thermal conductivity for
the gas and solid phase.

User Defined → User Defined → Functions → Compiled...

a. Click the Add... button below the Source Files option to open the Select File dialog box.

i. Select the file conduct.c and click OK in the Select File dialog box.

b. Click Build.

ANSYS Fluent will create a libudf folder and compile the UDF. Also, a Warning dialog box will
open asking you to make sure that UDF source file and case/data files are in the same folder.

c. Click OK to close the Warning dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
740 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

d. Click Load to load the UDF.

20.4.6. Materials
1. Modify the properties for air, which will be used for the primary phase.

Setup → Materials → air → Create/Edit...

The properties used for air are modified to match data used by Kuipers et al. [1]

a. Enter 1.2 kg/m3 for Density.

b. Enter 994 J/kg-K for Cp.

c. Select user-defined from the Thermal Conductivity drop-down list to open the User Defined Functions
dialog box.

i. Select conduct_gas::libudf from the available list.

ii. Click OK to close the User Defined Functions dialog box.

d. Click Change/Create.

2. Define a new fluid material for the granular phase (the glass beads).

Setup → Materials → air → Create/Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 741
Using the Eulerian Granular Multiphase Model with Heat Transfer

a. Enter solids for Name.

b. Enter 2660 kg/m3 for Density.

c. Enter 737 J/kg-K for Cp.

d. Retain the selection of user-defined from the Thermal Conductivity drop-down list.

e. Click the Edit... button to open the User Defined Functions dialog box.

i. Select conduct_solid::libudf in the User Defined Functions dialog box and click OK.

A Question dialog box will open asking if you want to overwrite air.

ii. Click No in the Question dialog box.

f. Select solids from the Fluent Fluid Materials drop-down list.

g. Click Change/Create and close the Materials dialog box.

20.4.7. Phases
You will now configure the phases.

1. Define air as the primary phase.

Setup → Multiphase → Phases → phase-1 - Primary Phase → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
742 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Enter air for Name.

b. Ensure that air is selected from the Phase Material drop-down list.

c. Click OK to close the Primary Phase dialog box.

2. Define solids (glass beads) as the secondary phase.

Setup → Multiphase → Phases → phase-2 - Secondary Phase → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 743
Using the Eulerian Granular Multiphase Model with Heat Transfer

a. Enter solids for Name.

b. Select solids from the Phase Material drop-down list.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
744 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

c. Enable Granular.

d. Retain the default selection of Phase Property in the Granular Temperature Model group box.

e. Enter 0.0005 m for Diameter.

f. Select syamlal-obrien from the Granular Viscosity drop-down list.

g. Select lun-et-al from the Granular Bulk Viscosity drop-down list.

h. Select constant from the Granular Temperature drop-down list and enter 1e-05.

i. Enter 0.6 for the Packing Limit.

j. Click OK to close the Secondary Phase dialog box.

3. Define the interphase interactions formulations to be used.

Setup → Multiphase → Phase Interactions Edit...

a. In the Drag tab, select syamlal-obrien from the Drag Coefficient drop-down list.

b. In the Heat tab, select gunn from the Heat Transfer Coefficient drop-down list.

The interphase heat exchange is simulated, using a drag coefficient, the default restitution coefficient
for granular collisions of 0.9, and a heat transfer coefficient. Granular phase lift is not very relevant
in this problem, and in fact is rarely used.

c. Click OK to close the Phase Interaction dialog box.

20.4.8. Boundary Conditions


For this problem, you need to set the boundary conditions for all boundaries.

Setup → Boundary Conditions

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 745
Using the Eulerian Granular Multiphase Model with Heat Transfer

1. Set the boundary conditions for the lower velocity inlet (v_uniform) for the primary phase.

Setup → Boundary Conditions → v_uniform

For the Eulerian multiphase model, you will specify conditions at a velocity inlet that are specific to the
primary and secondary phases.

a. Select air from the Phase drop-down list.

b. Click the Edit... button to open the Velocity Inlet dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
746 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

i. Retain the default selection of Magnitude, Normal to Boundary from the Velocity Specification
Method drop-down list.

ii. Enter 0.25 m/s for the Velocity Magnitude.

iii. Click the Thermal tab and enter 293 K for Temperature.

iv. Click OK to close the Velocity Inlet dialog box.

2. Set the boundary conditions for the lower velocity inlet (v_uniform) for the secondary phase.

Setup → Boundary Conditions → v_uniform

a. Select solids from the Phase drop-down list.

b. Click the Edit... button to open the Velocity Inlet dialog box.

i. Retain the default Velocity Specification Method and Reference Frame.

ii. Retain the default value of 0 m/s for the Velocity Magnitude.

iii. Click the Thermal tab and enter 293 K for Temperature.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 747
Using the Eulerian Granular Multiphase Model with Heat Transfer

iv. Click the Multiphase tab and retain the default value of 0 for Volume Fraction.

v. Click OK to close the Velocity Inlet dialog box.

3. Set the boundary conditions for the orifice velocity inlet (v_jet) for the primary phase.

Setup → Boundary Conditions → v_jet

a. Select air from the Phase drop-down list.

b. Click the Edit... button to open the Velocity Inlet dialog box.

i. Retain the default Velocity Specification Method and Reference Frame.

ii. Enter 0.25 m/s for the Velocity Magnitude.

In order for a comparison with analytical results [1] to be meaningful, in this simulation you will
use a uniform value for the air velocity equal to the minimum fluidization velocity at both inlets
on the bottom of the bed.

iii. Click the Thermal tab and enter 293 K for Temperature.

iv. Click OK to close the Velocity Inlet dialog box.

4. Set the boundary conditions for the orifice velocity inlet (v_jet) for the secondary phase.

Setup → Boundary Conditions → v_jet

a. Select solids from the Phase drop-down list.

b. Click the Edit... button to open the Velocity Inlet dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
748 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

i. Retain the default Velocity Specification Method and Reference Frame.

ii. Retain the default value of 0 m/s for the Velocity Magnitude.

iii. Click the Thermal tab and enter 293 K for Temperature.

iv. Click the Multiphase tab and retain the default value of 0 for the Volume Fraction.

v. Click OK to close the Velocity Inlet dialog box.

5. Set the boundary conditions for the pressure outlet (poutlet) for the mixture phase.

Setup → Boundary Conditions → poutlet

For the Eulerian granular model, you will specify conditions at a pressure outlet for the mixture and for
both phases.

The thermal conditions at the pressure outlet will be used only if flow enters the domain through this
boundary. You can set them equal to the inlet values, as no flow reversal is expected at the pressure
outlet. In general, however, it is important to set reasonable values for these downstream scalar values,
in case flow reversal occurs at some point during the calculation.

a. Select mixture from the Phase drop-down list.

b. Click the Edit... button to open the Pressure Outlet dialog box.

i. Retain the default value of 0 Pascal for Gauge Pressure.

ii. Click OK to close the Pressure Outlet dialog box.

6. Set the boundary conditions for the pressure outlet (poutlet) for the primary phase.

Setup → Boundary Conditions → poutlet

a. Select air from the Phase drop-down list.

b. Click the Edit... button to open the Pressure Outlet dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 749
Using the Eulerian Granular Multiphase Model with Heat Transfer

i. In the Thermal tab, enter 293 K for Backflow Total Temperature.

ii. Click OK to close the Pressure Outlet dialog box.

7. Set the boundary conditions for the pressure outlet (poutlet) for the secondary phase.

Setup → Boundary Conditions → poutlet

a. Select solids from the Phase drop-down list.

b. Click the Edit... button to open the Pressure Outlet dialog box.

i. In the Thermal tab, enter 293 K for the Backflow Total Temperature.

ii. In the Multiphase tab, retain default settings.

iii. Click OK to close the Pressure Outlet dialog box.

8. Set the boundary conditions for the heated wall (wall_hot) for the mixture.

Setup → Boundary Conditions → wall_hot

For the heated wall, you will set thermal conditions for the mixture, and momentum conditions (zero
shear) for both phases.

a. Select mixture from the Phase drop-down list.

b. Click the Edit... button to open the Wall dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
750 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

i. In the Thermal tab, select Temperature from the Thermal Conditions list.

ii. Enter 373 K for Temperature.

iii. Click OK to close the Wall dialog box.

9. Set the boundary conditions for the heated wall (wall_hot) for the primary phase.

Setup → Boundary Conditions → wall_hot

a. Select air from the Phase drop-down list.

b. Click the Edit... button to open the Wall dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 751
Using the Eulerian Granular Multiphase Model with Heat Transfer

c. Retain the default No Slip condition and click OK to close the Wall dialog box.

10. Set the boundary conditions for the heated wall (wall_hot) for the secondary phase (solids) same as that
of the primary phase.

Setup → Boundary Conditions → wall_hot

For the secondary phase, you will retain the default no slip condition as for the primary phase.

11. Set the boundary conditions for the adiabatic wall (wall_ins).

Setup → Boundary Conditions → wall_ins

For the adiabatic wall, retain the default thermal conditions for the mixture (zero heat flux), and the
default momentum conditions (no slip) for both phases.

20.4.9. Solution
1. Select the second order implicit transient formulation and higher-order spatial discretization schemes.

Solving → Solution → Methods...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
752 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Select Second Order Implicit from the Transient Formulation drop-down list.

b. Modify the discretization methods in the Spacial Discretization group box.

i. Select Second Order Upwind for Momentum.

ii. Select Quick for Volume Fraction and Energy.

2. Set the solution parameters.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 753
Using the Eulerian Granular Multiphase Model with Heat Transfer

Solving → Controls → Controls...

a. Enter 0.5 for Pressure.

b. Enter 0.2 for Momentum.

3. Ensure that the plotting of residuals is enabled during the calculation.

Solving → Reports → Residuals...

4. Define a custom field function for the heat transfer coefficient.

User Defined → Field Functions → Custom...

Initially, you will define functions for the mixture temperature, and thermal conductivity, then you will
use these to define a function for the heat transfer coefficient.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
754 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Define the function t_mix.

i. Select Temperature... and Static Temperature from the Field Functions drop-down lists.

ii. Ensure that air is selected from the Phase drop-down list and click Select.

iii. Click the multiplication symbol in the calculator pad.

iv. Select Phases... and Volume fraction from the Field Functions drop-down list.

v. Ensure that air is selected from the Phase drop-down list and click Select.

vi. Click the addition symbol in the calculator pad.

vii. Similarly, add the term solids-temperature * solids-vof.

viii.Enter t_mix for New Function Name.

ix. Click Define.

b. Define the function k_mix.

i. Select Properties... and Thermal Conductivity from the Field Functions drop-down lists.

ii. Select air from the Phase drop-down list and click Select.

iii. Click the multiplication symbol in the calculator pad.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 755
Using the Eulerian Granular Multiphase Model with Heat Transfer

iv. Select Phases... and Volume fraction from the Field Functions drop-down lists.

v. Ensure that air is selected from the Phase drop-down list and click Select.

vi. Click the addition symbol in the calculator pad.

vii. Similarly, add the term solids-thermal-conductivity-lam * solids-vof.

viii.Enter k_mix for New Function Name.

ix. Click Define.

c. Define the function ave_htc.

i. Click the subtraction symbol in the calculator pad.

ii. From the Field Functions drop-down lists, select Custom Field Functions... and k_mix and click
Select.

iii. Use the calculator pad and the Field Functions lists to complete the definition of the function.

iv. Enter ave_htc for New Function Name.

v. Click Define and close the Custom Field Function Calculator dialog box.

5. Define the point surface in the cell next to the wall on the plane .

Setting Up Domain → Surface → Create → Point...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
756 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Enter 0.28494 m for x0 and 0.24 m for y0 in the Coordinates group box.

b. Enter y=0.24 for New Surface Name.

c. Click Create and close the Point Surface dialog box.

6. Create a surface report definition for the heat transfer coefficient.

Solving → Reports → Definitions → New → Surface Report → Facet Average

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 757
Using the Eulerian Granular Multiphase Model with Heat Transfer

a. Enter surf-mon-1 for Name of the surface report definition.

b. In the Create group box, enable Report File, Report Plot and Print to Console.

c. Select Custom Field Functions... and ave_htc from the Field Variable drop-down lists.

d. Select y=0.24 from the Surfaces selection list.

e. Click OK to save the surface report definition settings and close the Surface Report Definition dialog
box.

surf-mon-1-rplot and surf-mon-1-rfile that are automatically generated by Fluent appear in


the tree (under Solution/Monitors/Report Plots and Solution/Monitors/Report Files, respect-
ively).

f. Rename the report output file.

Solution → Monitors → Report Files → surf-mon-1-rfile Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
758 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

i. Enter htc-024.out for Output File Base Name.

ii. Click OK to close the Edit Report File dialog box.

7. Initialize the solution.

Solving → Initialization → Options...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 759
Using the Eulerian Granular Multiphase Model with Heat Transfer

a. Select all-zones from the Compute from drop-down list.

b. Retain the default values and click Initialize.

8. Define an adaption register for the lower half of the fluidized bed.

Setting Up Domain → Adapt → Mark/Adapt Cells → Region...

This register is used to patch the initial volume fraction of solids in the next step.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
760 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. Enter 0.3 m for Xmax and 0.5 m for Ymax in the Input Coordinates group box.

b. Click Mark.

c. Click the Manage... button to open the Manage Adaption Registers dialog box.

i. Ensure that hexahedron-r0 is selected from the Registers selection list.

ii. Click Display and close the Manage Adaption Registers dialog box.

After you define a region for adaption, it is a good practice to display it to visually verify that it
encompasses the intended area.

Figure 20.3: Region Marked for Patching

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 761
Using the Eulerian Granular Multiphase Model with Heat Transfer

d. Close the Region Adaption dialog box.

9. Patch the initial volume fraction of solids in the lower half of the fluidized bed.

Solving → Initialization → Patch...

a. Select solids from the Phase drop-down list.

b. Select Volume Fraction from the Variable selection list.

c. Enter 0.598 for Value.

d. Select hexahedron-r0 from the Registers to Patch selection list.

e. Click Patch and close the Patch dialog box.

At this point, it is a good practice to display contours of the variable you just patched, to ensure that the
desired field was obtained.

10. Display contours of Volume Fraction of solids (Figure 20.4: Initial Volume Fraction of Granular Phase
(solids) (p. 763)).

Postprocessing → Graphics → Contours → Edit...

a. Enable Filled in the Options group box.

b. Select Phases... from the upper Contours of drop-down list.

c. Select solids from the Phase drop-down list.

d. Ensure that Volume fraction is selected from the lower Contours of drop-down list.

e. Click Display and close the Contours dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
762 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 20.4: Initial Volume Fraction of Granular Phase (solids)

11. Save the case file (fluid-bed.cas.gz).

File → Write → Case...

12. Start calculation.

Solving → Run Calculation → Advanced...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 763
Using the Eulerian Granular Multiphase Model with Heat Transfer

a. Set 0.00015 for Time Step Size(s).

b. Set 12000 for Number of Time Steps.

c. Enter 50 for Max Iterations/Time Step.

d. Click Calculate.

The plot of the value of the mixture-averaged heat transfer coefficient in the cell next to the heated wall
versus time is in excellent agreement with results published for the same case [1].

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
764 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 20.5: Plot of Mixture-Averaged Heat Transfer Coefficient in the Cell Next to the Heated
Wall Versus Time

13. Save the case and data files (fluid-bed.cas.gz and fluid-bed.dat.gz).

File → Write → Case & Data...

20.4.10. Postprocessing
1. Display the pressure field in the fluidized bed (Figure 20.6: Contours of Static Pressure (p. 766)).

Postprocessing → Graphics → Contours → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 765
Using the Eulerian Granular Multiphase Model with Heat Transfer

a. Select mixture from Phase drop-down list.

b. Select Pressure... and Static Pressure from the Contours of drop-down lists.

c. Click Display.

Figure 20.6: Contours of Static Pressure

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
766 of ANSYS, Inc. and its subsidiaries and affiliates.
Further Improvements

Note the build-up of static pressure in the granular phase.

2. Display the volume fraction of solids (Figure 20.7: Contours of Volume Fraction of Solids (p. 767)).

a. Select solids from the Phase drop-down list.

b. Select Phases... and Volume fraction from the Contours of drop-down lists.

c. Click Display and close the Contours dialog box.

d. Zoom in to show the contours close to the region where the change in volume fraction is the greatest.

Note that the region occupied by the granular phase has expanded slightly, as a result of fluidization.

Figure 20.7: Contours of Volume Fraction of Solids

20.5. Summary
This tutorial demonstrated how to set up and solve a granular multiphase problem with heat transfer,
using the Eulerian model. You learned how to set boundary conditions for the mixture and both phases.
The solution obtained is in excellent agreement with analytical results from Kuipers et al. [1].

20.6. Further Improvements


This tutorial guides you through the steps to reach an initial solution. You may be able to obtain a more
accurate solution by using an appropriate higher-order discretization scheme and by adapting the mesh
further. Mesh adaption can also ensure that the solution is independent of the mesh. These steps are
demonstrated in Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing El-
bow (p. 1).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 767
Using the Eulerian Granular Multiphase Model with Heat Transfer

20.7. References
1. J. A. M. Kuipers, W. Prins, and W. P. M. Van Swaaij “Numerical Calculation of Wall-to-Bed Heat Transfer
Coefficients in Gas-Fluidized Beds", Department of Chemical Engineering, Twente University of Technology,
in AIChE Journal, July 1992, Vol. 38, No. 7.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
768 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 21: Using the Adjoint Solver – 2D Laminar Flow Past a
Cylinder
This tutorial is divided into the following sections:
21.1. Introduction
21.2. Prerequisites
21.3. Problem Description
21.4. Setup and Solution
21.5. Summary

21.1. Introduction
ANSYS Fluent’s adjoint solver is used to compute the sensitivity of quantities of interest in a fluid system
with respect to the user-specified inputs, for an existing flow solution. Importantly, this also includes
the sensitivity of the computed results with respect to the geometric shape of the system. The adjoint
design change tool is a powerful component that can use the sensitivity information from one or more
adjoint solutions to guide systematic changes that result in predictable improvements in the system
performance, which can be made subject to various types of design constraints if desired.

This tutorial provides an example of how to generate sensitivity data for flow past a circular cylinder,
how to postprocess the results, and how to use the data to perform a multi-objective design change
that reduces drag and increases lift by morphing the mesh. The tutorial makes use of a previously
computed flow solution, and demonstrates how to do the following:

• Select the observable of interest.

• Access the solver controls for advancing the adjoint solution.

• Set convergence criteria and plot and print residuals.

• Advance the adjoint solver.

• Postprocess the results to extract sensitivity data.

• Use the design change tool to modify the cylinder shape to simultaneously reduce the drag and increase
the lift.

21.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorial Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 1)
found in this manual and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some
steps in the setup and solution procedure will not be shown explicitly.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 769
Using the Adjoint Solver – 2D Laminar Flow Past a Cylinder

21.3. Problem Description


The configuration is a circular cylinder, bounded above and below by symmetry planes. The flow is
laminar and incompressible with a Reynolds number of 40, based on the cylinder diameter. At this
Reynolds number, the flow is steady.

21.4. Setup and Solution


The following sections describe the setup steps for this tutorial:
21.4.1. Step 1: Preparation
21.4.2. Step 2: Define Observables
21.4.3. Step 3: Compute the Drag Sensitivity
21.4.4. Step 4: Postprocess and Export Drag Sensitivity
21.4.5. Step 5: Compute Lift Sensitivity
21.4.6. Step 6: Modify the Shape

21.4.1. Step 1: Preparation


1. Download the adjoint_cylinder.zip file here.

2. Unzip adjoint_cylinder.zip to your working directory.

3. The files cylinder_tutorial.cas and cylinder_tutorial.dat can be found in the folder .

4. Use Fluent Launcher to start the 2D version of ANSYS Fluent, with the Double Precision and Display
Mesh After Reading options enabled.

5. Load the converged case and data file for the cylinder geometry.

File → Read → Case & Data...

When prompted, browse to the location of the case and data files and select cylinder_tutori-
al.cas to load. The corresponding data file will automatically be loaded as well.

Note

After you read in the mesh, it will be displayed in the embedded graphics windows,
since you enabled the appropriate display option in Fluent Launcher.

The data file contains a previously computed flow solution that will serve as the starting point for
the adjoint calculation. Part of the mesh and the velocity field are shown below:

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
770 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 21.1: Mesh Close to the Cylinder Surface

Figure 21.2: Contours of Velocity Magnitude

21.4.2. Step 2: Define Observables


Begin setting up the adjoint solver by opening the Adjoint Observables dialog box. Here you will
create lift and drag observables. Clicking on any GUI widget under Adjoint-Based Design will activate
adjoint solver.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 771
Using the Adjoint Solver – 2D Laminar Flow Past a Cylinder

Design → Adjoint-Based → Observable...

Figure 21.3: Adjoint Observables Dialog Box

1. Click the Manage... button to open the Manage Adjoint Observables dialog box.

Figure 21.4: Manage Adjoint Observables Dialog Box

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
772 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

2. Click the Create... button in the Manage Adjoint Observables dialog box to open the Create New Ob-
servable dialog box.

Figure 21.5: Create New Observable Dialog Box

3. In the Create New Observable dialog box:

a. Ensure that Observable types is selected.

b. Select force from the selection list.

c. Enter force-drag for Name.

d. Click OK to close the dialog box.

4. In the Manage Adjoint Observables dialog box, the newly created force-drag observable appears and
must now be configured. (Figure 21.6: Manage Observables Dialog Box (p. 774)):

a. Select force-drag in the Observables list.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 773
Using the Adjoint Solver – 2D Laminar Flow Past a Cylinder

Figure 21.6: Manage Observables Dialog Box

b. Select wall under Wall Zones. This is the cylinder wall on which you want the force to be evaluated.

c. Ensure that the X-Component direction is set to 1 and the Y-Component direction is set to 0.

d. Click Apply to commit the settings for force-drag.

5. Repeat the process in the Manage Adjoint Observables dialog box to create a lift observable with the
following settings:

Name force-lift
Wall Zones wall
X-Component 0

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
774 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Y-Component 1

Tip

If the Name field is not available in the Create New Observable dialog box, select a
different observable type and then select force again to make it available.

When you have configured the force-lift observable, click OK to commit the settings for force-lift and
close the Manage Adjoint Observables dialog box.

21.4.3. Step 3: Compute the Drag Sensitivity


1. In the Adjoint Observables dialog box (Figure 21.7: Adjoint Observables Dialog Box (p. 775)) specify that
you will solve for the drag sensitivity.

Figure 21.7: Adjoint Observables Dialog Box

a. Select force-drag in the list of Observable Names.

The selection in the Adjoint Obervables dialog box determines the observable for which sensitivities
will be computed. You will first compute the drag sensitivities.

b. Select Minimize from the Sensitivity Orientation list, because you are trying to reduce the drag force.
This indicates that postprocessed results for the drag sensitivity will be displayed such that a reduction
in drag is achieved by a design change in the positive sensitivity direction.

c. Click Evaluate to print the value of the drag force on the wall in the console.
Observable name: force-drag
Observable Value (n) = 1271.7444

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 775
Using the Adjoint Solver – 2D Laminar Flow Past a Cylinder

This value is in SI units, with n denoting Newtons.

2. Adjust the solution controls.

The default solution control settings are chosen to provide robust solution advancement for a wide
variety of problems, including those having complex geometry, high local flow rates, and turbulence.
Given sufficient iterations, a converged result can often be obtained without modifying the controls.

For this simple laminar flow case, more aggressive settings will yield faster convergence.

Open the Adjoint Solution Controls dialog box (Figure 21.8: Adjoint Solution Controls Dialog
Box (p. 776)).

Design → Adjoint-Based → Solver Controls...

Figure 21.8: Adjoint Solution Controls Dialog Box

a. Disable the Solution-Based Controls Initialization and Auto-Adjust Controls options.

This prevents Fluent from automatically choosing and adjusting the solution controls for you.

b. Enable Show Advancement Controls.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
776 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

c. Ensure that the Apply Preconditioning option is enabled.

Preconditioning can help the calculation progress in a stable manner.

d. Enter 100 for Courant Number.

Higher Courant Number values correspond to more aggressive settings / faster convergence,
which is appropriate for a simple case such as this.

e. Enter 0.05 for Artificial Compressibility.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 777
Using the Adjoint Solver – 2D Laminar Flow Past a Cylinder

f. Click OK to close the dialog box.

3. Configure the adjoint solution monitors by opening the Adjoint Residual Monitors dialog box (Fig-
ure 21.9: Adjoint Residual Monitors Dialog Box (p. 778)).

Design → Adjoint-Based → Monitors...

Figure 21.9: Adjoint Residual Monitors Dialog Box

In the Adjoint Residual Monitors dialog box, you set the adjoint equations that will be checked
for convergence, as well as set the corresponding convergence criteria.

a. Make sure that the Print to Console and Plot options are enabled.

b. Keep the default values of 1e-05 for Adjoint continuity and Adjoint velocity, and 0.001 for Adjoint
local flow rate. These settings are adequate for most cases. Make sure that the Check Convergence
options are enabled.

c. Click OK to close the dialog box.

4. Run the adjoint solver using the Run Adjoint Calculation dialog box (Figure 21.10: Run Adjoint Calculation
Dialog Box (p. 779)).

Design → Adjoint-Based → Calculate...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
778 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 21.10: Run Adjoint Calculation Dialog Box

a. Click the Initialize button. This initializes the adjoint solution everywhere in the problem domain to
zero.

b. Set the Number of Iterations to 200. The adjoint solver is fully configured to start running for this
problem.

c. Click the Calculate button to advance the solver to convergence.

Figure 21.11: Residuals for the Converged Solution

d. When the calculation is complete, Close the Run Adjoint Calculation dialog box.

21.4.4. Step 4: Postprocess and Export Drag Sensitivity


In this section, postprocessing options for the adjoint solution are presented.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 779
Using the Adjoint Solver – 2D Laminar Flow Past a Cylinder

21.4.4.1. Boundary Condition Sensitivity


1. Open the Adjoint Reporting dialog box (Figure 21.12: Adjoint Reporting Dialog Box (p. 780)).

Design → Adjoint-Based → Reporting...

Figure 21.12: Adjoint Reporting Dialog Box

2. Select inlet under Boundary choice and click the Report button to display a report in the console of the
available scalar sensitivity data on the inlet:
Updating shape sensitivity data.
Done.

Boundary condition sensitivity report: inlet


Observable: force-drag
Velocity Magnitude (m/s): 40 Sensitivity ((n)/(m/s)): 54.553902
Decrease Velocity Magnitude to decrease force-drag

3. Close the Adjoint Reporting dialog box.

21.4.4.2. Momentum Source Sensitivity


1. Open the Contours dialog box.

Postprocessing → Graphics → Contours → Edit...

2. Select Sensitivities... and Sensitivity to Body Force X-Component (Cell Values) from the Contours of
drop-down lists.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
780 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 21.13: Contours Dialog Box When Plotting Adjoint Fields

3. Enter 25 for Levels.

4. Click Display to view the contours (Figure 21.14: Adjoint Sensitivity to Body Force X-Component Con-
tours (p. 782)) and then Close the Contours dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 781
Using the Adjoint Solver – 2D Laminar Flow Past a Cylinder

Figure 21.14: Adjoint Sensitivity to Body Force X-Component Contours

Figure 21.14: Adjoint Sensitivity to Body Force X-Component Contours (p. 782) shows how sensitive
the drag on the cylinder is to the application of a body force in the -direction in the flow. If a body
force is applied directly upstream of the cylinder, for example, the disturbed flow is incident on the
cylinder and modifies the force that it experiences.

21.4.4.3. Shape Sensitivity


1. Open the Vectors dialog box (Figure 21.15: Vectors Dialog Box (p. 783))

Postprocessing → Graphics → Vectors → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
782 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 21.15: Vectors Dialog Box

2. Select Sensitivity to Shape from the Vectors of drop-down list.

3. Select Sensitivities... and Sensitivity to Mass Sources (Cell Values) from the Color by drop-down
lists.

4. Select wall from the Surfaces selection list.

5. Click the Display button to view the vectors (Figure 21.16: Shape Sensitivity Colored by Sensitivity to
Mass Sources (Cell Values) (p. 784)) and then Close the Vectors dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 783
Using the Adjoint Solver – 2D Laminar Flow Past a Cylinder

Figure 21.16: Shape Sensitivity Colored by Sensitivity to Mass Sources (Cell Values)

This plot shows how sensitive the drag on the cylinder is to changes in the surface shape. The drag is
affected more significantly if the cylinder is deformed on the upstream rather than the downstream
side. Maximum effect is achieved by narrowing the cylinder in the cross-stream direction.

21.4.4.4. Exporting Drag Sensitivity Data


Before computing the sensitivity for the force-lift observable, you need to define the region that will
be subject to geometry morphing, and export the drag sensitivity data so it can be used later in the
multi-objective optimization.

1. Open the Design Tool dialog box.

Design → Adjoint-Based → Design Tool...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
784 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 21.17: The Design Tool Dialog Box

2. In the Region tab, define the region that will be modified for the design change.

a. Ensure that Cartesian is selected from the Region Geometry drop-down list.

b. Click Get Bounds....

c. Select wall in the Bounding Box Definition dialog box and click OK.

This will initialize the morphing region to the bounding box around the cylinder wall.

d. Click Update Region to update the view of the bounding box illustration in the graphics window.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 785
Using the Adjoint Solver – 2D Laminar Flow Past a Cylinder

You can use the Mesh Display dialog box to also display the mesh, in order to review it prior to
morphing.

e. Click Larger Box several times until the X and Y Limits are ±1.907349 m (Figure 21.18: Morphing
Region Around Cylinder (p. 786)).

Figure 21.18: Morphing Region Around Cylinder

f. Click Export Sensitivities... and save the sensitivity data as force-drag.s.

21.4.5. Step 5: Compute Lift Sensitivity


1. Select force-lift from the Observable Names selection list and select Maximize from the Sensitivity
Orientation list in the Adjoint Observables dialog box.

Design → Adjoint-Based → Observable...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
786 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

2. Initialize and Calculate the adjoint solution using the Run Adjoint Calculation dialog box to obtain the
sensitivities for the force-lift observable.

Design → Adjoint-Based → Calculate...

You can export the sensitivity data for the lift observable as you did for the drag, but it is not strictly
necessary if you plan to perform the multi-objective optimization in the current Fluent session.

21.4.6. Step 6: Modify the Shape


In this section, you will load the previously saved force-drag sensitivity data and perform the multi-
objective design change.

1. Open the Design Tool dialog box if it is not already open.

Design → Adjoint-Based → Design Tool...

force-lift is now displayed in the Design Change tab because it is the currently selected observable.
The Design Change tab functions as a dashboard for the design modification, where you can select
which boundaries are subject to modification, enable or disable conditions that you have defined,
specify relative weighting if you have multiple freeform objectives, and view predicted results. You
will return to it to perform the design change after you have configured the objectives and the
morphing region.

2. Load the previously saved force-drag sensitivity data.

a. Open the Objectives tab.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 787
Using the Adjoint Solver – 2D Laminar Flow Past a Cylinder

The force-lift observable is already listed because Include current data is enabled.

b. Click Manage Data... to open the Manage Sensitivity Data dialog box.

c. Click Import Sensitivities... and select the force-drag.s file you created earlier. Click OK.

d. Close the Manage Sensitivity Data dialog box.

3. Define the objective for each observable.

For this example, you will seek a design change that increases the lift and results in a 10% reduction
in drag.

a. In the Objectives tab, select the force-lift observable. The current value of the lift is displayed along
with options to specify the objective for the lift.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
788 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

b. Select Increase Value from the Objective list.

This indicates that you want to increase the lift, but are not prescribing a specific target change.

c. Enter 100 for Target/Reference Change.

This setting is used to normalize the scale of the change in value of the observable, which can be
important in cases where multiple observables are considered that may be of different scales.

d. Click Apply.

e. Select force_drag.s in the list of observables.

f. Select Target Change In Value from the Objective list.

This indicates that you are prescribing a specific change in the value of the observable, rather than
a freeform increase or decrease.

g. Enter -10 for Target/Reference Change and enable the As Percentage option.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 789
Using the Adjoint Solver – 2D Laminar Flow Past a Cylinder

10% is a generally a reasonable maximum target change for a design change. Using a target
change that is too large may result in very large deformations and/or overshooting the local op-
timum.

h. Click Apply.

4. Configure the morphing region.

You already specified the dimensions of the region earlier when exporting the force-drag sensitivity.
Now you will also configure the control-point density.

a. Click the Region Conditions tab in the Design Tool dialog box.

b. Enter 30 for Points in the X Motion and Y Motion group boxes.

c. Click Apply.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
790 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Many other settings are available in the Region Conditions tab, including constraints on control-
point motion, symmetry conditions, and continuity conditions. For additional information, see the
section on defining region conditions in the Fluent User's Guide manual.

5. Compute the design change and modify the mesh.

a. Return to the Design Change tab.

b. Select wall in the Zones To Be Modified selection list.

Only zones that are selected in the Zones To Be Modified list (or that have prescribed motions
applied) will be modified as part of the design change.

c. If multiple freeform objectives were defined (that is, multiple objectives with Increase Value or De-
crease Value selected in the Objectives tab), you would need to specify the Weight for each. In this
case only one objective (force-lift) is freeform, so no input is required for Weight.

d. Retain the default settings of Control-point spacing for Freeform Scaling Scheme, and 0.1 for
Freeform Scale Factor.

These settings allow you to adjust the magnitude of the attempted design change (Freeform Scale
Factor) and the basis for the scaling (Freeform Scaling Scheme).

e. Click Calculate Design Change.

The Results list is updated to reflect the Expected change for each observable.

Note that the drag is predicted to decrease by 10% as you requested, and the lift is predicted
to increase.

f. Click the Modify Mesh button to apply the calculated mesh deformation that will reposition the
boundary and interior nodes of the mesh. Information regarding the mesh modification is printed
in the console:
Updating mesh (steady, mesh iteration = 00001, pseudo time step 1.0000e+00)...
Dynamic Mesh Statistics:
Minimum Volume = 3.46260e-04
Maximum Volume = 6.36270e-01
Maximum Cell Skew = 3.69343e-01 (cell zone 11)
Minimum Orthogonal Quality = 6.30657e-01 (cell zone 11)

g. Display the new mesh geometry.

Postprocessing → Graphics → Mesh → Edit...

The effect on the mesh is shown in Figure 21.19: Mesh After Deformation (p. 792):

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 791
Using the Adjoint Solver – 2D Laminar Flow Past a Cylinder

Figure 21.19: Mesh After Deformation

h. Re-converge the conventional flow calculation for this new geometry in the Run Calculation task
page.

Solving → Run Calculation → Calculate

The currently loaded case file already has report definitions defined for lift and drag, or you
can Evaluate the new values in the Adjoint Observables dialog box.

Design → Adjoint-Based → Observable...

The new values for drag and lift are reported to be:
Observable name: force-drag
Observable Value (n): 1151.3438

Observable name: force-lift


Observable Value (n): 122.92805

Note that the drag has changed by -120.4 N or -9.5% compared to the drag on the undeformed
cylinder. This value compares very well with the change of -127.2 N (-10%) that was predicted
from the adjoint solver. The lift has increased by 122.4 N, which again compares very well with
the predicted change of 127.6 N.

21.5. Summary
This tutorial has demonstrated how to use the adjoint solver to compute the sensitivity of the drag and
lift on a circular cylinder to various inputs for a previously computed flow field. The process of setting
up and running the adjoint solver was illustrated. The steps to perform various forms of postprocessing

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
792 of ANSYS, Inc. and its subsidiaries and affiliates.
Summary

were also described. The design change tool was used to make a multi-objective change to the design
that reduced the drag and increased the lift in a predictable manner.

This example considered multiple objectives at a single flow condition. Another powerful application
of the design tool is to perform multi-objective design changes using sensitivities computed for multiple
flow conditions. This allows you to identify design changes that improve performance across a range
of anticipated operating conditions, potentially of differing importance. The design tool also offers a
rich set of additional capabilities for including prescribed deformations, bounding planes / surfaces,
and fixed-wall constraints in your multi-objective design change. For full details about how to use the
design tool, refer to the Fluent User's Guide.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 793
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
794 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 22: Simulating a Single Battery Cell Using the MSMD Battery
Model
This tutorial is divided into the following sections:
22.1. Introduction
22.2. Prerequisites
22.3. Problem Description
22.4. Setup and Solution
22.5. Summary
22.6. Appendix
22.7. References

22.1. Introduction
This tutorial is used to show how to set up a battery cell simulation in ANSYS Fluent.

This tutorial demonstrates how to do the following:

• Load the Battery module add-on

• Set up a battery cell simulation using the NTGK battery submodel

• Perform the calculations for different battery discharge rates and compare the results using the postprocessing
capabilities of ANSYS Fluent

• Use the reduced order method (ROM) in a battery simulation

• Simulate a battery pulse discharge

• Introduce external and internal short-circuits in a battery simulation

22.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorial Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 1)
found in this manual and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some
steps in the setup and solution procedure will not be shown explicitly.

22.3. Problem Description


The discharge behavior of a lithium-ion battery described in the Kim’s paper [2] will be modeled in this
tutorial. You will use the NTGK model. The battery is a 14.6 Ah LiMn2O4 cathode/graphite anode battery.
The geometry of the battery cell is shown in Figure 22.1: Schematic of the Battery Cell Problem (p. 796).
You will study the battery’s behavior at different discharge rates.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 795
Simulating a Single Battery Cell Using the MSMD Battery Model

Figure 22.1: Schematic of the Battery Cell Problem

For external and internal short-circuit treatment, you will consider an extreme case where external and
internal short-circuits occur at the same time. You will simulate post-short-circuit battery processes. You
can assume that the internal short is caused by a nail penetration occurring near the center of the
battery.

22.4. Setup and Solution


The following sections describe the setup and solution steps for this tutorial:
22.4.1. Preparation
22.4.2. Reading and Scaling the Mesh
22.4.3. Loading the MSMD battery Add-on
22.4.4. NTGK Battery Model Setup
22.4.5. Postprocessing
22.4.6. Simulating the Battery Pulse Discharge Using the ECM Model
22.4.7. Using the Reduced Order Method (ROM)
22.4.8. External and Internal Short-Circuit Treatment

22.4.1. Preparation
1. Download the battery_cell.zip file here.

2. Unzip battery_cell.zip to your working directory.

3. The input file unit_battery.msh, unit_battery.cas, and unit_battery.dat can be found


in the folder.

4. Use Fluent Launcher to start the 3D version of ANSYS Fluent.

5. Enable Double Precision.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
796 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

6. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.

7. Select either Serial or Parallel under Processing Options. In this tutorial, Serial is selected for demon-
stration only.

22.4.2. Reading and Scaling the Mesh


1. Read the mesh file unit_battery.msh.

File → Read → Mesh...

When prompted, browse to the location of the unit_battery.msh and select the file.

Once you read in the mesh, it is displayed in the embedded graphics windows.

The geometry is already in the correct scale. You don’t need to scale it.

2. Check the mesh.

Setting Up Domain → Mesh → Check

22.4.3. Loading the MSMD battery Add-on


1. To load the MSMD battery add-on into ANSYS Fluent, type the following in the console window:
define/models/addon-module

A list of ANSYS Fluent add-on modules is displayed.


Fluent Addon Modules:
0. none
1. MHD Model
2. Fiber Model
3. Fuel Cell and Electrolysis Model
4. SOFC Model with Unresolved Electrolyte
5. Population Balance Model
6. Adjoint Solver
7. Single-Potential Battery Model
8. Dual-Potential MSMD Battery Model
9. PEM Fuel Cell Model
10. Macroscopic Particle Model
Enter Module Number: [0] 8

2. Enter 8 to load the MSMD battery itself.

During the loading process, a scheme library containing the graphical and text user interface, and
a library of user-defined functions (UDFs) containing a set of UDFs for the battery module are loaded
into ANSYS Fluent. Fluent reports the progress in the console.

Once the MSMD battery add-on is loaded, MSMD Battery Model appears in the Models task page
and under the Models tree branch. The UDF library also becomes visible as a new entry in the UDF
Library Manager dialog box.

22.4.4. NTGK Battery Model Setup


The following sections describe the setup steps for this tutorial:
22.4.4.1. Specifying Solver and Models

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 797
Simulating a Single Battery Cell Using the MSMD Battery Model

22.4.4.2. Defining New Materials for Cell and Tabs


22.4.4.3. Defining Cell Zone Conditions
22.4.4.4. Defining Boundary Conditions
22.4.4.5. Specifying Solution Settings
22.4.4.6. Obtaining Solution

22.4.4.1. Specifying Solver and Models


1. In the Solver group of the Setting Up Physics ribbon tab, enable a time-dependent calculation.

Setting Up Physics → Solver → Transient

2. To solve for the temperature field, enable the Energy equation (in the Models group).

Setting Up Physics → Models → Energy

3. Enable the battery model.

Setting Up Physics → Models → More → Dual Potential MSMD Battery Model

a. In the MSMD Battery Model dialog box, select Enable MSMD Battery Model.

The dialog box expands to display the battery model’s settings.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
798 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 22.2: Model Options

b. Under the Model Options tab (Figure 22.2: Model Options (p. 799)), configure the following battery
operation conditions:

i. Under E-Chemistry Models, retain the default selection of NTGK Empirical Model.

ii. Ensure that Solving Transport Equation is selected for Solution Method for E-field.

iii. Under Electrical Parameters, retain the default value of 14.6 Ah for Nominal Cell Capacity.

iv. Retain the default selection of Specified C-Rate and the value of 1 for C-Rate.

v. Retain the default value of 3 V for Min. Stop Voltage.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 799
Simulating a Single Battery Cell Using the MSMD Battery Model

c. Under the Model Parameters tab, retain the default settings for Y and U coefficients. For details, see
the Fluent Advanced Add-On Modules documentation.

Note

• If in your case, Y and U functions are not in the same function form as in the Kim’s paper,
you need to modify the cae_user.c source code file. See the Fluent Advanced Add-On
Modules documentation for details.

• For a given battery, you can perform a set of constant current discharging tests, and then
use the battery's parameter estimation tool to obtain the Y and U functions. See the Fluent
Advanced Add-On Modules documentation for details.

d. Under the Conductive Zones tab (Figure 22.3: Conductive Zones (p. 801)), configure the following set-
tings:

Group Control or List Value or Selection


Active Components Zone (s) e-zone
Tab Components Zone (s) tab_nzone
tab_pzone

For this single cell case, there are no busbar zones. Electro-chemical reactions occur only in the
active zone. Battery tabs are usually modeled as passive zones, in which the potential field is
also solved.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
800 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 22.3: Conductive Zones

e. Under the Electric Contacts tab (Figure 22.4: Electric Contacts (p. 802)), configure the contact surface
and external connector settings as follows:

Group Control or List Value or Selection


External Connectors Negative Tap tab_n
Positive Tap tab_p

The corresponding current or voltage boundary condition will be applied to those boundaries
automatically.

Under the Electric Contacts tab, you can also define extra contact resistance for each zone.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 801
Simulating a Single Battery Cell Using the MSMD Battery Model

Figure 22.4: Electric Contacts

f. Click the Print Battery System Connection Information button.

ANSYS Fluent prints the battery connection information in the console window:
Battery Network Zone Information:
-------------------------------------
Battery Serial 1
Parallel 1

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
802 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

N-Tab zone: tab_nzone


Active zone: e_zone
P-Tab zone: tab_pzone
-----------------------------------

Active zone list at odd level: e_zone


Active zone list at even level:

Number of battery series stages =1; Number of batteries in parallel per series stage=1
****************END OF BATTERY CONNECTION INFO**************

g. Verify that the connection information is correct.

h. Click OK to close the MSMD Battery Model dialog box.

In the background, Fluent automatically hooks all the necessary UDFs for the problem.

22.4.4.2. Defining New Materials for Cell and Tabs


Define the new e_material material for the battery’s cell, p_material for the positive tab, and n_material
for the negative tab.

In the battery model, two user defined scalars, uds0 and uds1, are solved for the positive and negative
potentials, respectively. To specify the electric conductivity of the active material you need to define
the UDS diffusivity.

Important

For the battery active material, you must define the electric conductivity via the UDS diffus-
ivity on a per-scalar basis. ANSYS Fluent will use these two UDS scalars to solve the differential
equations; for details, see the Fluent Advanced Add-On Modules documentation.

For the battery passive conductive zones, such as tabs or busbars, you must define the UDS
diffusivity using a user-defined function (UDF) and define the material’s electric conductivity
using the Electrical Conductivity entry field.

1. Create the electric material.

Setting Up Physics → Materials → Create/Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 803
Simulating a Single Battery Cell Using the MSMD Battery Model

a. In the Create/Edit Materials dialog box, select solid from the Material Type drop-down list.

b. Enter e_material for Name and e for Chemical Formula.

c. Under Properties, set Density to 2092 [kg/m3].

d. Set CP (Specific Heat) to 678 [J/kg-K].

e. Set Thermal Conductivity to 18.2 [W/m-K].

f. Ensure that define-per-uds is selected from the UDS Diffusivity drop-down list and click Edit... next
to UDS Diffusivity.

Note

If the UDS Diffusion Coefficients are defined through the defined-per-uds option,
the Fluent solver does not use the value for Electrical Conductivity.

g. In the UDS Diffusion Coefficients dialog box, specify the user-defined scalars.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
804 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

i. Select uds-0 in the User-Defined Scalar Diffusion list.

ii. Retain constant from the Coefficient drop-down list.

iii. Set Coefficient to 1.19e6 [1/ohm-m].

iv. In a similar way, set uds-1 to 9.83e5 [1/ohm-m] and close the UDS Diffusion Coefficients dialog
box.

Note

The units for UDS Diffusivity are 1/ohm-m, and cannot be modified.

v. In the Question dialog box, click No to retain aluminum and add the new material (e_material) to
the materials list.

Note

Refer to Appendix (p. 835) for information on how to calculate the battery cell
property values.

h. Ensure that e_material (e) is selected from the Fluent Solid Materials drop-down list.

i. Click Change/Create.

2. Create a new material for the positive tab by modifying copper from the solid material database.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 805
Simulating a Single Battery Cell Using the MSMD Battery Model

The UDS Diffusivity for tab materials must be defined through the UDF as described below.

a. In the Create/Edit Materials dialog box, click Fluent Database....

b. In the Fluent Database Materials dialog box, make sure that solid is selected for Material Type.

c. Select copper from Fluent Solids Materials and click Copy and then Close.

The Create/Edit Materials dialog box now displays the copied properties for copper.

d. Enter p_material for Name and pmat for Chemical Formula.

e. Under Properties, select user-defined from the UDS Diffusivity drop-down list.

f. In the User-Defined Functions dialog box that opens, verify that battery_e_cond::msmdbatt is selected
and click OK.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
806 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Fluent hooks the battery_e_cond::msmdbatt UDF to the busbar material.

g. In the Question dialog box, click Yes to overwrite copper.

The new material (p_material) appears under Materials.

h. Set the Electrical Conductivity to 1.0e7 [1/ohm-m].

i. Click Change/Create.

3. Create a new material for the negative tab with the same properties as the material for the positive tab.

Note

You do not need to create two different materials for the positive and negative tabs if
the positive and negative tabs are made of the same material. In this tutorial, the two
different tab materials with the same physical properties have been created for demon-
stration purposes only.

a. From Fluent Solid Materials drop-down list, select p_material.

b. Enter n_material for Name and nmat for Chemical Formula.

c. Click Change/Create.

d. In the Question dialog box, click No to retain p_material and add the new material (n_material) to the
materials list.

e. Close the Create/Edit Materials dialog box.

22.4.4.3. Defining Cell Zone Conditions


Assign e_material to the cell zone, p_material to the positive tab and n_material to the negative tab.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 807
Simulating a Single Battery Cell Using the MSMD Battery Model

1. Assign e_material to the e_zone zone.

Setup → Cell Zone Conditions → e_zone → Edit...

a. In the Solid dialog box, select e_material from the Material Name drop-down list.

b. Click OK.

2. In a similar manner, assign p_material to tab_pzone and n_material to tab_nzone.

22.4.4.4. Defining Boundary Conditions


Define the thermal boundary conditions for all walls for the cell, and positive and negative tabs.

1. Set the convection boundary condition for wall_active.

Setup → Boundary Conditions → wall_active → Edit...

a. In the Wall dialog box, under the Thermal tab, under Thermal Conditions, enable Convection.

b. Set Heat Transfer Coefficient to 5 [w/m2K].

c. Retain the default value of 300 [K] for Free Stream Temperature.

d. Click OK to close the Wall dialog box.

You do not need to change the settings under the UDS tab since the boundary conditions
for the two UDS scalars have been set automatically when you defined the cell zone condi-
tions.

2. Copy the boundary conditions for wall_active to wall_p and wall_n.

Setup → Boundary Conditions → wall_active → Copy...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
808 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

22.4.4.5. Specifying Solution Settings


1. Turn off the flow equation.

Solving → Controls → Equations...

a. In the Equations dialog box, deselect Flow from the Equation selection list.

b. Click OK.

2. Remove the convergence criteria to ensure that automatic convergence checking does not occur.

Solving → Reports → Residuals...

a. In the Residual Monitors dialog box, select none from the Convergence Criterion drop-down list.

b. Click OK.

3. Create a surface report definition for the voltage at the positive tab.

Solving → Reports → Definitions → New → Surface Report → Area-Weighted Average

a. In the Surface Report Definition dialog box, enter voltage_vp for Name.

b. Select User Defined Scalars... and Potential Phi+ from the Field Variable drop-down lists.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 809
Simulating a Single Battery Cell Using the MSMD Battery Model

c. From the Surfaces selection list, select tab_p.

d. In the Create group box, enable Report File, Report Plot and Print to Console.

e. Click OK to save the voltage_vp report definition and close the Surface Report Definition dialog box.

f. Rename the report output file.

Solution → Monitors → Report Files → voltage_vp-rfile Edit...

i. Enter ntgk-1c.out for Output File Base Name.

ii. Click OK to close the Edit Report File dialog box.

g. Modify the attributes of the plot axes.

Solution → Monitors → Report Plots → voltage_vp-rplot Edit...

i. In the Edit Report Plot dialog box, under the Plot Window group box, click the Axes... button to
open the Axes dialog box.

ii. Select the X axis and set Precision to 0.

iii. Click Apply.

iv. Select the Y axis and set Precision to 2.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
810 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

v. Click Apply and close the Axes dialog box.

Note

You must click Apply to save the modified settings for each axis.

vi. Make sure that time-step is selected from the Get Data Every drop-down list.

vii. Click OK to close the Edit Report Plot dialog box.

4. Create a volume report definition for the maximum temperature in the domain.

Solving → Reports → Definitions → New → Volume Report → Max...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 811
Simulating a Single Battery Cell Using the MSMD Battery Model

a. In the Volume Report Definition dialog box, enter max_temp for Name.

b. Select Temperature... and Static Temperature from the Field Variable drop-down lists.

c. From the Cell Zones selection list, select all zones.

d. In the Create group box, enable Report File, Report Plot and Print to Console.

e. Click OK to save the volume report definition settings and close the Volume Report Definition dialog
box.

f. Rename the report output file.

Solution → Monitors → Report Files → max_temp-rfile Edit...

i. Enter max-temp-1c.out for Output File Base Name.

ii. Click OK to close the Edit Report File dialog box.

g. Modify the axis attributes by setting the Precision to 0 for the X axis and to 2 for the Y axes (in a
manner similar to the surface plot definition).

h. Click OK.

5. Save the case file.

File → Write → Case...

22.4.4.6. Obtaining Solution


1. Initialize the field variables using the Standard Initialization method.

Solving → Initialization

a. Retain the selection of the Standard method (Initialization group).

b. Click Initialize.

You do not need to modify Initial Values in the Solution Initialization task page, because these
values are not used for initialization. The ANSYS Fluent solver automatically computes the initial
condition for UDS0 and UDS1.

2. Run the simulation.

Solving → Run Calculation

a. Set Time Step Size to 30 seconds and No. of Time Steps to 100.

b. Click Calculate.

The residual plot, the report for voltage at the positive tap and the history of the maximum
temperature in the domain are shown in Figure 22.5: Residual History of the Simulation (p. 813),
Figure 22.6: Report Plot of Discharge Curve at 1 C (p. 813), and Figure 22.7: History of Maximum
Temperature in the Domain (p. 814), respectively.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
812 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 22.5: Residual History of the Simulation

Figure 22.6: Report Plot of Discharge Curve at 1 C

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 813
Simulating a Single Battery Cell Using the MSMD Battery Model

Figure 22.7: History of Maximum Temperature in the Domain

3. Save the case and data files (unit_battery.cas.gz and unit_battery.cas.gz).

File → Write → Case & Data...

22.4.5. Postprocessing
In this section, postprocessing capabilities for the MSMD battery model solution are demonstrated.

1. Display the contour plot of the phase potential for the positive electrode.

Postprocessing → Graphics → Contours → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
814 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. In the Contours dialog box, in the Options group box, enable Filled.

b. From the Contours of drop-down list, select User Defined Scalars... and Potential Phi+.

c. Click the Toggle Tree View button next to the Surfaces filter and from the drop-down list, select
Surface Type (under Group by).

d. From the Surfaces selection list, under Wall, select tab_p, wall_active, and wall_p.

e. Click Display and close the Contours dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 815
Simulating a Single Battery Cell Using the MSMD Battery Model

Figure 22.8: Contour Plot of Phase Potential for the Positive Electrode

2. In a similar manner, display the contour plot of the phase potential for the negative electrode.

Postprocessing → Graphics → Contours → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
816 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. In the Contours dialog box, in the Options group box, enable Filled.

b. From the Contours of drop-down list, select User Defined Scalars... and Potential Phi-.

c. From the Surfaces selection list, select tab_n, wall_active, and wall_n.

d. Click Display and close the Contours dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 817
Simulating a Single Battery Cell Using the MSMD Battery Model

Figure 22.9: Contour Plot of Phase Potential for the Negative Electrode

3. Display the contour plot of the temperature.

Postprocessing → Graphics → Contours → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
818 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. In the Contours dialog box, in the Options group box, enable Filled.

b. From the Contours of drop-down list, select Temperature... and Static Temperature.

c. Select Wall in the Surfaces selection list.

The surfaces listed under Wall are automatically selected in the Surfaces list.

d. Click Display and close the Contours dialog box.

Note

Use the Axes dialog box to set the precision for the colormap labels.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 819
Simulating a Single Battery Cell Using the MSMD Battery Model

Figure 22.10: Contour Plot of Temperature

4. Display the vector plot of current density.

Postprocessing → Graphics → Vectors → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
820 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. In the Vectors dialog box, select current-density-j from the Vectors of drop-down list.

b. Select User Defined Memory... and Magnitude of Current Density from the Color by drop-down
list.

c. Click the Toggle Tree View button next to the Surfaces filter and from the drop-down list, select
Surface Type (under Group by).

d. From the Surfaces selection list, select Wall.

e. In the Options group, enable Draw Mesh and in the Mesh Display dialog box, set the mesh display
options as desired.

f. Click Display and close the Vectors dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 821
Simulating a Single Battery Cell Using the MSMD Battery Model

Figure 22.11: Vector Plot of Current Density

5. Save the case file as ntgk.cas.gz. You will use this saved case later to treat electric short-circuits.

6. Repeat the simulation for the following charge rates and time steps:

C-Rate Number of Time Steps


0.5 C 230
5C 23

Make the following changes in the model’s settings:

a. In the MSMD Battery Model dialog box, under the Model Options tab, specify the value listed in the
above table for the C-Rate.

b. Modify the output filename for the voltage_vp-rfile report file by entering ntgk-C-Rate.out for
Output File Base Name in the corresponding Edit Report File dialog box, where C-Rate is the value
of the battery discharge rate. (For example, for C-Rate = 0.5 C, you will enter ntgk-0.5c.out for the
filename).

c. Similarly, modify the output filename for max_temp-rfile by entering max-temp-C-Rate.out for
Output File Base Name in the corresponding Edit Report File dialog box.

d. Initialize and run the solution for the number of the times steps specified in the above table.

Note

The Fluent solver will stop either after completing the specified number of time steps
or when the Min. Stop Voltage condition is reached.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
822 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

7. Display the discharge curves for the positive tab for the different discharge rates.

Postprocessing → Plots → File...

a. In the File XY Plot dialog box, click Load....

b. In the Select File dialog box, change File of Types to All Files (*), click ntgk-0.5c.out and
click OK.

c. Under Legend Entries, in the lowest text-entry box, enter 0.5c and click Change Legend Entry.

d. Do the same for ntgk-1c.out and ntgk-5c.out and change their legend entries accordingly.

e. In the Legend Title text-entry box, enter Discharge Rate.

f. Click Plot and close the File XY Plot dialog box.

Note

Use the Axes dialog box to set the precision for the plot axes.

The Figure 22.12: NTGK Model: Discharge Curves (p. 823) shows the discharge curves for different
discharge rates in the function of time.

Figure 22.12: NTGK Model: Discharge Curves

8. In a manner similar to the previous step, load the files max-temp-0.5c.out, max-temp-1c.out, and
max-temp-5c.out and display the maximum temperature curves in the domain.

Figure 22.13: NTGK Model: Maximum Temperature in the Domain (p. 824) shows the maximum tem-
perature curves in the simulation for different discharge rates.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 823
Simulating a Single Battery Cell Using the MSMD Battery Model

Figure 22.13: NTGK Model: Maximum Temperature in the Domain

22.4.6. Simulating the Battery Pulse Discharge Using the ECM Model
1. In the MSMD Battery Model dialog box, under E-Chemistry Models, select Equivalent Circuit Model.

2. Under Electrical Parameters, retain the default value of 14.6 Ah for Nominal Cell Capacity.

3. Retain the default selection of Specified C-Rate and enter 1 for C-Rate.

4. Under the Model Parameters tab, retain the battery specific parameters.

For a given battery, these model parameters can be obtained using the battery's HPPC testing data.
See Using the Dual-Potential MSMD Battery Model Text User Interface in the ANSYS Fluent Advanced
Add-On Modules for details.

5. Click OK to apply the ECM battery model settings and close the MSMD Battery Model dialog box

6. Click OK in the Warning dialog box informing you that the re-initialization of the battery model is required.

7. Disable writing the maximum temperature in the domain over time to a file.

Solutions → Report Definitions → max_temp Edit...

a. In the Volume Report Definition dialog box, under Report Files, deselect max_temp-rfile.

b. Click OK to close the Volume Report Definition dialog box.

8. In a similar manner, disable writing the time-dependent voltage at the positive tab to a file.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
824 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

9. In the Solution Initialization task page, click Initialize to re-initialize the field variables.

10. Simulate the battery pulse discharge by changing the battery operating conditions each time after running
the calculation for five minutes.

a. In the Run Calculation task page, set Number of Time Steps to 10 and click Calculate.

b. Once the calculation is complete, set C-Rate to 0 and run the calculation for 10 more time steps.

c. Continue the simulation by alternating the value of C-Rate between 1 C and 0 C until, until the battery
is fully discharged.

Note

Instead of doing this manually, you can use the Using Profile option in the MSMD
Battery Model dialog box and load a profile file with specified C-rate fluctuations to
drive the whole process. For more information about the usage of a profile file, refer
to Specifying Battery Model Options in the ANSYS Fluent Advanced Add-On Modules..

The battery pulse discharge is summarized in Figure 22.14: Battery Pulse Discharge (p. 825).

Figure 22.14: Battery Pulse Discharge

22.4.7. Using the Reduced Order Method (ROM)


You will use the ntgk.cas.gz case file that you saved earlier to illustrate how to use the ROM for
time-efficient calculations. This section assumes that you are already familiar with the ANSYS Fluent
battery model; only the steps related specifically to using the ROM for problem solution are discussed
here.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 825
Simulating a Single Battery Cell Using the MSMD Battery Model

1. Read the NTGK model case file ntgk.cas.gz.

2. Initialize the problem.

3. In the Run Calculation task page, enter 3 for Number of Time Steps and click Calculate.

Click No in the Question dialog box when asked if you would like to append the new data to the
existing file, and then click Yes in the Warning dialog box to overwrite the existing file.

4. Once the calculation is complete, enable the ROM.

Setup → Models → MSMD Battery Model Edit...

a. In the MSMD Battery Model dialog box, select Reduced Order Method.

b. Set Number of Sub-Steps/Time Step to 10.

5. Continue running your simulation from the direct method solution.

The solution of the simulation using the ROM is significantly faster than when using the direct
method without any changes in results.

22.4.8. External and Internal Short-Circuit Treatment


You will again use the ntgk.cas.gz case file that you saved earlier to illustrate how to treat external
and internal short-circuits in a battery simulation. It is assumed that the battery is experiencing external
and internal short-circuit simultaneously. This extreme case will be used to demonstrate the problem
setup and postprocessing in a short simulation. This section assumes that you are already familiar with
the ANSYS Fluent battery model, only the steps related to short simulation are emphasized here.

22.4.8.1. Setting up and Solving a Short-Circuit Problem


1. Read the NTGK model case file ntgk.cas.gz.

2. Set up the external electric short-circuit.

a. In the MSMD Battery Model dialog box, under the Model Options tab, in the Solution Options group
box, enable Specified Resistance.

b. For External Resistance, enter 0.5 Ohm and click OK.

3. Set up the internal electric short-circuit in the center of the battery cell.

a. Mark the short-circuit zone shown in Figure 22.15: Internal Short Circuit Region Marked for Patch-
ing (p. 827) using the region adaption feature.

Setting Up Domain → Adapt → Mark/Adapt Cells → Region...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
826 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 22.15: Internal Short Circuit Region Marked for Patching

i. In the Region Adaption dialog box, enter the following values for Input Coordinates.

X Min X Max Y Min Y Max Z Min Z Max


-0.01 0.01 -0.01 0.02 -1 1

ii. Under Options, retain the default selection of Inside.

iii. Under Shapes, retain the default selection of Hex.

iv. Click Mark.

Fluent reports in the console that 12 cells were marked for refinement.

Extra

If you want to display the marked cells, perform the following steps:

A. In the Region Adaption dialog box, click Manage....

B. In the Manage Adaption Registers dialog box, click Options.

C. In the Adaption Display Option dialog box, under Options, enable Draw Mesh.

D. In the Mesh Display dialog box, ensure that Edges and Faces are enabled under
Options, and All is enabled under Edge Type, and click Close.

E. Ensure that Wireframe is enabled under Refine and click OK

F. Click Display.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 827
Simulating a Single Battery Cell Using the MSMD Battery Model

4. Initialize the field variables using the standard initialization method.

5. Patch the internal short circuit zone with the short resistance value.

Solving → Initialization → Patch...

a. In the Solution Initialization task page, click Patch.

b. In the Patch dialog box, select Short Circuit Resistance under Variable.

c. Select hexehedron-r0 under Registers to Patch.

d. For Value, enter 5.0e-7.

e. Click Patch and close the Patch dialog box.

6. Save the case file as ntgk_short_circuit.cas.gz.

7. Run the simulation for 5 seconds.

Solving → Run Calculation

a. Set Time Step Size to 1 second and No. of Time Steps to 5.

b. Click Calculate.

8. Save the case and data files (ntgk_short_circuit.cas.gz and ntgk_short_circuit.dat.gz).

22.4.8.2. Postprocessing
1. Compute the battery tab voltage .

Postprocessing → Reports → Surface Integrals...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
828 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. In the Surface Integrals dialog box, from the Report Type drop-down list, select Area-Weighted Av-
erage.

b. From the Field Variable drop-down lists, select User Defined Scalar... and Potential Phi+.

c. In the Surfaces filter, type t to display surface names that begin with "t" and select tab_p from the
selection list.

d. Click Compute.

The battery tab voltage of approximately 4.078 V is printed in the Area-Weighted Average field
and in the Fluent console.

2. Compute the battery tab current .

Postprocessing → Reports → Volume Integrals...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 829
Simulating a Single Battery Cell Using the MSMD Battery Model

a. In the Report Type group box, select Volume Integrals.

b. From the Field Variable drop-down lists, select User Defined Memory... and Volumetric Current
Source.

c. From the Cell Zones selection list, select e_zone.

d. Click Compute.

Fluent reports in the Total Volume Integral field and in the console that the total volume integral
for the volumetric current source is approximately 8.155 A.

The computed values of the battery tab current and voltage satisfy the tab boundary condition
.

3. Display the vector plot of current at the positive and negative current collectors.

Postprocessing → Graphics → Vectors → Edit...

a. In the Vectors dialog box, select current-density-jp from the Vectors of drop-down list.

b. Select User Defined Memory... and Magnitude of Current Density from the Color by drop-down
lists.

c. From the Surfaces selection list, select Wall.

The surfaces of the "wall" type are automatically selected in the Surfaces list.

d. Click Display.

e. The plot shows the vector plot of electric current flow in the positive current collector of the battery
cell.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
830 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 22.16: The Vector Plots of Current at the Positive Current Collectors

f. In a similar manner, display the current for the negative current collector by selecting current-density-
jn from the Vectors of drop-down list.

The plot shows the vector plots of electric current flow in the negative current collector of the
battery cell.These plots clearly show that besides providing tab current, short current flows from
positive electrode to the negative electrode through the short area.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 831
Simulating a Single Battery Cell Using the MSMD Battery Model

Figure 22.17: The Vector Plots of Current at the Negative Current Collectors

g. Close the Vectors dialog box.

4. Display the contour plot of the temperature as you did previously.

Postprocessing → Graphics → Contours → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
832 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. In the Contours dialog box, under Options, enable Filled.

b. From the Contours of drop-down list, select Temperature... and Static Temperature.

c. From the Surface Types selection list, select wall.

d. Click Display and close the Contours dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 833
Simulating a Single Battery Cell Using the MSMD Battery Model

Figure 22.18: Contour Plot of Temperature

Figure 22.18: Contour Plot of Temperature (p. 834) shows a temperature hotspot in the internal
shorted area of the battery cell.

5. Check for different electric current flow rates in the manner described in step 2.

a. Generate volume integral reports for the field variables listed in the table below.

Field Variable Notation Reported Value


Volumetric Short Current Source 15.844 A
Volumetric ECHEM Current Source 23.999 A

b. Verify that the total produced electric current equals to the sum of tab and short current, that is
.

6. Check for different types of heat generation rates.

a. As you did for the current source reports, generate reports for the field variables listed in the table below.

Field Variable Notation Reported Value


Volumetric Ohmic Source 0.0339 W

Electrochemistry Source 1.092 W


Short-Circuit Heat Source 64.607 W
Total Heat Generation Source 65.733 W

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
834 of ANSYS, Inc. and its subsidiaries and affiliates.
Appendix

b. Verify that the total heat generation rate is the sum of different contributions, that is
.

Note that, as battery's temperature increases, thermal runaway may occur. If thermal runaway starts,
some undesirable exothermic decomposition reactions will occur. For thermal runaway simulations, the
default electrochemistry model cannot be used. Short treatment can only capture the thermal ramp-up
process before the onset of thermal runaway.

22.5. Summary
In this tutorial, you studied how to solve a battery cell problem using the NTGK submodel with the
default settings. You then used the ROM to speed up the computation time of the battery model sim-
ulation. In addition, you learned how to use the MSMD model capability to treat external and internal
short-circuits.

For more information about using the Dual-Potential MSMD Battery model, see the Fluent Advanced
Add-On Modules documentation.

22.6. Appendix
The battery cell cross-section is shown in the figure below.

You can estimate the material properties for your battery cell using the following correlations:

• For density , heat capacity , and thermal conductivity :

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 835
Simulating a Single Battery Cell Using the MSMD Battery Model

where is the effective property value of a material property (such as density, heat capacity, or
thermal conductivity), is the thickness. The subscripts , , and refer to current collector, electrode,
and separator, respectively. The superscripts and refer to positive and negative, respectively.

• For electric conductivity :

The material properties are taken from Kim’s papers [2] and [1]. The computed material properties for
the battery cell presented in the tutorial are shown in the table below.

Zone Total
[um] 20 150 12 145 10 322

[kg/m3] 2700 1500 1200 2500 8960 2092

[J/kg-K] 900 700 700 700 385 678


[W/m-K] 238 5 1 5 398 18.2
[s/m] 3.83e7 13.9 100 6.33e7 = 1.19e6

= 9.83e5

22.7. References
1. U. S. Kim et al,“Effect of electrode configuration on the thermal behavior of a lithium-polymer battery”,
Journal of Power Sources, Volume 180 (2), pages 909-916, 2008.

2. U. S. Kim, et al.,“Modeling the Dependence of the Discharge Behavior of a Lithium-Ion Battery on the En-
vironmental Temperature”, J. of Electrochemical Soc., Volume 158 (5), pages A611-A618, 2011.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
836 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 23: Simulating a 1P3S Battery Pack Using the MSMD Battery
Model
This tutorial is divided into the following sections:
23.1. Introduction
23.2. Prerequisites
23.3. Problem Description
23.4. Setup and Solution
23.5. Summary

23.1. Introduction
This tutorial is used to show how to set up a battery pack (battery system connected in parallel/series
pattern) simulation in ANSYS Fluent. All the three submodels are available for a pack simulation.

This tutorial illustrates how to do the following:

• Load the Battery module add-on

• Set up a battery pack simulation using the NTGK battery submodel in ANSYS Fluent

• Define active, tab, and busbar conductive zones

• Define electric contacts for the contact surface and external connectors

• Define electric conductivity for the active material using the user-defined scalars

• Define electric conductivity for the passive material using the user-defined function

• Obtain the battery pack simulation results and perform postprocessing activities

Most problem setup procedures are similar to the single cell simulation. The differences in the problem
setup will be emphasized in this tutorial.

23.2. Prerequisites
This tutorial is written with the assumption that you have completed one or more of the introductory
tutorial Introduction to Using ANSYS Fluent: Fluid Flow and Heat Transfer in a Mixing Elbow (p. 1)
found in this manual and that you are familiar with the ANSYS Fluent tree and ribbon structure. Some
steps in the setup and solution procedure will not be shown explicitly.

23.3. Problem Description


This problem considers a small 1P3S battery pack, that is, the three battery cells connected in series. A
schematic of the problem is shown in Figure 23.1: Schematic of the Battery Pack Problem (p. 838).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 837
Simulating a 1P3S Battery Pack Using the MSMD Battery Model

Figure 23.1: Schematic of the Battery Pack Problem

The discharging process of the battery pack is occurring under constant power of 200 W. The nominal
cell capacity is 14.6 Ah.

You will create a material for the battery cells (an active material) and define the electric conductivity
for the active material using the user-defined scalars (UDS). You will create a material for busbars and
tabs (a passive material) and define the electric conductivity for the passive material using the provided
user-defined function (UDF). You will use the same material for busbars and tabs.

In this tutorial, you will use the NTGK battery submodel to simulate the discharging process under
constant power conditions.

23.4. Setup and Solution


The following sections describe the setup and solution steps for this tutorial:
23.4.1. Preparation
23.4.2. Reading and Scaling the Mesh
23.4.3. Loading the MSMD battery Add-on
23.4.4. Battery Model Setup
23.4.5. Postprocessing

23.4.1. Preparation
1. Download the battery_pack.zip file here.

2. Unzip battery_pack.zip to your working directory.

3. The input file 1P3S_battery_pack.msh, 1P3S_battery_pack.cas, and 1P3S_bat-


tery_pack.dat can be found in the folder.

4. Use Fluent Launcher to start the 3D version of ANSYS Fluent.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
838 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

5. Enable Double Precision.

6. Ensure that the Display Mesh After Reading and Workbench Color Scheme options are enabled.

7. Select either Serial or Parallel under Processing Options. In this tutorial, Serial is selected for demon-
stration only.

23.4.2. Reading and Scaling the Mesh


1. Read the mesh file 1P3S_battery_pack.msh.

File → Read → Mesh...

When prompted, browse to the location of the 1P3S_battery_pack.msh and select the file.

Once you read in the mesh, it is displayed in the embedded graphics windows.

2. Check the mesh.

Setting Up Domain → Mesh → Check

3. Scale the mesh.

Setting Up Domain → Mesh → Scale

a. In the Scale Mesh dialog box, select Specify Scaling Factors in the Scaling group.

b. Enter 0.1 for X, Y and Z in the Scaling Factors group.

c. Click Scale and close the Scale Mesh dialog box.

d. Right click in the graphics window and select Refresh Display

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 839
Simulating a 1P3S Battery Pack Using the MSMD Battery Model

e. Clicking the Fit to Window icon, , to fit and center mesh in the graphics window.

4. Check the mesh.

Setting Up Domain → Mesh → Check

23.4.3. Loading the MSMD battery Add-on


1. To load the MSMD battery add-on into ANSYS Fluent, type the following in the console window:
define/models/addon-module

A list of ANSYS Fluent add-on modules is displayed.


Fluent Addon Modules:
0. none
1. MHD Model
2. Fiber Model
3. Fuel Cell and Electrolysis Model
4. SOFC Model with Unresolved Electrolyte
5. Population Balance Model
6. Adjoint Solver
7. Single-Potential Battery Model
8. Dual-Potential MSMD Battery Model
9. PEM Fuel Cell Model
10. Macroscopic Particle Model
Enter Module Number: [0] 8

2. Enter 8 to load the MSMD battery itself.

During the loading process, a scheme library containing the graphical and text user interface, and
a library of user-defined functions (UDFs) containing a set of UDFs for the battery module are loaded
into ANSYS Fluent. Fluent reports the progress in the console.

Once the MSMD battery add-on is loaded, MSMD Battery Model appears in the Model task page
and under the Models tree branch. The UDF library also becomes visible as a new entry in the UDF
Library Manager dialog box.

23.4.4. Battery Model Setup


The following sections describe the setup steps for this tutorial:
23.4.4.1. Specifying Solver and Models
23.4.4.2. Defining New Materials
23.4.4.3. Defining Cell Zone Conditions
23.4.4.4. Defining Boundary Conditions
23.4.4.5. Specifying Solution Settings
23.4.4.6. Obtaining Solution

23.4.4.1. Specifying Solver and Models


1. Enable a time-dependent calculation by selecting Transient in the Solver group of the Setting Up Physics
tab.

Setting Up Physics → Solver → Transient

2. To solve for the temperature field, enable the Energy equation (in the Models group).

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
840 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Setting Up Physics → Models → Energy

3. Enable the battery model.

Setting Up Physics → Models → More → Dual Potential MSMD Battery Model

a. In the MSMD Battery Model dialog box, select Enable MSMD Battery Model.

The dialog box expands to display the battery model’s settings.

Figure 23.2: Model Options

b. Under the Model Options tab (Figure 23.2: Model Options (p. 841)), configure the following battery
operation conditions:

i. Under E-Chemistry Models, enable NTGK Empirical Model.

ii. In the Electrical Parameters group, retain the default value of 14.6 Ah for Nominal Cell Capacity.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 841
Simulating a 1P3S Battery Pack Using the MSMD Battery Model

iii. Enable Specified System Power in the Solution Options group and set System Power to 200
W.

c. Under the Model Parameters tab, retain the default settings for Y and U coefficients. For details, see
the Fluent Advanced Add-On Modules documentation.

d. Under the Conductive Zones tab (Figure 23.3: Conductive Zones (p. 843)), configure the following set-
tings:

Group Control or List Value or Selection


Active Components Zone (s) cell_1
cell_2
cell_3
Tab Components Zone (s) n_tabzone_1
n_tabzone_2
n_tabzone_3
p_tabzone_1
p_tabzone_2
p_tabzone_3
Busbar Components Zone (s) bar1
bar2

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
842 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 23.3: Conductive Zones

e. Under the Electric Contacts tab (Figure 23.4: Electric Contacts (p. 844)), configure the contact surface
and external connector settings as follows:

Group Control or List Value or Selection


External Connectors Negative Tap tab_n
Positive Tap tab_p

The corresponding current or voltage boundary condition will be applied to those boundaries
automatically.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 843
Simulating a 1P3S Battery Pack Using the MSMD Battery Model

Figure 23.4: Electric Contacts

f. Click the Print Battery System Connection Information button.

ANSYS Fluent prints the battery connection information in the console window:
Battery Network Zone Information:
-------------------------------------
Battery Serial 1
Parallel 1
N-Tab zone: n_tabzone_1
Active zone: cell_1
P-Tab zone: p_tabzone_1
Battery Serial 2
Parallel 1
N-Tab zone: n_tabzone_2
Active zone: cell_2

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
844 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

P-Tab zone: p_tabzone_2


Battery Serial 3
Parallel 1
N-Tab zone: n_tabzone_3
Active zone: cell_3
P-Tab zone: p_tabzone_3
-----------------------------------
Busbar zone 1: bar1
Busbar zone 2: bar2

Active zone list at odd level: cell_1 cell_3


Active zone list at even level: cell_2

Number of battery seriel =3; Number of parallel per serial=1


****************END OF BATTERY CONNECTION INFO**************

g. Verify that the connection information is correct. If an error message appears or if the connections are
not what you want, redefine the conductive zones in the Conductive Zones tab (Figure 23.3: Conductive
Zones (p. 843)). Repeat this process until you confirm that the battery connections are set correctly.

Important

To set a valid connection, you must connect the negative tab to the positive tab
through conductive zones.

h. Click OK to close the MSMD Battery Model dialog box.

In the background, Fluent automatically hooks all the necessary UDFs for the problem.

23.4.4.2. Defining New Materials


Define the new e_material material for all the battery’s cells and busbar_material material for the battery
pack’s busbars and tabs.

Important

For the battery active material, you must define the electric conductivity via the UDS diffus-
ivity on a per-scalar basis. ANSYS Fluent will use these two UDS scalars to solve the differential
equations; for details, see the Fluent Advanced Add-On Modules documentation.

For the battery passive material(s), you must define the UDS diffusivity using a user-defined
function (UDF).

1. Create the electric material.

Setup → Materials → Solid → aluminum Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 845
Simulating a 1P3S Battery Pack Using the MSMD Battery Model

a. In the Create/Edit Materials dialog box, enter e_material for Name and e for Chemical Formula.

b. Set Thermal Conductivity to 20.

c. Under Properties, ensure that define-per-uds is selected from the UDS Diffusivity drop-down list
and click Edit... next to UDS Diffusivity.

d. In the UDS Diffusion Coefficients dialog box, set the constant value of 1.0 e6 for the both user-defined
scalars.

i. Select uds-0 in the User-Defined Scalar Diffusion list.

ii. Retain constant from the Coefficient drop-down list.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
846 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

iii. Set 1.0 e6 [s/m] for Coefficient.

iv. In a similar way, set uds-1 to 1.0 e6 and close the UDS Diffusion Coefficients dialog box.

Note

• The units for UDS Diffusivity are s/m, and cannot be modified.

• In this tutorial, the electric conductivities are the same for the two scalars UDS0 and
UDS1, so you will need to define only one material for all cell zones. If the electric
conductivities are different for positive and negative electrodes, you will need to define
two different materials, as described in the Fluent Advanced Add-On Modules docu-
mentation.

v. In the Question dialog box, click No to retain aluminum and add the new material (e_material) to
the materials list.

e. Ensure that e_material (e) is selected from the Fluent Solid Materials drop-down list.

f. Click Change/Create.

Note

If the UDS Diffusion Coefficients are defined through the defined-per-uds option,
the Fluent solver does not use the value for Electrical Conductivity.

2. Create the busbar_material material for busbars and tabs by modifying e-material you have created in the
previous step.

Setup → Materials → Solid → e-material Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 847
Simulating a 1P3S Battery Pack Using the MSMD Battery Model

As stated in the problem description, you will use the same material for busbars and tabs.

Note

If the busbar and tab materials are different, you need to define the two different mater-
ials and assign them to the busbars and tabs, respectively.

The UDS Diffusivity for both busbar and tab materials must be defined through the UDF as described
below.

a. In the Create/Edit Materials dialog box, enter busbar_material for Name and bus for Chemical
Formula.

b. Under Properties, select user-defined from the UDS Diffusivity drop-down list.

c. In the User-Defined Functions dialog box that opens, verify that battery_e_cond::msmdbatt is selected
and click OK.

d. In the Question dialog box, click No to retain e-material and add the new busbar_material material
to the materials list.

Fluent hooks the battery_e_cond::msmdbatt UDF to the busbar material.

e. Ensure that busbar_material (bus) is selected from the Fluent Solid Materials drop-down list.

f. Set Thermal Conductivity to 20.

g. Retain the default value of 3.541 e7 [1/ohm-m] for Electrical Conductivity.

h. Click Change/Create.

i. Close the Create/Edit Materials dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
848 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

23.4.4.3. Defining Cell Zone Conditions


Assign e_material to all the cell zones and busbar_material to all the tabs and busbars.

1. Assign e_material to the cell_1 cell zone.

Setup → Cell Zone Conditions → cell_1 → Edit...

a. In the Solid dialog box, select e_material from the Material Name drop-down list.

b. Click OK.

2. Copy the cell zone condition for the cell_1 zone to the cell_2 and cell_3 cell zones.

Setup → Cell Zone Conditions → cell_1 → Copy...

a. In the Copy Conditions dialog box, select cell_1 in the From Cell Zone list.

b. In the To Cell Zones list, select cell_2 and cell_3.

c. Click Copy.

d. Click OK in the Question dialog box to copy the cell zone conditions and close the Copy Conditions
dialog box.

3. In a similar manner, assign busbar_material to all the tabs and busbars cell zones.

23.4.4.4. Defining Boundary Conditions


Define the thermal boundary conditions for all walls for the cells, busbars, and tabs. The boundary
conditions for the two UDSs have been set automatically when you defined the cell zone conditions.

1. Set the convection boundary condition for wall-cell_1.

Setting Up Physics → Zones → Boundaries

a. In the Boundary Conditions task page, double-click wall-cell_1.

b. In the Wall dialog box, under the Thermal tab, configure the following settings:

i. Under Thermal Conditions, enable Convection.

ii. Set Heat Transfer Coefficient to 5 [w/m2K].

iii. Set Free Stream Temperature to 300 [K].

iv. Click OK to close the Wall dialog box.

2. Copy the boundary conditions for wall-cell_1 to wall-cell_2, wall-cell_3 and all the tab
and busbar wall zones (a boundary zones that have names starting with the "wall" string and containing
the "bar" or "tabzone" string).

Setup → Boudnary Conditions → wall-cell_1 → Copy...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 849
Simulating a 1P3S Battery Pack Using the MSMD Battery Model

23.4.4.5. Specifying Solution Settings


1. Turn off the flow equation.

Solving → Controls → Equations...

a. In the Equations dialog box, deselect Flow from the Equation selection list.

b. Click OK.

2. Remove the convergence criteria to ensure that automatic convergence checking does not occur.

Solving → Reports → Residuals...

a. In the Residual Monitors dialog box, select none from the Convergence Criterion drop-down list.

b. Click OK.

3. Create a surface report definition for the voltage at the positive tab.

Solving → Reports → Definitions → New → Surface Report → Area-Weighted Average

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
850 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. In the Surface Report Definition dialog box, enter surf-mon-1 for Name.

b. Select User Defined Scalars... and Potential Phi+ from the Field Variable drop-down lists.

c. From the Surfaces selection list, select tab_p.

d. In the Create group box, enable Report Plot and Print to Console.

e. Click OK to save the surface report definition and close the Surface Report Definition dialog box.

f. Modify the attributes of the plot axes.

Solution → Monitors → Report Plots → surf-mon-1-rplot Edit...

i. In the Edit Report Plot dialog box, under the Plot Window group box, click the Axes... button to
open the Axes dialog box.

ii. Select the X axis and set Precision to 0.

iii. Click Apply.

iv. Select the Y axis and set Precision to 2.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 851
Simulating a 1P3S Battery Pack Using the MSMD Battery Model

v. Click Apply and close the Axes dialog box.

Note

You must click Apply to save the modified settings for each axis.

vi. Click OK

g. Ensure that time-step is selected from the Get Data Every drop-down list.

h. Click OK.

4. Create a volume report definition to monitor the maximum temperature in the domain.

Solving → Reports → Definitions → New → Volume Report → Max...

a. In the Volume Report Definition dialog box, enter vol-mon-1 for Name.

b. Select Temperature... and Static Temperature from the Field Variable drop-down lists.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
852 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

c. From the Cell Zones selection list, select all zones.

d. In the Create group box, enable Report Plot and Print to Console.

e. Click OK to save the volume report definition settings and close the Volume Report Definition dialog
box.

f. Modify the attributes of the plot axes.

Solution → Monitors → Report Plots → vol-mon-1-rplot Edit...

i. In the Edit Report Plot dialog box, under the Plot Window group box, click the Axes... button to
open the Axes dialog box.

ii. Select the X axis and set Precision to 0.

iii. Click Apply.

iv. Select the Y axis and set Precision to 2.

v. Click Apply and close the Axes dialog box.

vi. Ensure that time-step is selected from the Get Data Every drop-down list.

vii. Click OK to close the Edit Report Plot dialog box.

5. Save the case file.

File → Write → Case...

23.4.4.6. Obtaining Solution


1. Initialize the field variables using the Standard Initialization method.

Solution → Solution Initialization

a. Retain the selection of Standard from the Initialization Methods group box.

b. Click Initialize.

You do not need to modify the Initial Values in the Solution Initialization task page, because
these values are not used for initialization. The ANSYS Fluent solver automatically computes the
initial condition for UDS0 and UDS1.

2. Run the simulation.

Solving → Run Calculation

a. Set Time Step Size to 30 seconds and No. of Time Steps to 50.

b. Click Calculate and run the simulation up to 1500 seconds.

The residual plot, the history of the voltage at the positive tap and the history of the maximum
temperature in the domain are shown in Figure 23.5: Residual History of the Simulation (p. 854),

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 853
Simulating a 1P3S Battery Pack Using the MSMD Battery Model

Figure 23.6: Surface Report Plot of Discharge Curve at 200W (p. 854), and Figure 23.7: Volume
Report Plot of Maximum Temperature in the Domain (p. 855), respectively.

Figure 23.5: Residual History of the Simulation

Figure 23.6: Surface Report Plot of Discharge Curve at 200W

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
854 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 23.7: Volume Report Plot of Maximum Temperature in the Domain

23.4.5. Postprocessing
In this section, postprocessing options for the MSMD battery model solution are presented.

1. Display the vector plot of current density.

Postprocessing → Graphics → Vectors → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 855
Simulating a 1P3S Battery Pack Using the MSMD Battery Model

a. In the Vectors dialog box, select current-density-j from the Vectors of drop-down list.

b. Select User Defined Memory... and Magnitude of Current Density from the Color by drop-down
list.

c. Click the Toggle Tree View button next to the Surfaces filter and from the drop-down list, select
Surface Type (under Group By).

d. From the Surfaces selection list, select Wall.

The surfaces of the "wall" type are automatically selected in the Surfaces list.

e. In the Options group, enable Draw Mesh and set the mesh display options as desired.

f. Set Scale to 0.003.

g. Click Vector Options....

i. In the Vector Options dialog box, enable Fixed Length.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
856 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

All vectors in your plot will be displayed with the same lengths.

ii. Click Apply and close the Vector Options dialog box.

h. Click Display and close the Vectors dialog box.

Figure 23.8: Vector Plot of Current Density

Note

Use the Headlight and Lighting display options under the Viewing ribbon tab to
manipulate the graphics display.

2. Display the contour plot of the temperature.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 857
Simulating a 1P3S Battery Pack Using the MSMD Battery Model

Postprocessing → Graphics → Contours → Edit...

a. In the Contours dialog box, in the Options group box, enable Filled.

b. From the Contours of drop-down list, select Temperature... and Static Temperature.

c. Click the Toggle Tree View button next to the Surfaces filter and from the drop-down list, select
Surface Type (under Group By).

d. From the Surfaces selection list, select Wall.

e. Click Display and close the Contours dialog box.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
858 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

Figure 23.9: Contour Plot of Temperature

3. In a similar manner, display the contour of Ohmic heat source.

Postprocessing → Graphics → Contours → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 859
Simulating a 1P3S Battery Pack Using the MSMD Battery Model

a. From the Contours of drop-down list, select User Defined Memory... and Volumetric Ohmic Source.

b. Click Display.

Figure 23.10: Ohmic Heat Generation Rate

4. In a similar manner, display the contour of the total heat source.

Postprocessing → Graphics → Contours → Edit...

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
860 of ANSYS, Inc. and its subsidiaries and affiliates.
Setup and Solution

a. From the Contours of drop-down list, select User Defined Memory... and Total Heat Generation
Source.

b. Click Display.

Figure 23.11: Total Heat Generation Rate

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 861
Simulating a 1P3S Battery Pack Using the MSMD Battery Model

23.5. Summary
This tutorial has demonstrated the use of the MSMD battery add-on to perform electrochemical and
heat transfer simulations for battery packs. You have learned how to set up and solve the problem for
the battery pack of the 1P3S configuration using the NTGK Battery submodel. You have also learned
some of the postprocessing capabilities available in the MSMD battery model.

As an exercise, you can obtain solutions using the Equivalent Circuit Model and Newman P2D Model.
For details, see the Fluent Advanced Add-On Modules documentation.

Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
862 of ANSYS, Inc. and its subsidiaries and affiliates.

You might also like