CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   SU2 (https://www.cfd-online.com/Forums/su2/)
-   -   SU2 Drag Sensitivities (https://www.cfd-online.com/Forums/su2/199359-su2-drag-sensitivities.html)

kaush March 5, 2018 04:25

SU2 Drag Sensitivities
 
Dear Developpers

I want to use SU2 to just compute the intial drag sensitivities for a full wing body configuration. Is it necessary to create an FFD box? Can I just run the adjoint solver with grid deformation to obtain the sensitivities?

Would be happy if some one can provide an initial ,cfg file for the above case. couldn't find one in the tutorials

Regards

kaus

Sprotte March 7, 2018 15:25

In short: It is not necessary. Running the adjoint solver will give you the sensitivities in the sense "Objective function derivative with respect to grid node positions".

You can then use SU2_DOT_AD if you want to incorporate the sensitivities of a mesh deformation. Be careful that these sensitivities are then only accurate with respect to SU2's mesh deformation algorithm, of course.

A FFD box is "just" the build-in functionality in SU2 for real optimization steps, it can be done with every other technique/optimizer as well.

So no "special" .cfg files are necessary, run the solvers and use the output files (by default, they all contain the word _sens_ somewhere ;-))

Regards, Ole

kaush March 14, 2018 22:45

Thanks I still have a question. I have a converged RANS (Direct) solution stored. Can I start my adjoint solver over this ?

what should be the options in the cfg file?

I have given
% ------------- DIRECT, ADJOINT, AND LINEARIZED PROBLEM DEFINITION ------------%
%
% Physical governing equations (EULER, NAVIER_STOKES,
% WAVE_EQUATION, HEAT_EQUATION, FEM_ELASTICITY,
% POISSON_EQUATION)
PHYSICAL_PROBLEM= NAVIER_STOKES
%
% Mathematical problem (DIRECT, CONTINUOUS_ADJOINT)
MATH_PROBLEM=CONTINUOUS_ADJOINT
%
% Restart solution (NO, YES)
RESTART_SOL= YES

and the restart file name. However the adjoint solver is failing after a few iterations.

do not know the reason.

regards

Kaus

kaush March 15, 2018 23:36

Also is the adjoint grid different from the direct grid. One reason for this question is that the adjoint problem is backward in time and hence may require a different grid than the forward. What is surprising is that the forward problem converges without any problem wheras the adjoint problem diverges!

Sprotte March 16, 2018 04:28

Quote:

Thanks I still have a question. I have a converged RANS (Direct) solution stored. Can I start my adjoint solver over this ?
Yes, that makes sense.

However, I'm not familiar with the continous solver - so maybe someone else can help out.
What I said in previous post still accounts for both solvers.

fpalacios March 18, 2018 21:04

If I were you, I would try with the discrete adjoint (Automatic Differentiation). Continuous adjoint could be tricky. Remember that RESTART_SOL= YES should be used if you already have a solution for the adjoint.

Best,
Francisco

kaush April 11, 2018 07:07

Do we have a tutorial for the discrete adjoint solver? I could not find one

talbring April 24, 2018 06:27

In this tutorial you find also information on how to switch to the discrete adjoint:

https://su2code.github.io/tutorials/...ined_NACA0012/


All times are GMT -4. The time now is 11:04.