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

2D FFD Optimization

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

Like Tree1Likes
  • 1 Post By fpalacios

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 7, 2014, 15:18
Default 2D FFD Optimization
  #1
New Member
 
Join Date: May 2014
Posts: 4
Rep Power: 12
RLangtry is on a distinguished road
Has anyone managed to get tge recently announced 2D FFD optimization running yet? Is there an example problem (2d_mesh.su2, 2d_FFD.su2, .cfg) for the recently announced 2D FFD optimization capability? I've managed to get 3D FFD and 2D Hicks-Henne working correctly put after watching the latest Pointwise/SU2 workshop I'm struggling to get the 2D FFD running on an airfoil.
RLangtry is offline   Reply With Quote

Old   May 18, 2014, 21:52
Default
  #2
Super Moderator
 
Francisco Palacios
Join Date: Jan 2013
Location: Long Beach, CA
Posts: 404
Rep Power: 15
fpalacios is on a distinguished road
Quote:
Originally Posted by RLangtry View Post
Has anyone managed to get tge recently announced 2D FFD optimization running yet? Is there an example problem (2d_mesh.su2, 2d_FFD.su2, .cfg) for the recently announced 2D FFD optimization capability? I've managed to get 3D FFD and 2D Hicks-Henne working correctly put after watching the latest Pointwise/SU2 workshop I'm struggling to get the 2D FFD running on an airfoil.
Hi, Thanks for your interest in SU2

In principle, the procedure is analogous to the 3D case...

1) Add to the end of the .su2 file the following

FFD_NBOX= 1
FFD_NLEVEL= 1
FFD_TAG= 0
FFD_LEVEL= 0
FFD_DEGREE_I= 25
FFD_DEGREE_J= 1
FFD_PARENTS= 0
FFD_CHILDREN= 0
FFD_CORNER_POINTS= 4
1.1 -0.1
-0.1 -0.1
-0.1 0.1
1.1 0.1

2) Run SU2_MDC with

DV_KIND= FFD_SETTING
DV_MARKER= ( airfoil )
to generate a new .su2 (the one that you will use in the future with the complete FFD information - including parametric coordinates-)

3) add the FFD design variables to the .cfg file e.g.

DEFINITION_DV= ( 15, 1.0 | airfoil | 0, 0, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 1, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 2, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 3, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 4, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 5, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 6, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 7, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 8, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 9, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 10, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 11, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 12, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 13, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 14, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 15, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 16, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 17, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 18, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 19, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 20, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 21, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 22, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 23, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 24, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 25, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 0, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 1, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 2, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 3, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 4, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 5, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 6, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 7, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 8, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 9, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 10, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 11, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 12, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 13, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 14, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 15, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 16, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 17, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 18, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 19, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 20, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 21, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 22, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 23, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 24, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 25, 1, 0, 1.0 )

4) run the optimization

I hope this help,

Best Regards,
Francisco
zkdkeen likes this.
fpalacios is offline   Reply With Quote

Old   August 5, 2014, 09:48
Default
  #3
New Member
 
XingYu
Join Date: May 2014
Posts: 25
Rep Power: 12
454514566@qq.com is on a distinguished road
Quote:
Originally Posted by fpalacios View Post
Hi, Thanks for your interest in SU2

In principle, the procedure is analogous to the 3D case...

1) Add to the end of the .su2 file the following

FFD_NBOX= 1
FFD_NLEVEL= 1
FFD_TAG= 0
FFD_LEVEL= 0
FFD_DEGREE_I= 25
FFD_DEGREE_J= 1
FFD_PARENTS= 0
FFD_CHILDREN= 0
FFD_CORNER_POINTS= 4
1.1 -0.1
-0.1 -0.1
-0.1 0.1
1.1 0.1

2) Run SU2_MDC with

DV_KIND= FFD_SETTING
DV_MARKER= ( airfoil )
to generate a new .su2 (the one that you will use in the future with the complete FFD information - including parametric coordinates-)

3) add the FFD design variables to the .cfg file e.g.

DEFINITION_DV= ( 15, 1.0 | airfoil | 0, 0, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 1, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 2, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 3, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 4, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 5, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 6, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 7, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 8, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 9, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 10, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 11, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 12, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 13, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 14, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 15, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 16, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 17, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 18, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 19, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 20, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 21, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 22, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 23, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 24, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 25, 0, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 0, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 1, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 2, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 3, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 4, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 5, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 6, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 7, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 8, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 9, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 10, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 11, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 12, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 13, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 14, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 15, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 16, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 17, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 18, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 19, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 20, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 21, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 22, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 23, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 24, 1, 0, 1.0 ); ( 15, 1.0 | airfoil | 0, 25, 1, 0, 1.0 )

4) run the optimization

I hope this help,

Best Regards,
Francisco
Why I face an error:
'DV_PARAM: a design variable in the configuration file has the wrong number of parameters'
the .cfg is inv_NACA0015.zip
454514566@qq.com is offline   Reply With Quote

Reply

Tags
2d ffd su2

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
Multiple FFD box definition for shape optimization study diwakaranant SU2 1 November 5, 2013 17:46
Problem with FFD-based shape optimization: all gradients are zero praveen SU2 Shape Design 10 October 7, 2013 21:21
Total force optimization or pressure force optimization? robyTKD SU2 Shape Design 1 August 19, 2013 15:54
COMSOL: optimization applied to a laminar flow tdh89 COMSOL 0 April 30, 2012 08:57
BOOK ON OPTIMIZATION OF FORTRAN CODES Alberto Main CFD Forum 3 November 10, 2008 06:07


All times are GMT -4. The time now is 15:19.