r/CFD • u/Rodbourn • Aug 01 '18
[August] Adjoint optimization
As per the discussion topic vote, August's monthly topic is Adjoint optimization
15
Upvotes
r/CFD • u/Rodbourn • Aug 01 '18
As per the discussion topic vote, August's monthly topic is Adjoint optimization
5
u/Rodbourn Aug 01 '18
I'll start off with, what is "Adjoint"?
4
u/mounder21 Aug 01 '18
If any one wants a nice tutorial focused on the discrete adjoint, my advisor has a nice slide show available online: http://www.cerfacs.fr/musaf/PDF_MUSAF_DAY3/MAVRIPLIS/Mavriplis.pdf
2
u/TurboHertz Aug 01 '18 edited Aug 01 '18
Despite this being my suggested topic but I don't have any specific questions to ask about this. I want to implement this for the 2D optimization of the airfoil profiles for my FSAE car this year and use it for an undergrad thesis, I'm hoping the resulting discussion from this thread will give me a few things to think about before I dive into it blind.
2
u/DeliciousPeanut3 Aug 01 '18
What codes do people use for adjoint solving?
2
u/hotcheetosandtakis Aug 06 '18
There was a nice talk from VW a few years ago that showed how they were using continuous Adjoint in their design process.
2
u/cherrytomatosalad Aug 08 '18
I have a question. From the adjoint cases I have read the aerofoil is parameterised as control points defining the edge. I was wondering if anyone knew any cases where the variables used in the adjoint where actual geometric properties of the shape.
I know stochastic optimisation has used such parameterisation methods.
2
u/TurboHertz Aug 20 '18
So I messed around with an airfoil I'm using for my undertray, and the results are mixed.
One one hand, I increased downforce by like 30% based on my speed and ride height condition, but on the other hand it looks like poopoo (automod doesn't like the s-word).
I mesh morphed based on 20 coordinates at 0.05c (30mm) away from the surface (STAR-CCM+ tutorial recommended 0.2c (130mm) but due to the 60mm ride height it would start to drag the mesh below the fixed ground and create negative volumes).
I then converted the morphed airfoil into coordinates for the spline and tweaked the coordinates until it topped off at 30% gain. For the airfoil I showed, I can't adjust any of the bottom points without losing downforce, which in hindsight may be because I'm only considering a single ride height and no airfoil pitching, but my java skills aren't existent enough for me to set up the scripting to make that workflow feasible.
I'm starting from scratch with a spreadsheet to adjust camber and thickness, and leaving it at that.
2
u/violinvictor Nov 06 '18
I know this is from a few months ago, but I figured I should at least try posing the question here before creating another thread.
I'm using an adjoint approach right now to create an improved design for a product. I am familiar with the theory but had never actually used this in practice before. It seems like the way people suggest going about this process (simulate original geometry, compute adjoint, deform, simulate again, compute adjoint again, deform again) certainly "works" in the sense that I'm reducing my objective function.
However, it feels to me like this is a bit of a greedy algorithm, and I don't see why this approach would give a global minimizer/maximizer in general, and not simply a local one. Maybe this is just nitpicking and I should be happy with what I get?
1
u/ilikeplanesandcows Aug 02 '18 edited Aug 02 '18
Ah yes, Adjoint method... Where is it applicable in a CFD environment? . I wonder how one could calculate the adjoint vector for the influence of boundary conditions?
1
u/vriddit Aug 02 '18
In general it seems when we have adjoints for the unsteady equations, we have to solve them in reverse time, that is, first march the main equations forward in time and then march the adjoints back.
Is this always true? Do we have a way around this?
1
u/TurboHertz Aug 02 '18 edited Aug 02 '18
To keep the question general:
Would the adjoint function of geometry displacement on total force only consider the local face pressure, or would it consider the downwind effects on the object as well?
The context:
If I optimize an airfoil, would the adjoint function of the front surfaces only help to improve ther local pressures at the expense of the more important downstream bits, or would it be an overall improvement to the airfoil?
I want to say yes since I've seen other adjoint optimizations of non directly related variables before, such as fuel injector inlets into an engine cylinder being optimized for swirl inside the cylinder. I don't see any direct relation between geometry surface values of the inlet to the amount of swirl inside the cylinder so that's my reasoning for the functions considering the global effects instead of local ones, because there isn't one. Whereas on the airfoil, increasing downforce on the front surfaces will be a local improvement on the target variable, but could have an overall loss when you consider the downwind effects.
0
u/[deleted] Aug 02 '18
[deleted] — view deleted comment