Discrete adjoint divergence issues #1505
Replies: 3 comments 4 replies
-
Hi, regarding the two potential issues.
|
Beta Was this translation helpful? Give feedback.
-
Check if you have exact restarts, if you don't, it is possible that you have more state variables than you think (some intermediate quantity that is derived from the solution variables but lags by one iteration for example). Turn off preaccumulation (PREACC=NO) for testing. Have a look at how the fluid problems are setup in the discadj_fsi folder (NEWTON_KRYLOV=YES) you need a multizone problem with one zone but it significantly helps convergence. |
Beta Was this translation helpful? Give feedback.
-
EDIT: I have some updates regarding my issues. I have run several cases with varying flow physics to see if I can isolate the issue. All the cases were run with a single-species (ARGON), 2-species (N2) and 5 species (AIR-5) gas. I was able to get all cases to work with the discrete adjoint using ARGON. I was able to get convergence to the wedge with all 3 cases. A more "comprehensive" document is attached. |
Beta Was this translation helpful? Give feedback.
-
Hi All,
I am running into some issues regarding my extension of the discrete adjoint for NEMO cases. There are two main issues I am running into:
1.) I am not aware of a method to debug recording/working of the code. NEMO is quite non-linear in its use of variables, and its hard to understand which variables that are being recorded. This required to reinitialize some variable structures after setting the recorded variables.
2.) Even after reaching 10+ orders of magnitude of convergence on the primal solution, the discrete adjoint diverges slowly. I'm not sure how to approach this problem, or which "knobs to turn" to get convergence.
Beta Was this translation helpful? Give feedback.
All reactions