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

Objective function gradient verification: surface vs volume integral formulation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 14, 2017, 08:10
Default Objective function gradient verification: surface vs volume integral formulation
  #1
New Member
 
Evgeniy
Join Date: Oct 2017
Posts: 5
Rep Power: 9
Evgeniy is on a distinguished road
Dear su2 people,
i’m doing verification analysis of objective function gradient calculation (lift force minimization) for high-lift airfoil NLR7301 with CST design variables for incompressible flow (steady RANS) by using finite difference approach, continuous adjoint method in SU2.
The results of SU2 gradient calculation by using surface integral formulation are quite far from finite difference ones (value of design variables perturbations were extensively tested). In order to improve accuracy of gradient calculation i decided to try estimate gradient by using volume integral formulation with mesh deformation for every design variable. From SU2 documentation is not fully clear what is conservative_1 variable means (for incompressible adjoint formulation).
If we consider 2D incompressible adjoint Euler equation in non conservative form in D:
∂ψ2/∂x1 + ∂ψ3/∂x2 = 0;
u1 ∂ψ2/∂x1 + u2 ∂ψ2/∂x2 + ∂ψ1/∂x1 + u1 ∂ψ2/∂x1 + u2 ∂ψ3/∂x1 = 0;
u1 ∂ψ3/∂x1 + u2 ∂ψ3/∂x2 + ∂ψ1/∂x2 + u1 ∂ψ2/∂x2 + u2 ∂ψ3/∂x2 = 0,
where:
u1, u2 – components of velocity vector;
ψ2, ψ3 - components of adjoint velocity vector;
ψ1 – adjoint pressure.
Does conservative_1 variable equal to primitive variable ψ1 (in system above) or it’s combination of adjoint primitive variables?

Any reply would be appreciated!
Kind regards,
Evgeniy
Evgeniy is offline   Reply With Quote

Old   December 15, 2017, 05:40
Default
  #2
New Member
 
Evgeniy
Join Date: Oct 2017
Posts: 5
Rep Power: 9
Evgeniy is on a distinguished road
I think I found the answer on my question above in code, please correct me if i’m wrong.
From Cnumerics::GetInviscidArtCompProjJac() function (numerics_sructure.cpp) follows that SU2 solves the following incompressible adjoint equations:
∂ψ2/∂x1 + ∂ψ3/∂x2 = 0;
u1 ∂ψ2/∂x1 + u2 ∂ψ2/∂x2 + ∂ψ1/∂x1 = 0;
u1 ∂ψ3/∂x1 + u2 ∂ψ3/∂x2 + ∂ψ1/∂x2 = 0;
These equations are different from classical adjoint formulation presented in my first post. Apparently adjoint variable conservative_1 can be expressed as follows:
∂conservative_1/∂x1 = ∂ψ1/∂x1 + u1 ∂ψ2/∂x1 + u2 ∂ψ3/∂x1;
∂conservative_1/∂x2 = ∂ψ1/∂x2 + u1 ∂ψ2/∂x2 + u2 ∂ψ3/∂x2.
Here if my guess is correct i would like to ask another questions.
Why in SU2 use incomplete adjoint equations system for incompressible flow which obviously provide different adjoint solution from complete adjoint system?
I can imagine that incomplete system is more stable however it would be good to know how it affect on gradient accuracy and on class of problems which can be solved by using incomplete adjoint system?

I will be thankful to any reply!
Kind regards,
Evgeniy
Evgeniy is offline   Reply With Quote

Old   December 18, 2017, 07:19
Default
  #3
New Member
 
