All Courses
All Courses
Courses by Software
Courses by Semester
Courses by Domain
Tool-focused Courses
Machine learning
POPULAR COURSES
Success Stories
In this project, a Tesla Cybertruck in a wind tunnel will be meshed in ANSA. The geometry has multiple errors, these errors will be fixed. The mesh's element's lengths are same for each component of the geometry, but the mesh will be generated separately. The mesh length specifications are: Body - 5 mm Lights - 5 mm Rims…
Syed Saquib
updated on 30 May 2023
In this project, a Tesla Cybertruck in a wind tunnel will be meshed in ANSA. The geometry has multiple errors, these errors will be fixed. The mesh's element's lengths are same for each component of the geometry, but the mesh will be generated separately. The mesh length specifications are:
The geometry was imported into ANSA and this is the initial geometry:
Since the car is symmetric, a cut was performed on the truck along the YZ plane. To ensure the cut was perfect, views of the car from all 4 sides is verified.
Front view,
Top view,
Bottom view,
Back view,
As we can see the cut is perfectly in the center.
This is the truck after deleting one half:
Wireframe,
Upon further inspection, the errors are primarily of three types: single CONS, overlapped surfaces and extra surfaces.
These errors were rectified using the TOPO sidebar and all errors were rectifie.
After all issues were fixed, the geometry checking tool was run (Checks -> Geometry). The default checks are chosen, and the following errors are checked. The checking process is started by clicking the Excecute button.
The results of the geometry checking tool are below:
Since only one half of the model is being worked on, there are single cons along the symmetry plane. Running the geometry checking tool again without checking for single cons shows the following results:
These are the double and triple CONS: (there are none)
The model came with existing PIDs, these were created or modified/renamed to the following:
Picture of the car viewed by PIDs:
Surface Meshing
The preproccesing to the actual meshing process is complete. The surface mesh will be generated first under Classic Mesh Model. The PIDs were grouped by mesh size for convenience. For each size: perimeters, macros, mesh parameters and quality criterion were defined as follows.
Mesh Size: 5 mm
Parts of geometry/PID: rims and wheels
The quality of the mesh is defined in this step, this is done by going to Quality Criteria
Note: the minimum length of 0.2mm is chosen to capture the gaps between the groves on the outer surface of the tyre, as seen below:
This is where the quality of mesh will be defined, this is done by going to: Mesh Parameters. The target length is entered as 5mm and the element type is set to Tria.
Go to Perimeters -> Length -> Perimeters, the whole geometry can be selected with the box select tool. After selection, the middle mouse button is pressed and mesh length (5mm) is entered.
The same process is repeated for Macros as well.
The mesh is generated for the following parameters using the spot mesh, this is done by going to Mesh Generation -> Spot Mesh -> Visible
The quality criteria of the meshed elements are checked by switching over to the hidden view:
The off/bad elements are fixed using mesh tools such as: Join, Split, Move, Reconstruct and Paste.
After no off elements are found in the meshed PIDs, the next set of PIDs are meshed.
Mesh Size: 5 mm
Parts of geometry/PID: lights
The quality of the mesh is defined in this step, this is done by going to Quality Criteria
The minimum length is chosen from analysising the geometry in detail.
This is where the quality of mesh will be defined, this is done by going to: Mesh Parameters. The target length is entered as 5mm and the element type is set to Tria.
Go to Perimeters -> Length -> Perimeters, the whole geometry can be selected with the box select tool. After selection, the middle mouse button is pressed and mesh length (5mm) is entered.
The same process is repeated for Macros as well.
The mesh is generated for the following parameters using the spot mesh, this is done by going to Mesh Generation -> Spot Mesh -> Visible
The quality criteria of the meshed elements are checked by switching over to the hidden view:
The off/bad elements are fixed using mesh tools such as: Join, Split, Move, Reconstruct and Paste.
After no off elements are found in the meshed PIDs, the next set of PIDs are meshed.
Mesh Size: 5 mm
Parts of geometry/PID: windows
The quality of the mesh is defined in this step, this is done by going to Quality Criteria
The minimum length is chosen from analysising the geometry in detail.
This is where the quality of mesh will be defined, this is done by going to: Mesh Parameters. The target length is entered as 5mm and the element type is set to Tria.
Go to Perimeters -> Length -> Perimeters, the whole geometry can be selected with the box select tool. After selection, the middle mouse button is pressed and mesh length (5mm) is entered.
The same process is repeated for Macros as well.
The mesh is generated for the following parameters using the spot mesh, this is done by going to Mesh Generation -> Spot Mesh -> Visible
The quality criteria of the meshed elements are checked by switching over to the hidden view:
The off/bad elements are fixed using mesh tools such as: Join, Split, Move, Reconstruct and Paste.
After no off elements are found in the meshed PIDs, the next set of PIDs are meshed.
Mesh Size: 5 mm
Parts of geometry/PID: body
The quality of the mesh is defined in this step, this is done by going to Quality Criteria
The minimum length is chosen from analysising the geometry in detail.
This is where the quality of mesh will be defined, this is done by going to: Mesh Parameters. The target length is entered as 5mm and the element type is set to Tria.
Go to Perimeters -> Length -> Macros, the whole geometry can be selected with the box select tool. The edges in contact with other PIDs are deselected. The middle mouse button is pressed and mesh length (5mm) is entered.
The same process is repeated for Perimeters as well.
The mesh is generated for the following parameters using the spot mesh, this is done by going to Mesh Generation -> Spot Mesh -> Visible
The quality criteria of the meshed elements are checked by switching over to the hidden view:
The off/bad elements are fixed using mesh tools such as: Join, Split, Move, Reconstruct and Paste.
No eff elements are present in the body.
Now, the surface has been meshed for the half body. The body has to be mirroed now. This is done by going to: Transform -> Copy -> Entities
Shift + left click drag to select all entities:
Click the middle mouse button to open the copy menu. Select three points on the symmetry plane of the car (or on the single cons)
dfc
Click on OK, and after verifying the mirror is correct. Click on Finish to generate the copy.
The single cons are not fixed yet, they can be fixed by pasting the single cons together. This is the final geometry after pasting:
After pasting, a final geometry check is performed and no errors were found:
Surface meshing for the car is complete. A wind tunnel is used for CFD simulations, and has to be created in ANSA. The wind tunnel is a cuboid, and the car is placed inside it. The inlet of the wind tunnel is 4 times the charecteristic length of the car from the front of the car, the outlet of the wind tunnel is 6 times the charecteristic length of the car from the back of the car. The height of the wind tunnel is 3 times the charecteristic length of the car from the top of the car. While, the width of the wind tunnel is 1 time the charecteristic length of the car from the sides of the car.
For this truck, the charecteristic length was measured to be ~5800mm.
Using the above information, multiple vertices of the wind tunnel were created using: TOPO -> Points -> Relative
These points were joined to form a linear curve using: TOPO -> Curves -> Create
The curves were used to create surfaces using: TOPO -> Faces -> New
This is the resulting wind tunnel:
Hiding the front to see the car:
The curves and points created were then removed. PIDs were created for all surfaces of the wind tunnel.
The surfaces of the wind tunnel have to be meshed now.
Mesh Size: 100mm
Parts of geometry/PID: windtunnel_top
The quality of the mesh is defined in this step, this is done by going to Quality Criteria
This is where the quality of mesh will be defined, this is done by going to: Mesh Parameters. The target length is entered as 100mm and the element type is set to Tria.
Go to Perimeters -> Length -> Perimeters, the top plane's edges are selected. After selection, the middle mouse button is pressed and mesh length (100mm) is entered.
The same process is repeated for Macros as well.
The mesh is generated for the following parameters using the spot mesh, this is done by going to Mesh Generation -> Spot Mesh -> Visible
The Mesh quality was not checked as quality of elements at the boundaries do not matter as no data is obtained near the planes.
Mesh Size: 20mm
Parts of geometry/PID: windtunnel_bottom
The quality of the mesh is defined in this step, this is done by going to Quality Criteria
This is where the quality of mesh will be defined, this is done by going to: Mesh Parameters. The target length is entered as 20mm and the element type is set to Tria.
Go to Perimeters -> Length -> Perimeters, the bottom plane's edges are selected. After selection, the middle mouse button is pressed and mesh length (20mm) is entered.
The same process is repeated for Macros as well.
The mesh is generated for the following parameters using the spot mesh, this is done by going to Mesh Generation -> Spot Mesh -> Visible
The Mesh quality was not checked as quality of elements at the boundaries do not matter as no data is obtained near the planes.
Mesh Size: variable
Parts of geometry/PID: windtunnel_left, windtunnel_right, windtunnel_front and windtunnel_back
This is where the quality of mesh will be defined, this is done by going to: Mesh Parameters. The target length is selected as local and the element type is set to Tria.
A variable element length is required for these edges, as they join the lower, more finer mesh region with the upper, less finer region of the wind tunnel. Hence, mesh lengths are uniformly increased from the lower surface (20mm) to upper surface (100mm), with a factor of 1.1. This is done by going to: C. Mesh -> Perimeters -> Spacing -> Manual -> with the following settings, and selections.
Click on OK and verify the steps and labels.
Note: the lower part of the vertical edges have to be selected.
The mesh is generated for the following parameters using the spot mesh, this is done by going to Mesh Generation -> Spot Mesh -> Visible
The Mesh quality was not checked as quality of elements at the boundaries do not matter as no data is obtained near the planes.
The surface mesh is now complete for both car and the wind tunnel, there are about 24.78 million elements, all of them are trias.
Front view with lights and front wheel,
Back view with lights and back wheel,
Windows,
This is the inlet/front of the wind tunnel, notice how the element size increases as we move upwards.
Volumetric Meshing
Go to V.Mesh tab,
Volumes -> Define ->
Click on OK, and ANSA will generate volumes automatically.
Click on each volume and view its preview, the required volumes (volumes where fluid flow will occur) are renamed and the other volumes are deleted.
After deletion, these volumes remain:
Double click on the volume and change "Mesh with" to Tetra CFD. Tetra is the shape of the mesh's elements and CFD is the application.
Right click on the volume and click Remesh, this will mesh the volume with the selected element type (Tetra CFD)
Note: the volumetric mesh was not generated for this project as it requires a lot of computational resources.
Conclusions and Observations
1. ANSA is a powerful meshing tool and a proper workstation is required to mesh complex geometry such as this truck.
2. There were multiple instances during this project, that ANSA would freeze for 10-20 minutes while it was meshing any surface.
3. SpotMesh produces a lot of off elements, and they were fixed using the Reconstruct tool which took a lot of time and memory.
4. Volume meshing could be performed due to high performance requirements, and lack of computer memory. ANSA crashed a few times while trying to generate volumetric mesh and memory used by ANSA exceeded 5.5 GB.
ANSA File: https://drive.google.com/file/d/1xQjAM_g8C1tI9YLgSvIpuii1XbY9lkMj/view?usp=sharing
Leave a comment
Thanks for choosing to leave a comment. Please keep in mind that all the comments are moderated as per our comment policy, and your email will not be published for privacy reasons. Please leave a personal & meaningful conversation.
Other comments...
Week - 4 - 2D meshing for Plastic components
14 Feb 2024 04:24 PM IST
Week 3 - 2D meshing for Sheet metal
14 Feb 2024 04:10 PM IST
Project
AIM: To carry out a system-level simulation of an All-Terrain Vehicle (ATV). OBJECTIVES : To carry out a Simulation of ATV. To prepare a technical report explaining the model properties & comments on the results. THEORY : All-Terrain Vehicle (ATV) An All-Terrain Vehicle (ATV), also known as a light utility…
03 Jan 2024 10:45 AM IST
Project 1
Aim : Develop a double-acting actuator model using Simscape Multibody and Simscape components. Objective : The mechanical system of the cylinder needs to be built using Simscape Multibody library components/blocks, and the hydraulic system needs to be modeled using Simscape library physical components. Theory : The…
16 Oct 2023 03:59 PM IST
Related Courses
Skill-Lync offers industry relevant advanced engineering courses for engineering students by partnering with industry experts.
© 2025 Skill-Lync Inc. All Rights Reserved.