Possible bug in SU2_DOT with DISCRETE_ADJOINT
Hi SU2 developers,
Here is what I have 1. Run SU2_CFD with the quick start NACA0012 example/ 2. Run SU2_CFD_AD with MATH_PROBLEM= DISCRETE_ADJOINT 3. Run SU2_DOT for Hicks-Henne design variable -- I get the following error message in the log file (or at the command prompt): Code:
There is no adjoint restart file!! solution_adj_cl.dat. 3. Run SU2_DOT with configuration file option MATH_PROBLEM= CONTINUOUS_ADJOINT, the job runs correctly and gives me the the result for the derivative of CL with the design variable. It seems there is some bug with DISCRETE_ADJOINT option for MATH_PROBLEM if run with SU2_DOT. -- Mandar |
Hi kmandar,
you have to use SU2_DOT_AD to get the correct projection. But this requires the volume adjoint solution, this is why you need to copy restart_adj_cl.dat to solution_adj_cl.dat first. Or just run the script discrete_adjoint.py, this performs all necessay steps automatically. Tim |
Hi talbring,
That worked well. The script runs well too. Thanks, Mandar |
After running the discrete_adjoint.py script, the gradient for lift are stored in the file of_grad_cl.dat and it looks like this:
Code:
VARIABLES="VARIABLE" , "GRADIENT" , "FINDIFF_STEP" Thanks, Mandar |
Hi Mandar,
actually this is a leftover of an earlier version where the projection was also in the case of the discrete adjoint done using Finite Differences. However, its not done anymore so you can ignore this column. Tim |
Hi Tim,
Ok, thanks, Mandar |
All times are GMT -4. The time now is 03:21. |