Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This is ANSYS workbench. ANSYS's Fluent Module is used to perform the analysis. 

1.1) Double click on "Fluid Flow "Fluent" to load the module.

...

In this step we will load in the car model and build our "wind tunnel". Additionally, since the car is symmetrical, we will slice and simulate with only half the car model and win wind tunnel in half and only solve for either the right of left half. This reduces our calculation time by around halfover 50%!

For straightforward, yet accurate, simulation purposes only the air is modeled to Note that the simulation will have the air move around the car (as opposed to car moving thorugh air). For a fully accurate representation, the ground can be simulated to be moving (generally ; but this is not worth the additional complexity and solving time (the accuracy improvements is marginal).

Click `File>Import To load the model: Click "File > Import External Geometry File", then click "Generate".

Expand
titleGenerate Button Location

Image Modified

Image Removed

Our geometry is loaded and we You should be able to see the model appear in the window:


Image Added

We can proceed to build the wind tunnel to contain our "air" . The car will also be cut (and cut in car in half in this the same step).

Click "Tools>Enclosure" 

Under details view, you can select how large the wind tunnel should be by changing values of the cushion. The cushion is the shortest distance between the wall and any part of the car.This presents . Input the desired cushion values. Note that the -Y value in this case represents the cushion distance to the ground, this value will depend on the suspensions and wheels (how far the bottom of the aerobody sits away from the ground).

Expand
titleHow to Size the Wind Tunnel?

The sizing of the wind tunnel is a challenge: if the wall cushion is too small then the "air" will interact with the wind tunnel walls and give us

...

undesirable results, but if the wall cushion is too large it will take heavy computation time to solve the system.

...

From personal experience and results from other CFD specialist, it is seen that walls around 5-10 times the car dimensions

...

is the sweet spot between acuracy and computation time (ie. if the car is 2m wide, the total cushion

...

in the width direction is 10-20m).

...

In reality, the optimal cushion value will depend on many factors

...

. For example, the area of interest: if you care about how the fluid is behaving at the front of the car, then the rear outlet wall can be placed very close. If the mesh can be manipulated to be fine around important regions and coarser in unimportant regions (such as a point far away from the rear of the car), then it may become more beneficial to have a large wind tunnel but a coarser mesh.

If many iterations are being done for aerodynamics optimization, it is worth the time to determin the best cushion values through experimentation (run the same setup with varying cushion values to see how close the walls can get before the results changes drastically).


Our car is symmetrical about the YZ plane (this may vary for other models)., so a symmetry plane will be 

Select "Number of Planes" to 1 and the symmetry plane to be YZPlane. Input the cushion values as seen below. 

Image RemovedImage Added

Click "Generate"

Expand
titleHalf Wind Tunnel and Car Screenshot

Image Modified



Half the car and wind tunnel should appear. The car body must needs to be subtracted rom from the fluid body (it'll be clear why during meshing).

Click "Tools> Boolean". Select "Operation" as "Subtract". Select the wind tunnel and target body and car as tool body. Click "Generate"

Expand
titleBoolean Subtract Screenshot

Image Modified

Image Modified




Check the workbench to confirm our Geometry stage is "Up to Date".

...

This is the most critical step in the entire process. Building accurate meshes is a massive topic of study (many workshops and tutorials based on only meshing). This tutorial hopes to build some basic intuition of proper meshing techniques specifically for vehicle aerodynamics. 

Immeadiately, you can click "Generate Mesh" and build from default properties. This gives us a very poor mesh.

Image Removed


Expand
titleMeshing and CFD Intuition

Meshing Intuition: In general, all finite element techniques looks to break down a difficult problem into smaller simpler parts (each part is a "finite element"). Instead of analyzing flow on the entire tunnel at once, the problem is divided into a network of many air parcels

...

. Each air parcel is represented as a node on the mesh, and every connection between parcels is an edge between nodes. Notice no nodes inside the car shaped cavity; this forces air flow to goes through edges around the car (which is why the car model is subtracted from the fluid model).

Later we will define some nodes to have boundary conditions (ie. the wind tunnel inlet nodes have set velocity and car surface nodes are static walls). When solving begins every node will send

...

/receive information (such as pressure, velocity, volume

...

or momentum

...

) to

...

/from adjacent nodes through the edges and update itself. For example, if a high pressure parcel is connected to a low pressure parcel, it is not in equilibrium; thus, there must be some movement (mass flow or velocity change) from the high to low pressure nodes. ANSYS will solve hundreds-thousands of these equations between nodes for thousands of iterations until a steady state is acheived.

...

(Note: This is NOT the full story, but an easy way to imagine what's happening inside the simulation)

For the CFD technician, this means we want few nodes in locations where accuracy is insignificant and more nodes in important areas (orientated and positioned in a way to accurately simulate reality

...

). As with all FEA, it is easy to get an accurate simulation (simply make the densest mesh possible and have it solve for three weeks); however,

...

being proficient at CFD means being able to create a minimal mesh which keep computational time low and providing meaningful and accurate results.

You can click "Generate Mesh" and mesh based on default properties. This gives us a very poor mesh.

Image Added

Image Added

The current mesh is unacceptable: the top surface of the car only has a

...

handful of nodes, the bottom of the car to the ground only has one row of

...

cells and the mesh has no nodes to represent the boundary layer.

...



Let us improve the mesh quality to more accurately resemble reality.

Click "Mesh" in the sidebar and expand "Sizing". Change "Advanced Size Function" to "On: Proximity and Curvature". Change "Smoothing" to "High". Change "Num Cells Across Gap" to "5-10"Image Removed

Expand
titleMesh Sizing Screenshot

Image Added



These are the global mesh controls. They These settings affect everything in our geometry. Advanced Size Function (On: Proximity and Curvature) is chosen as we want the car's curvature to be accurately represented; as the car is a thickened surface, the proximity portion prevents undesirable geometry. Actual sizing is useful as well, but requires more experimentation to get the best sizing. 

To add the inflation layer (to model the boundary layer). Expand Inflation and set "Use Automatic Inflation" to "Program Controlled"

Expand
titleInflation Layer Screenshot

Image Modified



Click Generate Mesh.

This mesh is far better than the default settings. The bottom has enough cells to appropriately model ground effects. The mesh is denser overall to provide higher resolution and accurately represent the geometry. A boundary layer is added around the entire car.

Expand
titleAside: Local Mesh Parameters

Bonus: If the model has detailed geometry (ie, small fairings, door detailings, etc.) local meshing controls are handy. To manipulate mesh quality, right click mesh> insert >sizing, then select the geometry you wish the sizing settings to apply to). There is no rule of thumb.

Image Modified


To finish, the mesh components must be labelled. 

Highlight and right click the front wall > "Create Named Selection". Name this the face "Inlet".

Expand
titleNamed Selection Screenshot

Image Modified

Image Modified



Repeat the process. The wall behind the car is "outlet". The car cavity is "car". The symmetry plane "symmetry". The remaining three walls are "walls".

...

The mesh is completeGo back to ANSYS workbench and double click "setup" to begin setting up boundary conditions and solution parameters.

Setup/Solution

 Our computer sucks so keep settings at default and click "ok".

...