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

SU2 Adjoint shape optimization

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 11, 2023, 08:38
Default SU2 Adjoint shape optimization
  #1
New Member
 
Join Date: Dec 2023
Posts: 14
Rep Power: 2
cfd-jg is on a distinguished road
Hi,


I have downloaded the compiled version of SU2 v.8.0.0 on Ubuntu 20.04. I am following the constrained shape design of a transonic inviscid wing at a cte. CL: https://su2code.github.io/tutorials/...ained_ONERAM6/


In the goals section says this:

"The following SU2 tools will be showcased in this tutorial:
  • SU2_CFD - performs the direct flow simulations.
  • SU2_CFD_AD - performs the adjoint flow simulations.
  • SU2_DOT_AD - projects the adjoint surface sensitivities into the design space to obtain the gradient.
  • SU2_DEF - deforms the geometry and mesh with changes in the design variables during the shape optimization process.
  • SU2_GEO - evaluates the thickness of the specified wing stations and their gradients.
  • shape_optimization.py - automates the entire shape design process by executing the SU2 tools and optimizer."
However, I have realised that the SU2_CFD_AD and SU2_DOT_AD tools are not in the compiled version. Does this mean that I need to compile the source code by myself to be able to use adjoint shape optimization?


If this is the case, how can I do this? I have already tried following the tutorial on the website but it is not very detailed and I always end up with some type of error.


Thank you for the help.
cfd-jg is offline   Reply With Quote

Old   December 11, 2023, 09:41
Default
  #2
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 585
Rep Power: 17
bigfootedrockmidget is on a distinguished road
Quote:
Does this mean that I need to compile the source code by myself to be able to use adjoint shape optimization?
yes.
If you are currently working in windows, then switch to linux. Windows is not a research/development environment.
bigfootedrockmidget is offline   Reply With Quote

Old   December 11, 2023, 11:02
Default
  #3
New Member
 
Join Date: Dec 2023
Posts: 14
Rep Power: 2
cfd-jg is on a distinguished road
Quote:
Originally Posted by bigfootedrockmidget View Post
yes.
If you are currently working in windows, then switch to linux. Windows is not a research/development environment.

I am using Ubuntu 20.04, still need to build the code from source?
cfd-jg is offline   Reply With Quote

Old   December 11, 2023, 13:04
Default
  #4
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 585
Rep Power: 17
bigfootedrockmidget is on a distinguished road
In linux, just compile with AD support:
Code:
-Denable-autodiff=true

https://su2code.github.io/docs_v7/Bu...2-Linux-MacOS/
bigfootedrockmidget 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
Optimization of airfoil Gradient based optimization SU2 ryupuriwat SU2 0 March 30, 2023 10:46
Shape optimization doesn't converge - Adjoint log file JPBLourenco SU2 Shape Design 0 December 11, 2017 08:41
SU2 Shape optimization questions AdriC SU2 Shape Design 6 January 27, 2016 04:25
Question about SU2 optimization YoniHe SU2 Shape Design 3 January 15, 2016 00:31
hard to convergent with SU2 4.0 for Euler adjoint Xianguu SU2 1 July 14, 2015 17:09


All times are GMT -4. The time now is 21:40.