All Courses
All Courses
Courses by Software
Courses by Semester
Courses by Domain
Tool-focused Courses
Machine learning
POPULAR COURSES
Success Stories
CFD MESHING FOR TESLA CYBER TRUCK A Tesla Cyber truck in a wind tunnel will be meshed in ANSA. The geometry has multiple errors,…
Dineshkumar Rajendran
updated on 13 Mar 2023
CFD MESHING FOR TESLA CYBER TRUCK
A Tesla Cyber truck 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 views
Top view,
Bottom view,
Back view,
As we can see the cut is perfectly in the centre.
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 rectified.
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 Execute 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 pre-processing 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 analysing 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 analysing 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 analysing 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 mirrored 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)
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 characteristic length of the car from the front of the car, the outlet of the wind tunnel is 6 times the characteristic length of the car from the back of the car. The height of the wind tunnel is 3 times the characteristic length of the car from the top of the car. While, the width of the wind tunnel is 1 time the characteristic length of the car from the sides of the car.
For this truck, the characteristic 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 fine 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 has 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
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:
Right click on the volume and click Remesh, this will take more amount of time to mesh.
Conclusions
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 7 - Simulation of a 1D Supersonic nozzle flow simulation using Macormack Method
Objective : To simulate the isentropic flow through a quasi 1D subsonic-supersonic nozzle by deriving both conservative and non conservative forms of governing equation and solve them by using Macormack Method in matlab. Problem statement : Need to determine the steady-state temperature distribution for the flow-field…
13 Apr 2023 04:54 AM IST
Week 5.1 - Mid term project - Solving the steady and unsteady 2D heat conduction problem
Aim 1. Steady state analysis & Transient State Analysis Solve the 2D heat conduction equation by using the point iterative techniques . The Boundary conditions for the problem are as follows; Top Boundary = 600 K Bottom Boundary = 900 K Left Boundary = 400 K Right Boundary = 800 K You will implement the following methods…
12 Apr 2023 07:36 AM IST
Week 3.5 - Deriving 4th order approximation of a 2nd order derivative using Taylor Table method
Derive the following 4th order approximations of the second-order derivative Aim: To derive the 4th order approximation for the second-order derivative of a given function using following 3 schemes. central difference skewed right difference skewed left difference schemes Working: MATLAB is used for coding to achieve the…
30 Mar 2023 09:43 AM IST
Related Courses
127 Hours of Content
Skill-Lync offers industry relevant advanced engineering courses for engineering students by partnering with industry experts.
© 2025 Skill-Lync Inc. All Rights Reserved.