CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > SU2

SU2 Drag Sensitivities

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 5, 2018, 05:25
Default SU2 Drag Sensitivities
  #1
New Member
 
Join Date: Jun 2017
Posts: 19
Rep Power: 9
kaush is on a distinguished road
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
kaush is offline   Reply With Quote

Old   March 7, 2018, 16:25
Default
  #2
Member
 
Ole Burghardt
Join Date: Mar 2016
Location: Kiel, Germany
Posts: 60
Rep Power: 10
Sprotte is on a distinguished road
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
Sprotte is offline   Reply With Quote

Old   March 14, 2018, 23:45
Default
  #3
New Member
 
Join Date: Jun 2017
Posts: 19
Rep Power: 9
kaush is on a distinguished road
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 is offline   Reply With Quote

Old   March 16, 2018, 00:36
Default
  #4
New Member
 
Join Date: Jun 2017
Posts: 19
Rep Power: 9
kaush is on a distinguished road
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!
kaush is offline   Reply With Quote

Old   March 16, 2018, 05:28
Default
  #5
Member
 
Ole Burghardt
Join Date: Mar 2016
Location: Kiel, Germany
Posts: 60
Rep Power: 10
Sprotte is on a distinguished road
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.
Sprotte is offline   Reply With Quote

Old   March 18, 2018, 22:04
Default
  #6
Super Moderator
 
Francisco Palacios
Join Date: Jan 2013
Location: Long Beach, CA
Posts: 404
Rep Power: 15
fpalacios is on a distinguished road
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
fpalacios is offline   Reply With Quote

Old   April 11, 2018, 08:07
Default
  #7
New Member
 
Join Date: Jun 2017
Posts: 19
Rep Power: 9
kaush is on a distinguished road
Do we have a tutorial for the discrete adjoint solver? I could not find one
kaush is offline   Reply With Quote

Old   April 24, 2018, 07:27
Default
  #8
Super Moderator
 
Tim Albring
Join Date: Sep 2015
Posts: 195
Rep Power: 11
talbring is on a distinguished road
In this tutorial you find also information on how to switch to the discrete adjoint:

https://su2code.github.io/tutorials/...ined_NACA0012/
__________________
Developer Director @ SU2 Foundation

Get involved:
talbring is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
wrong SU2 calculation for lift and drag coefficient for NAC4421 mechy SU2 7 January 9, 2017 06:18
Induced drag, pressure drag, viscous drag. aleix.de.toro FLUENT 2 August 24, 2015 19:00
Diverging sensitivities in SU2. amitkamboj SU2 7 February 18, 2015 23:46
Drag Calculation in SU2 andromeda91 SU2 3 April 24, 2014 05:41
best setting for SU2 mechy SU2 3 April 20, 2014 20:13


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