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

Parametric surface deformations for optimization

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 2 Post By tomp1993

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 26, 2018, 12:08
Question Parametric surface deformations for optimization
  #1
Member
 
tom pratt
Join Date: Jan 2016
Posts: 55
Rep Power: 10
tomp1993 is on a distinguished road
Hi All,

I am currently trying to set up an adjoint-based optimization using SU2 v6;
However, I would like to specify my own parametric design variable for the surface shape; rather than use any of the in-built ffd-style design variables.
I have been looking over grid_movement_structure.cpp to find a way of implementing this and have found a couple of possible solutions within my programming skill level.

firstly: CSurfaceMovement::SetExternal_Deformation - this looks like it is set up for unsteady mesh movement but could it be used with some external deformation file to perform shape optimization? if so, what format should this file be in and how should i ensure it is used by the cfg file?

secondly: CSurfaceMovement::SetParametricCoord - The title seems more promising however this looks like it actually utilises the FFD box definitions which i do not want to do.

finally: I have read in https://su2.stanford.edu/papers/AIAA_Paper_ASM_2012.pdf that a software package called pyCAPRI was used to define two parametric design variables for the N+2 supersonic configuration; fuselage width and inboard sweep angle. This is much closer than anything i have seen to the types of parameters i would like to use with SU2.

is there any more information available as to how i might be able to define simple geometric design variables such as this (maybe using external software?) for the shape optimization; without necessarily having to add more code to grid_movement_structure.cpp ? (really want to avoid doing this if at all possible)

Many thanks,
Tom Pratt
Kaanytk and Tongtong1919 like this.
tomp1993 is offline   Reply With Quote

Old   January 19, 2024, 06:57
Default Any updates?
  #2
Member
 
Francois Gallard
Join Date: Mar 2010
Location: Toulouse, France
Posts: 44
Rep Power: 16
fgal is on a distinguished road
Hello,

I have the same objective: I have a custom shape parametrization with derivatives and I want to use the existing mesh deformation.

Has anyone managed to do it?

It seems to me that the code in the driver has to be changed to introduce the surface deformation but it is not clear how.

https://github.com/su2code/SU2/blob/...tionDriver.cpp

Can anyone please help?

Thanks
François Gallard
fgal is offline   Reply With Quote

Old   January 19, 2024, 08:27
Default
  #3
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 672
Rep Power: 21
bigfootedrockmidget is on a distinguished road
So you want to use the output of the adjoint and go with this information to an external geometry modeler and deform the CAD directly (CAD based adjoint optimization)?



It is not something that runs out-of-the-box with the current scripts and interface that we have in SU2, but several groups have implemented this and similar things in their own workflow, usually tailored to specific external packages.



For detailed implementation advise, maybe join the su2devteam on slack or join one of the weekly developer meetings online.
bigfootedrockmidget is offline   Reply With Quote

Old   January 19, 2024, 10:09
Default
  #4
Member
 
Francois Gallard
Join Date: Mar 2010
Location: Toulouse, France
Posts: 44
Rep Power: 16
fgal is on a distinguished road
Yes it is what I want to acheive.

Thank you very much for your answer.

Could you please give me the names of the projects / packages that follow such approaches if there are any public communications or papers? Or even better open source implementations.

Best Regards
François Gallard
fgal is offline   Reply With Quote

Old   January 19, 2024, 10:33
Default
  #5
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 672
Rep Power: 21
bigfootedrockmidget is on a distinguished road
Hi,


There was a recent presentation on the SU2 conference using parablade. It is still on my list of things to try out.



https://su2foundation.org/su2conference2023/
bigfootedrockmidget is offline   Reply With Quote

Old   January 19, 2024, 12:25
Default
  #6
Member
 
Francois Gallard
Join Date: Mar 2010
Location: Toulouse, France
Posts: 44
Rep Power: 16
fgal is on a distinguished road
Great thank you.

From the presentations list I also found one example that seems to fit this need from the Python wrapper:
https://www.youtube.com/watch?v=tEDP...-OpenSourceCFD

8 min 24

Best Regards
François
fgal is offline   Reply With Quote

Reply

Tags
design parameter, design varibles, optimization, parametric

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[Gmsh] Error : Self intersecting surface mesh, computing intersections & Error : Impossible velan OpenFOAM Meshing & Mesh Conversion 3 October 22, 2015 12:05
[Gmsh] Problem with Gmsh nishant_hull OpenFOAM Meshing & Mesh Conversion 23 August 5, 2015 03:09
[snappyHexMesh] Snap Precision to a STL Surface malaboss OpenFOAM Meshing & Mesh Conversion 16 July 26, 2013 02:44
Simulation of varying contact angles for a large droplet of water on a surface cp703 CFX 5 July 20, 2013 07:08
Surface reactions netmaster STAR-CCM+ 0 November 9, 2012 22:41


All times are GMT -4. The time now is 18:29.