Computational Fluid Dynamics Assignment 2
Computational Fluid Dynamics Assignment 2
Submitted by:
Sarah Saleem
210101048
Aero 20-A
Submitted to:
Dr. Umer Sohail
31/03/2024
Department of Aeronautics and Astronautics
Institute of Space Technology, Islamabad
1
Copyright © 2024
This document is jointly copyrighted by the authors and the Institute of Space
Technology (IST). The author and IST can use, publish or reproduce this
document in any form. Under the copyright law no part of this document can be
reproduced by anyone, except copyright holders, without the permission of the
authors.
2
Table of Contents
2D Pipe Junction ..................................................................................................................................... 5
Introduction ............................................................................................................................................. 5
1. Create a Project ........................................................................................................................... 5
2. Initialize Blocking ....................................................................................................................... 6
3. Split to Create Topology ............................................................................................................. 6
4. Deleteeing Blocks ....................................................................................................................... 7
5. Vertex to Point Association ........................................................................................................ 8
6. Associate Edges to Curves .......................................................................................................... 9
7. Displaying Associations............................................................................................................ 10
8. Grouping Curves ....................................................................................................................... 10
9. Finishing Edge to Curve Associations ...................................................................................... 11
10. Move Vertices onto Geometry .............................................................................................. 12
11. Mesh Sizes ............................................................................................................................ 12
12. Update Sizes.......................................................................................................................... 13
13. Compute Pre-Mesh ............................................................................................................... 14
14. Edge Parameters.................................................................................................................... 14
15. Matching Edges .................................................................................................................... 15
16. Convert to Unstructured Mesh .............................................................................................. 16
17. Select Solver ......................................................................................................................... 17
18. Boundary Conditions ............................................................................................................ 18
19. Write Input File ..................................................................................................................... 19
3
Table of Figures
Figure 1. Geometry of 2D pipe junction ................................................................................................. 5
Figure 2. Blocking of 2D pipe junction .................................................................................................. 6
Figure 3. Splitting 2D pipe junction to create topology .......................................................................... 7
Figure 4. Boxes to delete in geometry .................................................................................................... 7
Figure 5. Geometry after deletion of boxes ............................................................................................ 8
Figure 6. Vertex to point association guidelines ..................................................................................... 8
Figure 7. Vertex to Point Association ..................................................................................................... 9
Figure 8. Associating curves to edges ..................................................................................................... 9
Figure 9. Displaying Associations in geometry .................................................................................... 10
Figure 10. Guidelines for grouping curves ........................................................................................... 10
Figure 11. Grouped curves .................................................................................................................... 11
Figure 12. Finishing Edge to Curve Associations................................................................................. 11
Figure 13. Move Vertices onto Geometry ............................................................................................ 12
Figure 14. Mesh Sizes ........................................................................................................................... 13
Figure 15. Update Sizes ........................................................................................................................ 13
Figure 16. Compute Pre-Mesh .............................................................................................................. 14
Figure 17. Edge Parameters .................................................................................................................. 15
Figure 18. Solid and wire geometry ...................................................................................................... 15
Figure 19. Matching Edges of geometry ............................................................................................... 16
Figure 20. Unstructured Mesh on geometry ......................................................................................... 16
Figure 21. Solver setup ......................................................................................................................... 17
Figure 22. Select Solver ........................................................................................................................ 18
Figure 23. Selecting Boundary Conditions. .......................................................................................... 19
Figure 24. Saving Project ...................................................................................................................... 20
Figure 25. Ansys Fluent options ........................................................................................................... 20
4
2D Pipe Junction
Introduction
In this project we will learn meshing on ANSYS-ICEM. We have 2D Pipe Junction geometry and we
will study the basic process and tools used for hexa-blocking. In this assignment we will analyze a step-
by-step tutorial which demonstrates
• Top-down process and structuring concepts for desired grid line flow.
• Edge associations.
• Curve grouping.
• Match edges.
• Convert to an Unstructured mesh.
1. Create a Project
In first step we will import the geometry of 2D Pipe Junction in ANSYS-ICEM, and parts names will
be assigned by using the option of Create Part.
• Click on parts
• Assign part name.
• Select 1st figure under create part option.
• Enter the name of the part
• Right-click on Parts in the tree and select “Good” colours when done.
• Only necessary to set up parts for the boundary conditions here.
5
2. Initialize Blocking
Blocking is a technique used to create structured or mapped grids in regions of the mesh. Structured
grids are composed of quadrilateral elements, which offer several advantages over unstructured grids,
such as better numerical accuracy, efficiency, and ease of boundary condition specification.
This will create a block in the FLUID part which encloses the entire geometry. Curves will
automatically change colour (coloured separately instead of by part) to allow us to see the ends of
curves.
Split to Create Topology tool is used to divide the geometry into smaller, more manageable parts to
facilitate meshing, particularly in regions where the geometry is complex or where specific meshing
requirements exist. This tool allows us to create additional edges, faces, or vertices on the geometry
without altering its overall shape.
6
In this way two vertical and one horizontal splits are created.
4. Deleteeing Blocks
Deleting Blocks command is used in ANSYS-ICEM to remove or delete structured blocks that have
been created during the blocking process.
7
• Click Apply to delete boxes.
Vertex to Point Association is used to connect mesh vertices to specific points on the geometry. This
association is crucial for ensuring that the mesh accurately conforms to the geometry and that boundary
conditions are correctly applied.
8
Figure 7. Vertex to Point Association
Associate Edges to Curves is used to establish a relationship between the edges of a geometry and the
curves defined within that geometry.
9
7. Displaying Associations
Displaying Association is used to display associations for understanding the relationship between the
geometry and the mesh.
• Right click on Blocking > Edges > Show Association in the model tree.
• Use to visually verify proper association.
• First tool in diagnosing projection problems.
8. Grouping Curves
Grouping Curves is used to organize and manage curves in the geometry. This is particularly useful
when dealing with complex geometries or when specific meshing requirements need to be met.
10
• Colour of first selected curve is taken. This doesn’t concatenate the curves. It is only a grouping
which is saved to the block file. Once the block file is closed, this grouping is gone.
Finishing Edge to Curve Associations in meshing is a process used to establish a relationship between
mesh edges and geometric curves. This association is crucial for accurately transferring the geometry
information to the mesh and ensuring that the mesh conforms to the intended geometry.
11
10. Move Vertices onto Geometry
Move Vertices onto Geometry is used for several purposes, primarily aimed at improving mesh quality,
ensuring accurate boundary representation, and facilitating better mesh generation.
In ICEM-ANSYS meshing, specifying mesh sizes is crucial for controlling the resolution of the mesh.
Mesh sizes determine the spacing of mesh nodes or elements, which directly affects the accuracy,
computational cost, and convergence of the simulation.
12
Figure 14. Mesh Sizes
The "Update Sizes" tool is used to adjust the size specifications of mesh elements in a specific region
or throughout the entire mesh. This tool is crucial for refining or coarsening the mesh according to
simulation requirements and accuracy considerations.
13
13. Compute Pre-Mesh
In ICEM-ANSYS meshing, the "Compute Pre-Mesh" is used as an initial step in the mesh generation
process. It essentially prepares the geometry for meshing by creating a preliminary mesh that conforms
to the geometry's surfaces.
In ICEM-ANSYS meshing, "Edge Parameters" are used to define specific characteristics and attributes
of edges in the geometry. These parameters play a crucial role in controlling the mesh generation
process and ensuring that the resulting mesh meets certain criteria or requirements.
14
Figure 17. Edge Parameters
• Press the Select edge(s) button and select the edge. Set Spacing 1 = 0.2, Spacing 2 = 0.2 – With
Copy Parameters ON, use the arrows to increase the nodes until the “actual” (right) column of
ratio 1 and ratio 2 meet the requested (left) value of 1.5 (12 nodes).
• Turn Pre-mesh off then on again to recompute.
• Right mouse clicks on Pre-Mesh > Solid & Wire.
In ICEM-ANSYS meshing, the "Matching Edges" is used to ensure continuity and smooth transition
between different mesh regions or blocks, especially when dealing with structured or mapped meshing
techniques.
15
Figure 19. Matching Edges of geometry
Convert to Unstructured Mesh operation is used to transform a structured or hybrid mesh into an
unstructured mesh. Many solvers, particularly those used for complex simulations, require unstructured
meshes for computation. By converting a structured or hybrid mesh to an unstructured one, we can
make it compatible with a wider range of solvers, enabling us to choose the most appropriate solver for
our simulation requirements.
• Right mouse click on Pre-Mesh > Convert to Unstructured Mesh in the model tree.
• This writes the default name hex.uns to the working directory, then immediately loads the mesh.
16
17. Select Solver
In ICEM-ANSYS meshing, the "Select Solver" option is used to specify the solver that will be used to
perform the subsequent CFD (Computational Fluid Dynamics) simulation. This selection is crucial
because different solvers have different numerical methods, capabilities, and requirements. We are
using Ansys FLUENT Solver.
• Turn OFF Mesh > Shells and Geometry > Curves, and turn ON Mesh > Lines in the model tree.
• Turn OFF all Blocking entities, or just save and close the blocking since we are done with it.
• These are line element, not curves. The Line elements are the boundary elements resulting from
edge to curve associations.
• Right click on Mesh > Dot Nodes to see nodes. Now we will set boundary conditions.
17
Figure 22. Select Solver
“Boundary Conditions” tool is used to assign boundary conditions to different parts of the geometry.
This step is important in setting up a computational fluid dynamics (CFD) simulation as it defines how
the flow interacts with the geometry boundaries.
18
Figure 23. Selecting Boundary Conditions.
19
Figure 24. Saving Project
• The last menu has a few options which will be different for every solver. Press Done.
20