Challenge

Project 1 : CFD Meshing for Tesla Cyber Truck

CFD Meshing for Tesla Cyber Truck

AIM:

To generate mesh for Tesla Cyber Truck for CFD applications.

OBJECTIVE:

Clean up the geometry till there is no topological error.

Assigning relevant PIDs.

Surface meshing.

Perform symmetry.

Creation of wind tunnel.

INTRODUCTION:

ANSA is a computer-aided engineering tool for Finite Element Analysis and CFD analysis widely used in the automotive industry. It carries several proprietary algorithms for meshing suitable for both CFD and structural models.

We have been provided with a CAD model of a BMW car with some geometrical errors. From the model we can see there are many single coons(in red) and glitchy surfaces are present, which we need to resolve before performing the meshing operation also, we need to patch any open surfaces as in CFD analysis surfaces should be close to doing volumetric mesh. There are also some default PID's which we will delete to create our own PID's. Also, our model is symmetric thus will consider only half the model for our purpose and then will perform symmetry on it to reflect all our operations.

PROCEDURE :

Topology Cleanup:

As we open our model in ANSA, first we will perform checks on the geometry to see all the errors that are present in the model. Besides the script tool there is an arrow button, click on it and select checks and select geometry. Then from the bottom part of the window, we will select the things which we want to check and then click execute. We can see many errors listed. Let's resolve them.

Now, will delete all unnecessary surfaces from inside the car model, as we are concerned about the outside of the car and the area between the car's outer shell and the wind tunnel. Any different surfaces will create unnecessary volumes utilizing memory and time. As shown in the below pictures will perform topology cleanup on our model and will try not to have any single or triple cons except, at locations around which will be performed. Will remove any extra hot points. Also will use the CUT tool to create cons wherever necessary. Also, delete any overlapped surfaces. Overlapped surfaces may cause an error while going in the volumetric mesh. Once we go into the volumetric mesh, we may get a generation error, that error is basically showing us overlapped surfaces.

Final Checks After Topo Cleanup

PID Creation -

Now let's create PID's which will come in handy during meshing. To do that follow the below procedure,
Click Properties => right click and select New => select PSHELL => again select PSHELL => Give name as Silencer => ok.
Similarly create the body, lights, window, rims and tyres,

Now, to assign each PID to its respective part follow the below steps,
Right click on PID name => Apply => select the respective part => click middle mouse button to confirm.
Similarly, assign all the PIDs.

Body

Windows

Tyer and Rims

Lights

We are making sure that at the end we only have a larger body PID, thus we have assigned all the small PIDs.Now all remaining components will be in Body PID.

Now if we try to delete the shell properties we got an error as "Selected PID is used by a deleted face and can not be deleted".But there aren't any surfaces showing after selecting show only for Shell_Property PID. Thus we will delete it using brute force. Thus select the arrow symbol beside the measure tool and select compress then press ok. This will
delete the unnecessary PIDs.

Meshing -

Now here we need to create a mesh for various PIDs by using the below data,

Target Lengths -

Body - 3 mm
Lights - 4 mm
Rims and Tyres - 2 mm
Window - 3 mm

We can see many off elements are present. To resolve them we followed the below steps,
In Mesh Deck => In Shell Mesh => Reconstruct => Select Visible.

This will try to resolve off elements. If still isn't fully resolved, we can also try using the below tool from the mesh deck.

Split
Mesh => Elements => Split => Edges => This will split the selected edge and may help with maximum and minimum length error.

Move
Mesh => Grids => Move => This will move the node in the desired direction, and may come in handy with skewness and other errors.
Similarly use above mentioned steps for other PIDs, to resolve any mesh quality criteria errors.

And if the elements error isn't getting resolved by using the move, we can also use the Origin tool over those elements and then again use the move tool.

Windows

Click on Quality Criteria =>minimum length 0.3 mm and max. length 5 mm.
Mesh Parameters => Target Length 3 mm and select element type as tria.
In Perimeter and Macros set length as 3 mm.
In mesh generation => Select CFDMesh => Select Visible.

Rims and Tyres

Click on Quality Criteria =>minimum length 0.3 mm and max. length 5 mm.
Mesh Parameters => Target Length 2 mm and select element type as tria.
In Perimeter and Macros set length as 2 mm.
In mesh generation => Select CFDMesh => Select Visible.

Body

Click on Quality Criteria =>minimum length 0.3 mm and max. length 5 mm.
Mesh Parameters => Target Length 3 mm and select element type as tria.
In Perimeter and Macros set length as 3 mm.
In mesh generation => Select CFDMesh => Select Visible.

Lights

Click on Quality Criteria =>minimum length 0.3 mm and max. length 5 mm.
Mesh Parameters => Target Length 4 mm and select element type as tria.
In Perimeter and Macros set length as 4 mm.
In mesh generation => Select CFDMesh => Select Visible

Final Model After Meshing

Fluid Domain(wind tunnel)

We will create a wind tunnel using points, then join them by curves and finally create surfaces using those cons and also surface mesh it as follows.

Meshed Fluid Domain model

Bottom

Top

Front, Rear and Sides

Volumetric Mesh

Volumetric mesh is nothing but 3D elements, while the surface mesh meshes with the help of 2D elements which are tria elements. One important thing to do before the volumetric mesh is to make sure that all of our surfaces mesh.As the surface mesh is a prerequisite for volumetric mesh. Click on mesh deck and make sure there aren't any unmeshed surfaces and off surfaces.

First, we need ANSA to detect all volumes present. To do that follow the below steps,
Click on V.Mesh deck => Volumes => Define => Right click and select Auto Detect => Work on whole db => OK.

Since we are interested only in the volume between the car model and wind tunnel, we can delete other volumes of the car model which is not necessary Since performing the volumetric mesh takes 2-3 days, the volumetric mesh is not performed as given by the challenge question.

Results and Outcome

  • From the meshing images, we can clearly see the smooth transition of elements from one PID to another. Also, there aren't any unmeshed surfaces, also off elements present. All elements follow the given element quality criteria.
  • By using symmetry we can see that topo cleanup and mesh get successfully replicated to the other side.
  • ANSA successfully detected volume between wind tunnel and car model and this will be used to generate volumetric mesh, which can then be used in CFD simulation.
  • By using the half car model we significantly reduced the memory usage and also computation time.

Conclusion

  • We have successfully performed topology cleanup on the given Tesla Cyber Truck model and resolved single cons and removed all overlapped surfaces.
  • Successfully generated surface mesh, which is a pre-requisite for volumetric mesh, and created wind tunnel and meshed it.
  • Also learned what is volumetric mesh and how to perform volumetric mesh.
  • Thus we have successfully generated volumetric mesh for the given Tesla Cyber Truck model for CFD applications.

Drive Link:

https://drive.google.com/file/d/16Y7HODhP_DAjJpSgOZYcADzQ8FGfwwds/view?usp=sharing

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.