Evgeniy
Join Date: Oct 2017
Posts: 5
Rep Power: 9
Evgeniy is on a distinguished road
Hello all,
i’ve get some verification results for high-lift airfoil case. The results are attached and the description of the test case is follows.
Lift force minimization problem for two element high-lift airfoil NLR7301 at AoA=11 deg with CST design variables (12 variables per element (6 for top, 6 for bottom parts)).
Direct problem model is steady incompressible RANS equations, Re = 2.2e+06, M = 0.09.
Adjoint problem model is continuous steady incompressible viscous adjoint equations with frozen turbulence assumption.
Two types of adjoint equations were analyzed: complete system (see first post (viscous part is not presented)) and incomplete system (see second post)).
Objective function gradient was calculated by using finite difference approach (FD), complete adjoint system with volume integral formulation (adj_eq_vol_int_form); incomplete adjoint system with volume integral formulation (short_adj_eq_vol_int_form); incomplete adjoint system with surface integral formulation (short_adj_eq_surf_int_form).
As you can see from the results only complete adjoint system with volume integral formulation provide gradient close enough to finite difference one.
Does anybody experienced with similar results?
Thanks,
Evgeniy
Attached Files
File Type: zip grad_comp.ods.zip (25.2 KB, 7 views)
Evgeniy is offline   Reply With Quote

Old   February 21, 2018, 06:40
Question CST configure file
  #4
Member
 
João Lourenço
Join Date: Jan 2017
Posts: 32
Rep Power: 9
JPBLourenco is on a distinguished road
Hi,

Does anyone know how to use CST method (class shape transformation) in SU2? In the configure file it's not clear how to do it. I try this configuration
DEFINITION_DV= (20, 1.0 |airfoil| 0, 1, 8) for shape optimization airfoil but nothing change in the airfoil.

I'm using the SU2 version5.0

Thanks
JPBLourenco is offline   Reply With Quote

Old   February 24, 2018, 13:07
Default
  #5
Super Moderator
 
Francisco Palacios
Join Date: Jan 2013
Location: Long Beach, CA
Posts: 404
Rep Power: 15
fpalacios is on a distinguished road
I think the correct number of the design variable is 51

Best,
Francisco
fpalacios is offline   Reply With Quote

Old   February 24, 2018, 13:16
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
There is an interesting work on that topic AIAA 2017-4363 feel free to ask the authors. The surface formulation is beautiful, elegant and exact however not practical dealing with N-S flows and non-perfect grids (too affected by the accuracy of the surface gradients).
If you are planning to develop SU2 please check www.su2devsociety.org

Best,
Francisco
fpalacios is offline   Reply With Quote

Old   February 26, 2018, 04:36
Default
  #7
New Member
 
Evgeniy
Join Date: Oct 2017
Posts: 5
Rep Power: 9
Evgeniy is on a distinguished road
Dear Francisco,
Thank you for your answer and valuable reference! I would be happy to contribute to SU2 as i have some solid and stable code!
Thanks,
Evgeniy
Evgeniy is offline   Reply With Quote

Old   February 27, 2018, 07:38
Post
  #8
Member
 
João Lourenço
Join Date: Jan 2017
Posts: 32
Rep Power: 9
JPBLourenco is on a distinguished road
Quote:
Originally Posted by fpalacios View Post
There is an interesting work on that topic AIAA 2017-4363 feel free to ask the authors. The surface formulation is beautiful, elegant and exact however not practical dealing with N-S flows and non-perfect grids (too affected by the accuracy of the surface gradients).
If you are planning to develop SU2 please check www.su2devsociety.org

Best,
Francisco
Thank you for your suggestion. I will now examine the article which I find quite interesting and useful for my study. I'm working with N-S equation which can be a problem in that case. Thank you for the invitation. I will check and maybe join in a near future.

Best,
João Lourenço
JPBLourenco 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
[snappyHexMesh] sHM layer process keeps getting killed MBttR OpenFOAM Meshing & Mesh Conversion 4 August 15, 2016 04:21
Volume Integral or Surface Integral for velocity saharesobh FLUENT 2 November 20, 2012 04:51
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 07:42
Droplet Evaporation Christian Main CFD Forum 2 February 27, 2007 07:27


All times are GMT -4. The time now is 02:32.