awkward results with DISCRETE_ADJOINT in the Quick Start tutorial #1994
Unanswered
frx-wintermute
asked this question in
Q&A
Replies: 2 comments 12 replies
-
The adjoint values from continuous and discrete approaches are not comparable |
Beta Was this translation helpful? Give feedback.
10 replies
-
I tried to run SU2_DOT_AD by using the same configuration file that was used with SU2_CFD_AD:
Apparently, this is not exactly the way to go.
The content of the latter file is:
Is SU2_DOT_AD able to compute anything else in this case? Can it compute adjoint variables which are comparable to the continuous adjoint method ones? Could you please clarify how I should run SU2_DOT_AD in this case? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I tried the Quick Start tutorial.
I built SU2 from source (from commit 3f68501 , branch 'develop').
I took files 'mesh_NACA0012_inv.su2' and 'inv_NACA0012.cfg' from the same commit.
I managed to obtain a correct solution for the DIRECT problem (pressure field visualized with ParaView from 'flow.vtu' looks reasonably similar to the image shown in the tutorial).
Afterward, I changed the parameter MATH_PROBLEM from DIRECT to CONTINUOUS_ADJOINT in the configuration file and:
I obtained a correct adjoint solution (density adjoint field visualized with ParaView from 'adjoint.vtu' looks reasonably similar to the image shown in the tutorial).
Finally, I wanted to also try the algorithmic differentiation, so I changed the parameter MATH_PROBLEM to DISCRETE_ADJOINT in the configuration file and:
I failed to obtain a correct adjoint solution (I expected to see something really similar to what I got with the CONTINUOUS_ADJOINT method): the density adjoint field seems to have a completely different scale (instead of having values in the approximate range -200 ÷ +200, it has values in the range -0.264 ÷ +0.217 and the values not too close to zero are concentrated in an area near the farfield boundary, far from the airfoil).
What's wrong?
Does anything else need to be changed in the configuration file?
Bug report checklist
From the above mentioned commit, I built with:
N.B.: CPU is an Intel Core i5-6600 CPU @ 3.30GHz
I haven't found any other GitHub issue about the Quick Start tutorial.
I used the tip of the develop branch, as of yesterday.
Desktop:
Beta Was this translation helpful? Give feedback.
All reactions