Extracting Residual Jacobians to Conduct a Custom Adjoint Optimization #2333
Bot-Enigma-0
started this conversation in
General
Replies: 2 comments 21 replies
-
The Jacobian in CSysMatrix is an approximation, it won't give you correct derivatives. Why don't you modify SU2 to compute the objective function you want? |
Beta Was this translation helpful? Give feedback.
20 replies
-
I have no idea what you mean by "coupled" or what the variables in those plots are supposed to show. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am working on an adjoint optimisation project using SU2 as the simulation tool and JAX for automatic differentiation. My goal is to optimise a custom objective function related to the boundary layer, which requires computations that (to my knowledge) cannot be done in SU2. I have successfully used JAX to compute the derivative of the objective function with respect to the flow field (∂J/∂U). To form the adjoint problem, I need the derivatives of the residual with respect to both the flow field and the design variables (∂R/∂U and ∂R/∂x).
From my understanding, the derivatives, particularly ∂R/∂U, seem to be stored in the source files CSysSolve_b.cpp and CSysMatrix.cpp. I am unsure about the location of ∂R/∂x. I want to know how to extract these Jacobians? Specifically:
Thanks
RK
Beta Was this translation helpful? Give feedback.
All reactions