Challenge

Project 1 : CFD Meshing for Tesla Cyber Truck

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 and Tyres - 5 mm

Window - 5 mm

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.

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 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

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:

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

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

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

Now, the surface has been alredy meshed for the half body. The body has to be mirroed. This is done by going to: Transform -> Copy -> Entities

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 surfaces of the wind tunnel have to be meshed now.

Mesh Size: 100mm

Parts of geometry/PID: windtunnel_top, bottom, front, back, right & left.

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.

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:

after delecting:

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.

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.