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

Shape optimisation with constraint : NACA0012

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 10, 2023, 14:21
Default Shape optimisation with constraint : NACA0012
  #1
New Member
 
Join Date: Feb 2023
Location: MAROCCO
Posts: 7
Rep Power: 3
octogon is on a distinguished road
Hi everebody,
I'm an absolut beginner in SU2, i have to optimise the shape of NACA0012 Airfoil. The probleme is the following :

- Objective : Cd(drag) minimisation.
- Constrainte : y>ybasline (with 0<x<1).
I've seen on NASA's website than ybasline= +- 0.6*[0.2969*sqrt(x) - 0.1260*x - 0.3516*x2 + 0.2843*x3 - 0.1015*x4]

The problem looks very easy but i have just no ideas of what i'have to code.
I know than i need to complete the following code :

OPT_CONSTRAINT = NONE

May you help me please ?!

Thank's a lot for your help.

OCTOGON
octogon is offline   Reply With Quote

Old   February 10, 2023, 16:24
Default
  #2
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 679
Rep Power: 21
bigfootedrockmidget is on a distinguished road
Did you already try the tutorials on unconstrained and constrained optimization? They are a good starting point:

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


What is the use of the design constraint? Is a minimum thickness as constraint not sufficient for you?
bigfootedrockmidget is offline   Reply With Quote

Old   February 10, 2023, 17:55
Default
  #3
New Member
 
Join Date: Feb 2023
Location: MAROCCO
Posts: 7
Rep Power: 3
octogon is on a distinguished road
Quote:
Originally Posted by bigfootedrockmidget View Post
Did you already try the tutorials on unconstrained and constrained optimization? They are a good starting point:

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


What is the use of the design constraint? Is a minimum thickness as constraint not sufficient for you?
Thank's a lot for your answer.

Yes i have already check this two tutorials. For unconstrained optimization problem, i succeed easly, i also succeed for an easy contrained optimization probleme (simply THINKNESS>XXX for example). Ok i'm not an absolut biginner as well BUT a biginner for sur !

But for my own problem i have no idea. At first, i would like to "cut" the profil in several small profil like on tuto with "ONERAM6", but i don't know if it's answer well my problem. Maybe it's the only possibility, maybe not i don't know.

There is no use, it's an academic project !
octogon is offline   Reply With Quote

Old   February 10, 2023, 18:23
Default
  #4
New Member
 
Join Date: Feb 2023
Location: MAROCCO
Posts: 7
Rep Power: 3
octogon is on a distinguished road
And the approach with THIKNESS in several x (0, 0.2, 0.4 etc.. , 1) is only coherent for symetric design so i can do better i think
octogon is offline   Reply With Quote

Old   February 10, 2023, 18:59
Default
  #5
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 679
Rep Power: 21
bigfootedrockmidget is on a distinguished road
I don't understand your constraint, you want a new airfoil design that is always thicker than the 0012 airfoil, so the 0012 fits completely inside your new design? And the cord length is fixed at 1?
bigfootedrockmidget is offline   Reply With Quote

Old   February 11, 2023, 03:18
Default
  #6
New Member
 
Join Date: Feb 2023
Location: MAROCCO
Posts: 7
Rep Power: 3
octogon is on a distinguished road
Quote:
Originally Posted by bigfootedrockmidget View Post
I don't understand your constraint, you want a new airfoil design that is always thicker than the 0012 airfoil, so the 0012 fits completely inside your new design? And the cord length is fixed at 1?
Yes i think that's it, for naca0012 airfoil, the baseline profil is ybaseline=+- 0.6*[0.2969*sqrt(x) - 0.1260*x - 0.3516*x2 + 0.2843*x3 - 0.1015*x4].
And i need to have, for all x (airfoil lenght) y>ybaseline. I have no constrainte on cord i think.

So it's true than the constraint previously mentionned is equivalent to : NACA0012 fits completely inside the new design.
octogon is offline   Reply With Quote

Old   February 11, 2023, 03:24
Default
  #7
New Member
 
Join Date: Feb 2023
Location: MAROCCO
Posts: 7
Rep Power: 3
octogon is on a distinguished road
But it's not only thickness because we can imagine a new airfoil design with exactly the same thickness which doesn't respect the constraint y>ybaseline (if the airfoil bends upwards with the same thickness)
octogon is offline   Reply With Quote

