Professional Documents
Culture Documents
http://www.altairhyperworks.com/ClientCenterHWSupportProduct.aspx
In addition, the following countries have resellers for Altair Engineering: Colombia, Czech Republic,
Ecuador, Israel, Russia, Netherlands, Turkey, Poland, Singapore, Vietnam, Indonesia
Official offices with resellers: Canada, China, France, Germany, India, Malaysia, Italy, Japan, Korea, Spain,
Taiwan, United Kingdom, USA
Table of Contents
Table of Contents
Exercise 4a: Creating a Boundary Layer and Tetra Mesh using Mesh Controls .......... 19
Exercise 4b: Creating a Hybrid Grid with Barying Boundary Layer Thickness ............. 28
Exercise 5a: Organizing and Exporting a Model for CFD Analysis .............................. 60
Chapter 1
Chapter 2
Chapter 3
Step 2: Use the Mesh Controls to create a size and bias mesh
1. From the pulldown menu, open the Mesh Controls by selecting Mesh > Mesh
Controls.
2. Right click on Surface Mesh and select Create > Model > Size and Bias >
Surfaces.
This creates a mesh control for size and bias. Next we will update the parameters
and create the mesh.
3. Next to Entities, click on 0 Surfaces to activate the surface selector.
4. Click on the yellow Surfaces button to open the surface selector in the panel area
and select surfs >> displayed and then proceed.
5. For Element size enter 5.0.
6. For Element type select Trias.
7. Expand the Advanced section and then the Organization section.
8. Set Destination Component to Original.
9. Right click on Surface Mesh and select Mesh.
10. Review the created mesh by manipulating the part using the Pan, Rotate and Zoom
functions.
Notice how the mesh deviates from the surface slightly in areas of high surface
curvature. These areas can be captured better using the surface deviation
meshing option.
This creates another Model mesh control. Notice how the mesh control we are now
creating has been Enabled and the size and bias mesh control was disabled.
2. To remesh the displayed surfaces, next to Entities, click on 0 Surfaces to activate
the surface selector.
3. Click on the on the yellow Surfaces button to open the surface selector in the panel
area and select surfs >> displayed and then proceed.
4. Next we will set the Main settings. For Minimum Size enter 2.0.
5. For Maximum Size enter 5.0.
6. For Growth Rate enter 1.15.
7. Verify that Maximum Deviation is set to 0.1 and Maximum Feature Angle is set
to 15.
8. For Element Type, select Trias.
9. Right click on Surface Mesh and select Mesh to create the mesh.
10. When the meshing is complete, zoom into the model to inspect the mesh. Notice
that in areas of high surface curvature there are smaller elements.
4. Next we will set the Main settings. For Minimum Size enter 2.0.
5. For Maximum Size enter 3.0.
Notice that this is different than the Model mesh size, which is 5.
6. For Growth Rate enter 1.15.
7. Verify that Maximum Deviation is set to 0.1 and Maximum Feature Angle is set to
15.
8. For Element Type, select Trias.
9. Right click on Surface Mesh and select Mesh to create the mesh.
Step 2: Check the quality of the elements using the check elems panel.
1. Load the Check Elems panel by going to Mesh > Check > Elements > Check
Elements.
3. In order to mask all elements besides the failed elements, the selection needs to
be reversed. To reverse the selection, click elems >> reverse.
4. Click mask to mask the elements.
Now all the elements in the model are turned off except the 3 that failed the element
check.
Step 4: Use the Quality Index panel to fix one region of elements
1. Enter the Quality Index panel by going to Mesh > Check > Elements > Quality
Index.
2. The only check we are currently interested in is the min angle tria. Turn off all
the other checks by unchecking the box before the name of the element check.
3. To view additional checks, click on the arrow pointing to the right, , after pg1.
4. Again turn off all checks except for min angle tria on pg2.
5. Update the threshold value to 25.
6. Zoom into the group of elements on the right side of the graphics area:
7. Notice that one element is colored yellow. This indicates that the element is
failing the element check. In the panel, click on cleanup tools and select node
optimize button and then select one of the nodes of the failing element.
This will optimize the placement of the node so that the element has the most
optimal shape possible. In this case, the element now passes the quality check.
10. Press f on the keyboard to fit the model to the screen and then zoom in on the other
group of elements.
11. This time select element optimize.
13. Select Unmask All, , and then press f on the keyboard to display all elements in
the model in the graphics area.
14. Use the Zoom, Pan, and Rotate functions to inspect the edited mesh.
15. Return to the Check Elements panel and recheck the tria min angle check. Now 0
elements will be found.
Chapter 4
3D CFD Meshing
Exercise 4a: Creating a Boundary Layer and Tetra Mesh using
Mesh Controls
In the following example, you will set up the mesh controls and generate the mesh for the model.
This will open the Mesh Controls browser in the tab area.
Mesh Controls browser lets you access all the different meshing technologies in the single
browser window. As you can see in the figure above, there are options to generate the surface
mesh, volume mesh, refinement zones etc. Within these options, there are associated model,
local, feature and refinement controls available. The model controls apply to the entire model.
The local controls apply to a specific entity in the model (surface/elements).
You will start with creating a surface mesh model control, followed by a volume mesh model
control with boundary layers active. You will then add a volume mesh local control for the
surfaces which do not require a boundary layer.
1. Right click on Surface Mesh in the Mesh Controls browser, and from the context menu that
appears, select Create > Model > Size and Bias > Surfaces to open the surface mesh model
control in the entity editor.
4. Set the Element Type to Trias by selecting from the drop down selector menu.
5. Under the Entity Selection group, click in the value field next to Entities, then click on
Surfaces.
This will open the surface entity selector menu in the menu area.
6. In the menu area, click on surfs, and select all. Then click on proceed.
7. Expand the Advanced group, and verify that Destination Component is set to Original and
Mesh Connectivity is set to Keep.
1. Right click on Volume Mesh in the Mesh Controls browser, and from the context menu that
appears, select Create > Model > BL + Tetra to open the volume mesh model control in the
entity editor.
Selecting BL + Tetra will show options for the boundary layer specification in addition to tetra
volume meshing options.
3. Under the Entity Selection group, click in the value field next to Entities, then click on
Components.
4. In the Select Components dialog box, select all three components and click OK.
You can use the button in the left bottom corner of the dialog to quickly select all the
components.
5. Expand the Boundary Layer group, and set the boundary layer parameters as follows:
That completes the boundary layer mesh control. You will now add a local control for surfaces
that do not require a boundary layer.
6. Right click on Volume Mesh in the Mesh Controls browser, and from the context menu that
appears, select Create > Local > No BL.
8. Under the Entity Selection group, click in the value field next to Entities, then click on
Components.
9. In the Select Components dialog box, select inflow and outflow from the list and click OK.
10. Expand the Boundary Layer group, and set Base Surface Mesh Treatment to Float from
the drop down selector menu.
Finally, add a Volume Selector control to put the boundary layer and the core tetra mesh in the
same component.
11. Right click on Volume Mesh in the Mesh Controls browser, and from the context menu that
appears, select Create > Volume Selector.
12. In the entity editor, select the option BL and Tetras in One Component.
Once you have created the mesh controls, you can now proceed to generating the mesh. Mesh
generation has to be carried out in two steps: first the surface mesh is generated, followed by the
volume mesh.
In the previous steps, you created some model and local mesh controls. Your Mesh Controls
browser should look as in the figure shown below.
When you setup the mesh controls, at least one active model control should be present before
you can generate the mesh. You can create multiple model controls, but only one model control
can be active at a time. Surface and Volume mesh however have different mesh controls.
Local controls are optional. You can create multiple local mesh controls, however only the ones
which are selected at the time of mesh generation will be applied.
2. Right click on Surface Mesh in the Mesh Controls browser, and select Mesh.
Once the meshing is complete, observe the mesh using the visualization controls.
5. After the Surface Meshing is complete, right click on Volume Mesh in the Mesh Controls
browser, and select Mesh.
The volume mesh generated will be placed in a single collector, which will be called
CFD_tetcore001. This collector will be visible in the Model browser. Once the meshing is
complete, observe the mesh using the visualization controls.
6. In the Model browser, rename the collector CFD_tetcore001 to fluid. This collector will hold
all the 3-D volume elements.
The mesh generated has prismatic elements in the boundary layer. These elements will be split
to create tetrahedral elements in the boundary layer.
7. Select Mesh > Edit > Elements > Split Elements from the menu bar.
This will open the split elements panel in the menu area.
Step 3: Check that all the elements in collector wall define a closed volume
1. Click Mesh > Check > Components > Edges to open the Edges panel.
2. Click comps and select the collector wall.
3. Click find edges.
A message indicating that no edges were found will appear on the status bar.
4. Toggle free edges to T-connections.
5. Select the collector wall again and click find edges.
The status bar will display, “No T-connected edges were found.”
5. Select OK.
10. Expand the Advanced section and enter the Proximity section..
11. Specify the boundary layer reduction by entering of 0.6 for the Minimum Tetcore /Final
Layer Height Ratio and 0.5 for the Maximum BL Compression.
12. Right cick on Volume Mesh and select Mesh to create the CFD mesh.
When this task is finished, two collectors are automatically created: CFD_tetcore001 and
CFD_bl001.
Step 6: Mask elements to inspect the boundary layers’ thickness on thinner areas
1. Access the Mask panel by using the shortcut key F5.
2. Select elements to be masked.
3. Click mask.
The following images illustrate how BL interference has been avoided by reducing the BL
thickness.
The mesh needs to consist of tetrahedral elements only. This was accomplished by generating
tetras directly in the boundary layer. However, if you need to split penta / wedge elements into
tetras, use the procedure below.
1. Click Mesh > Edit > Elements > Split Elements.
2. Select the solid elements subpanel.
3. Set the switch to split into tetras.
4. Select elems >> by collector and select CFD_bl001.
5. Click split.
Now you have a mesh consisting of tetrahedral elements only.
The objective of this tutorial is to illustrate how you can generate very thin boundary layers
without interference. However, such thin boundary layers can lead to element with a high aspect
ratio if the size of the surface mesh is not small enough. If you need to limit the tetrahedral
elements’ aspect ratio (e.g., < 5), then you need to use a fine enough mesh on the wall
component so that thin boundary layers do not produce high aspect ratio elements. For example,
in this case, the minimum value of tetra collapse of all tetrahedral core elements was 0.2, but
after you split the BL penta / wedge elements into tetras, the minimum value of tetra collapse of
all tetrahedral elements becomes 0.04. This occurs because the BL penta elements are thin
compared to their triangular face area size.
6. Ensure that both the size and skew checkboxes are activated.
7. Ensure toggles are set to elems to surf comp and first order.
8. Click the yellow surfs button and selected all.
9. Click mesh.
A message on the status bar indicates the number of elements created.
10. Click return twice to close the panels.
3. Checking the box for Generate exterior tetrahedral mesh and Boundary Layer makes the
bottom part of the tab editable. Enter the Number of layers as 3, the First layer thickness
as 0.4 and the Growth rate as 1.2.
4. Under the header With boundary layer, click the Components button and select the
component wall.
5. Under the header W/o boundary layer, click the Components button and select inflow and
outflow.
6. Click Generate just above the Report area. Select Yes to the three messages that appear.
After the meshing finishes, a message appears stating that additional components have been
created.
7. Check the Model Browser to see all the new components created.
8. Click F5 to open the Mask panel. While holding the shift key down, draw a box around
roughly half of the model, and click mask. This will display the inside of the model.
3. Click Generate.
A pop-up message will display the estimated number of hexahedral elements that will be
created with the specified minimum hex cell size.
Step 8: Generate a surface and a tria mesh on the bottom of the box
1. In the Model Browser, turn off the element display for symp and turn on the display for
ground.
2. Click Mesh > Surface Mesh (2D) > Surface/Mesh > Spline.
3. Set the selector toggle to nodes.
4. Click the nodes selector to open the extended entity selection menu and pick by path.
5. Set the second toggle to surface only.
6. Pick the nodes by path on the perimeter of the box bottom, as in the following image:
7. Click create.
8. Click return.
9. Click Mesh > Surface Mesh (2D) > Automesh.
10. Select the size and bias subpanel, ensure the selector is set to surfs and the element size
field is set to 20.
11. In the graphics area, click the box_ground surface.
12. Click mesh.
A message on the status bar will indicate the number of elements created.
13. Click return twice to return to the main menu.
6. Click return.
7. In the Model Browser, turn off the display of ground, and turn on the element display of
trias_hexas_pyras.
The mesh may take a few minutes. When the mesh is complete, a message in the status bar
will indicate the number of nodes and elements created.
Note that two new components, CFD_tetcore001 and CFD_bl001, appear in the Model
Browser.
10. Click return.
3. Rotate and inspect the mesh from the side of the model.
4. Click Show Plot. Click and hold one of the corners of the model. While keeping the mouse
button down, drag the corner of the model forth and back to view the model in different
stages.
5. Click return.
6. In the Model Browser, turn off the display of the elements of CFD_tetcore001 and
CFD_bl001.
7. Click BCs > Organize.
8. Click elems and select on plane.
9. Pick three nodes on the ^faces component, on the face that intersects the airplane model.
A good way to determine which area to select is to isolate the display of the box_sym
geometry. This will show you the face to focus on. Turn the display of the ^faces component
back on, and select your three nodes.
Step 15: Use the Model Browser to Rename and Delete Components
1. In the Model Browser, display elements for fluid_hex.
2. Right-click fluid_hex in the Model browser and select Rename.
3. Enter the new name as fluid.
4. Select CFD_tetcore001 and CFD_bl001 and delete them using the process used in Step 14.
5. Right-click Component and select Show to show all remaining components in the graphic
area.
5. In the pop-up dialog that appears, you are asked whether to reuse the setup from an existing
FLUENT file. Since you just generated the grid and do not have a set up file (*.cas), click No. It
may take a few minutes for the file to be created.
6. When the file creation is complete, a pop-up window appears. Click OK.
2. Right click on the Adaptive Wrap folder and select Create > Model.
3. Expand the Wrap Selection group and set the Wrap Type to Exterior.
The Exterior wrapper is used for external flow analysis e.g. underhood thermal while the cavity
wrapper I used for internal flow analysis e.g. thermal comfort.
5. Select components to be wrapped by clicking on Components next to Entities, and select all
the components by clicking on Select All in the Select Components window.
6. Define the following wrapping parameters under the Wrap Mesh group.
Tips: The min size should be based on the smallest feature length to be captured. (Rule of thumb
rd
– min size = 1/3 of smallest thickness). Also, if all gaps are patched using “Hole/gap fill” tool,
define the gap patch tolerance as min size. Defining a bigger gap patch tolerance can create a
bad wrap mesh.
1. Right click on the Adaptive Wrap folder and select Create > Proximity.
3. For Group, click on 0 Components and select the following components: rDIATOR,
intercooler, sportefiltro, ^Patch_1, ^Patch_2, HX1, HX2, HX3 and HX4.
These are all the HX, Air filter and neighboring shroud components.
Step 4: Load the Meshed File (or Run Wrapping) and Review Wrap Results
1. Load the meshed file by selecting File > Open > Model and then open the file
powertrain_meshed.hm.
We are loading the file for this tutorial as the meshing takes a bit of time to complete.
Alternatively, you can create the mesh by right clicking on the Adaptive Wrap folder and
selecting Mesh.
After wrapping, there will be a new assembly creates which will contain wrapped results
Step 3: Inspect the model and check the surface mesh for free edges
1. In the Model Browser, expand the Components folder.
Notice that there are 2 inflow components, 4 outflow components, 1 wall component, and 1
baffle component.
2. Verify that the baffle component is currently not being displayed and that the tetra
component is the Current Component.
3. Press F5 to enter the Mask panel. Use the Mask panel to inspect the model.
Notice how the shell elements displayed appears to enclose a volume. Next we will use the
Edges panel to verify that they do enclose a volume.
HyperWorks 2017 HyperWorks for CFD Applications 53
Step 5: Review the tetramesh and remesh around the baffle component.
8. Click on elems under 2D baffle elems, select by collector, and then select the baffle
component and click select.
9. Select remesh.
Notice how the area surrounding the baffle has now been remeshed and is colored green
because the elements are in the tetra_remesh component collector.
10. Select the YZ Rear Plane View, pan the model, and mask the elements that aren’t shown as
we did earlier in this step. Rotate the model to view the area that has been remesh.
12. Within the Model Browser, right click on baffle and select Show.
Inspect the model, paying special attention to the area where the baffle and the tetramesh
elements meet. Notice how the elements are properly connected.
Chapter 5
Now you are going to move some of the elements from the collector ^faces to the collectors
inflow and outflow.
5. In the Model Browser, isolate the ^faces component.
6. Click BCs > Organize and click one element on the inlet/inflow plane (the element will
become highlighted).
7. Click elems >> by face.
All the elements in the collector ^faces on the inlet/inflow plane will be selected.
8. Set the dest comp as inflow, and click move. Similarly, move the elements from ^faces
associated with the outlets to the collector outflow.
9. Show the inflow and outflow components using the Model Browser.
When done, you will have all the exterior surfaces colored according to the collectors where
they have been placed as shown in the following image.
10. The remaining elements in the collector ^faces are the same as in wall and you can discard
them.
11. Delete collectors ^faces and CFD_boundary_layer, which is now empty.
Step 4: Export surface and volume mesh and import this mesh into FLUENT
1. Display only the components containing elements that have to be exported for FLUENT, the
components are: fluid, inflow, outflow, and wall. All other components should not be visible.
2. Click the Export Solver Deck icon to open the Export tab.
3. Notice that the File Type is set to CFD. Set the Solver Type to Fluent.
4. In the File field, click on the file icon and specify a name and location for the file.
5. Click Export to export the file.
Explore the structure and various entities in the solver browser. As you can see, the solver
browser lists every entity mapped to the active solver profile within the session and places those
entities into their respective entity group folders.
2. Expand 01.Global and then expand PROBLEM_DESCRIPTION.
3. Click on PROBLEM_DESCRIPTION to open it in the Entity Editor.
4. Enter manifold for the Title.
4. Under Eddy viscosity, set the Default value ## (m2/s) to 1" -$% m( sec.
Following figure can be used as the reference for setting up the fluid collector.
Chapter 6
2. Right click in the HyperView Results Browser and select Create > Section Cut > Planar.
A section cut is automatically applied to the model.
3. Verify that Orientation is set to yaxis.
4. Under Display, check the Cross Section Only option.
Note You can use the Graphical Manipulator to move the position of the section cut.
8. Within the HyperView Results Browser, expand the Section Cuts folder, right click on
Section 1 and select Edit.
9. Click the Add button.
11. Deactivate the section by selecting the section cut icon from before their names so that the
icon is greyed out.
8. Click the Create Streamlines button (located in the lower right corner of the panel).
9. Under the Streamlines tab, change the Size to 7 and hit ENTER on the keyboard.
10. Activate the Draw as tube option.
11. Select Create Streamlines.
9. Rotate the model and view the streamlines with the contour applied.