Aerodynamic Shape Optimization - The Adjoint CFD Method

 

Aerodynamic Shape Optimization - The Adjoint CFD Method

To see actual show cases of adjoint shape optimization: - Porsche Taycan render: https://youtu.be/-fBXwx_n10I - Aptera optimization: https://youtu.be/WpFNwfHwFn4 In this video, we'll discuss Aerodynamic Shape Optimization using the adjoint technique. Aerodynamic Optimization In aerodynamic simulations, the airflow around an object is chopped up in small pieces called cells within a mesh. The surface of the object is also chopped up into small pieces called surface cells with nodes on the corners. To obtain the total drag or lift of the object, we need to integrate the pressure & friction forces on all these local surface cells to get the total value. This indicates that the position of each individual node has an influence on the final drag & lift on the object. The objective function, therefore, has thousands if not millions of input variables: the X, Y and Z coordinate of each individual node. To obtain the local gradient, you would need to move one node individually and then re-run the entire calculation to calculate the local gradient. With that information, you know whether to push the node inward or outward to increase or decrease the objective function. Once you have obtained all these local gradients, you can put them together into what is called a surface sensitivity map. As you can imagine, re-running the entire simulation for each node displacement can become very expensive. Luckily, there is something called the adjoint technique. Adjoint The adjoint technique allows you to calculate all of these local gradients, or sensitivities, in one single simulation. Here's how this works: - Normal aerodynamic simulation (primal or forward simulation): After the computational mesh has been generated, the flow field is typically initialized using a fixed value (zero or something else). Then, the properties defined at the boundary conditions (like an inlet flow velocity for a virtual wind tunnel) propagate through the domain. After enough small time steps, the solution will have converged to a stable flow field. - Adjoint simulation (dual or backward simulation) Starting from the aerodynamic simulation data, the adjoint simulation will take small "time" steps. It calculates backward from the objective function to see how each node position affects this objective function. Based on these results, we can then calculate all the local gradients and construct the sensitivity map. So instead of running a full aerodynamic simulation for each local gradient calculation, which would be prohibitively expensive, we can now calculate all the gradients with just two simulations: the normal (primal) and the adjoint (dual) simulation. Morphing The next step is to use the input of the sensitivity map and start implementing it: move the surface inward or outward based on what the map tells you. Once you have morphed the 3D object, you can re-run the aerodynamic simulation to see how much the objective value has changed. You can then also re-run the adjoint simulation to create a new sensitivity map and to the morphing again. With each cycle, you will get closer to the most optimal shape for your object. You can do this for the entire object or you can define a design space in which the algorithm can operate. Porsche Taycan Interestingly enough, the adjoint optimization technique - when asked to increase downforce - starts to create the iconic ducktail spoiler that Porsche has been applying for years. For more information or to run your own optimization project, just contact AirShaper at info@airshaper.com ----------------------------------------------------------------------------------------------------------- The AirShaper videos cover the basics of aerodynamics (aerodynamic drag, drag & lift coefficients, boundary layer theory, flow separation, reynolds number...), simulation aspects (computational fluid dynamics, CFD meshing, ...) and aerodynamic testing (wind tunnel testing, flow visualization, ...). We then use those basics to explain the aerodynamics of (race) cars (aerodynamic efficiency of electric vehicles, aerodynamic drag, downforce, aero maps, formula one aerodynamics, ...), drones and airplanes (propellers, airfoils, electric aviation, eVTOLS, ...), motorcycles (wind buffeting, motogp aerodynamics, ...) and more! For more information, visit www.airshaper.com

Trusted By

  • General Electric Renewable Energy
  • Deme
  • Aptera
  • Decathlon
  • Nio
  • MV Agusta
  • Wingtra
  • Morgan Motor
  • Pal-V - World’s First Flying Car
  • Deme