Old   February 11, 2023, 15:21
Default
  #8
New Member
 
Abhijith
Join Date: Nov 2020
Location: United Kingdom
Posts: 19
Rep Power: 6
abhijithmoni is on a distinguished road
For NACA 0012 airfoil since the thickness of baseline is 0.12, use the following in the constraint to have a optimized shape with thickness more than or equivalent to baseline thickness:

Code:
OPT_OBJECTIVE= DRAG * 0.001

OPT_CONSTRAINT= (AIRFOIL_THICKNESS = 0.12) * 0.001; (AIRFOIL_THICKNESS > 0.12) * 0.001
where 0.001 is the Scale, you can change it based on your requirement.

It is better to use the full geometry of NACA 0012 for this case.

For symmetric case refer this article for insights- https://www.researchgate.net/publica...lems_Using_SU2


Hope it helps

Best
Abhijith Moni
abhijithmoni is offline   Reply With Quote

Old   February 12, 2023, 12:03
Default
  #9
New Member
 
Join Date: Feb 2023
Location: MAROCCO
Posts: 7
Rep Power: 3
octogon is on a distinguished road
Quote:
Originally Posted by abhijithmoni View Post
For NACA 0012 airfoil since the thickness of baseline is 0.12, use the following in the constraint to have a optimized shape with thickness more than or equivalent to baseline thickness:

Code:
OPT_OBJECTIVE= DRAG * 0.001

OPT_CONSTRAINT= (AIRFOIL_THICKNESS = 0.12) * 0.001; (AIRFOIL_THICKNESS > 0.12) * 0.001
where 0.001 is the Scale, you can change it based on your requirement.

It is better to use the full geometry of NACA 0012 for this case.

For symmetric case refer this article for insights- https://www.researchgate.net/publica...lems_Using_SU2


Hope it helps

Best
Abhijith Moni
Thank's for the link, it's very interesting and it's the same constraints than mines !
i don't understand what it the "Scale" !?
octogon is offline   Reply With Quote

Old   February 12, 2023, 12:46
Default
  #10
New Member
 
Abhijith
Join Date: Nov 2020
Location: United Kingdom
Posts: 19
Rep Power: 6
abhijithmoni is on a distinguished road
SLSQP optimizer is used by SU2 for design optimisation in this case. In its initial phase of looking for the local optimum, the optimizer perturbs the design. In order to ensure that this first step is not too big, we often scale the objective function (for example 0.001). The value of this scaling factor needs to be changed for various objective functions; in general, there is no certain thumb rule for choosing this value; rather, a little trial and error is required based on the problem/requirement. Read about Adjoint solver and optimizers available within SU2 documentation for more details.

Best
Abhijith Moni
abhijithmoni is offline   Reply With Quote

Old   February 13, 2023, 06:42
Default
  #11
New Member
 
Join Date: Feb 2023
Location: MAROCCO
Posts: 7
Rep Power: 3
octogon is on a distinguished road
Thank's.

Ok i have an other idea. What about puting OPT_BOUND_LOWER from -0.1 to 0 ?! That shoud allow to only inscrease the yline.
In addition to OPT_CONTRAINT previously viewed.
octogon is offline   Reply With Quote

Old   January 15, 2024, 14:26
Default
  #12
New Member
 
Rafael Gomes Batista
Join Date: Apr 2023
Posts: 12
Rep Power: 3
rgbatista is on a distinguished road
Do you have any updates about this type of optimization?
Or have you had any success with this optimization?

By the way, is this an optimization benchmark from the ADODG group?


Thank you.


Best Regards,
Rafael Batista
rgbatista 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
Shape optimisation not converging elninoft9 SU2 Shape Design 3 January 25, 2023 10:03
3D RANS based shape optimisation mesh deformation nikki_vlk SU2 Shape Design 0 May 30, 2022 05:36
Spline generation for Adjoint Based Shape Optimisation radioactivity OpenFOAM 1 November 1, 2021 01:11
Errors when running Shape Optimization Tutorial 1 - NACA0012 northfly SU2 7 February 14, 2019 04:46
Segmentation fault in tutorial NACA0012 shape optimization lazzini SU2 Shape Design 3 March 16, 2018 05:41


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