|
[Sponsors] |
Has anyone made a success with the 2D FFD optimization? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 31, 2015, 07:17 |
Has anyone made a success with the 2D FFD optimization?
|
#1 |
New Member
fanghai
Join Date: Sep 2014
Posts: 14
Rep Power: 12 |
Dear Everyone,
I tried to run the optimization with 2D FFD several times but not succeeded.Can anyone give me an example? I would be grateful for any help you could provide. Thanks! |
|
September 3, 2015, 10:58 |
|
#2 | |
Senior Member
Heather Kline
Join Date: Jun 2013
Posts: 309
Rep Power: 14 |
Quote:
- Look in the DESIGNS/ folder - output from the CFD and gradient calculations at each step is stored there, and there may be helpful error messages. - Check to see if SU2_CFD on the same config file will run. Any error messages from that may be helpful - Check the result of running either finite_difference or continuous_adjoint (whichever one you were using for the optimization - see shape_optimization.py -h). If it can't get a gradient, it won't work. - Check to see if it works with other DV types - Set a nonzero value for one of your design variables, and run SU2_DEF with VISUALIZE_DEFORMATION set to YES. Check the output volume file - if no deformation has occurred, something is wrong with the DV parameters. (And the output of SU2_DEF will say what deformation it was attempting) |
||
September 6, 2015, 00:13 |
Thanks for the answer!
|
#3 |
New Member
fanghai
Join Date: Sep 2014
Posts: 14
Rep Power: 12 |
Thanks for the answer!
Here are several files I got when computing the gradient with FFD. The FFd_box.png : FFd_box.png The config file inv_NACA0012_adv_CFD.txt : inv_NACA0012_adv_CFD.txt The surface_adjoint.xls : surface_adjoint.xls The of_grad_cd.txt : of_grad_cd.txt I can't find why the gradient is such high number. Cheers |
|
September 6, 2015, 10:23 |
|
#4 | |
Senior Member
Heather Kline
Join Date: Jun 2013
Posts: 309
Rep Power: 14 |
Quote:
As I stated earlier, I would encourage you to apply test deformations on your DVs to see what deformation is actually being applied. |
||
September 7, 2015, 06:31 |
Thanks for the answer!
|
#5 |
New Member
fanghai
Join Date: Sep 2014
Posts: 14
Rep Power: 12 |
Thanks for the answer!
I changed the DV like this DV_KIND= FFD_CONTROL_POINT_2D DV_MARKER= ( airfoil ) DV_PARAM= ( wing, 12.0, 1.0, 0.0, 1.0) DV_VALUE= 0.001 as you see,a small change with one ffd point.However,the output mesh is such a disordered mesh. The su2 I run is the exe download form http://su2.stanford.edu/download.html ,which is the single thread v4 on windows. The FFd_box : http://www.cfd-online.com/Forums/att...1&d=1441617847 The config file : http://www.cfd-online.com/Forums/att...1&d=1441617969 The output mesh: http://www.cfd-online.com/Forums/att...1&d=1441617932 Cheers! |
|
September 10, 2015, 22:52 |
|
#6 |
New Member
fanghai
Join Date: Sep 2014
Posts: 14
Rep Power: 12 |
Can anyone help?
|
|
September 10, 2015, 22:54 |
|
#7 | |
New Member
fanghai
Join Date: Sep 2014
Posts: 14
Rep Power: 12 |
Quote:
I changed the DV like this DV_KIND= FFD_CONTROL_POINT_2D DV_MARKER= ( airfoil ) DV_PARAM= ( wing, 12.0, 1.0, 0.0, 1.0) DV_VALUE= 0.001 as you see,a small change with one ffd point.However,the output mesh is such a disordered mesh. The su2 I run is the exe download form http://su2.stanford.edu/download.html ,which is the single thread v4 on windows. The FFd_box : http://www.cfd-online.com/Forums/att...1&d=1441617847 The config file : http://www.cfd-online.com/Forums/att...1&d=1441617969 The output mesh: http://www.cfd-online.com/Forums/att...1&d=1441617932 Cheers! |
||
September 13, 2015, 14:00 |
|
#8 | |
Senior Member
Heather Kline
Join Date: Jun 2013
Posts: 309
Rep Power: 14 |
Quote:
Settings that can effect the deformation (which were not included in your config file, for some reason) - DEFORM_STIFFNESS_TYPE usually INVERSE_VOLUME, but you might also try CONSTANT_STIFFNESS or WALL_DISTANCE. - DEFORM_TOL_FACTOR usually 0.001, controls how far the solver tries to converge - DEFORM_LINEAR_SOLVER usually FGMRES - MARKER_MOVING should get set by DV_MARKER in optimization, and it looks like something is being moved, but just to be extra sure why not. |
||
September 14, 2015, 04:58 |
|
#9 | |
New Member
fanghai
Join Date: Sep 2014
Posts: 14
Rep Power: 12 |
Quote:
Thanks for the answer! It doesn't work. The terminal output : terminal_output.txt The config file : inv_NACA0012_adv.txt The original surface : original_surface.png The deformed surface : deformed_surface.png The deformed mesh : deformed_mesh.png If you have got a successful test case with FFD control point 2d ,can you give me an example? Sorry to bother you again! Many thanks! |
||
September 14, 2015, 11:51 |
|
#10 | |
Senior Member
Heather Kline
Join Date: Jun 2013
Posts: 309
Rep Power: 14 |
Quote:
|
||
September 15, 2015, 11:06 |
|
#11 | |
New Member
fanghai
Join Date: Sep 2014
Posts: 14
Rep Power: 12 |
Quote:
I changed the FFD_DEFINITION,but it doesn't work. inv_NACA0012_adv.txt inv_NACA0012_adv.txt orginal_box_and_mesh.png orginal_box_and_mesh.png deformed_box_and_mesh.png deformed_box_and_mesh.png origial_surface.png origial_surface.png deformed_surface.png deformed_surface.png As you can see in the deformed surface , the node id is jumped from 98 to 42 then to 95. I'm wondering there are some bugs in the program. Sorry to bother you again! Many thanks! |
||
September 15, 2015, 13:34 |
|
#12 | |
Senior Member
Heather Kline
Join Date: Jun 2013
Posts: 309
Rep Power: 14 |
Quote:
|
||
September 16, 2015, 00:48 |
|
#13 | |
New Member
fanghai
Join Date: Sep 2014
Posts: 14
Rep Power: 12 |
Quote:
FFD_DEFINITION= ( wing, -0.025, -0.08, 0.0, 1.025, -0.08, 0.0, 1.025, 0.08, 0.0, -0.025, 0.08, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)) The new setting FFD_DEFINITION= ( wing, -0.025, -0.1, 0.0, 1.025, -0.1, 0.0, 1.025, 0.1, 0.0, -0.025, 0.1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)) I changed the y coordinate from 0.08 to 0.1,change DV_KIND to FFD_SETTING, run SU2_DEF, and then try the 2D FFD deformation using the resulting mesh_out. As you can see in the deformed surface , the node id is jumped from 98 to 42 then to 95.I can't find why the id node of the surface is disordered. Sorry to bother you again! Many thanks! |
||
September 30, 2019, 14:47 |
|
#14 |
New Member
cfdjetman
Join Date: Mar 2019
Posts: 25
Rep Power: 7 |
How do you view the FFD control points along with the mesh?
I know how to view the mesh, just not the FFD control points. |
|
October 9, 2019, 09:24 |
|
#15 |
Member
Join Date: Mar 2017
Posts: 61
Rep Power: 9 |
||
October 11, 2019, 10:12 |
looking for reply
|
#16 |
New Member
Yue Zehua
Join Date: Apr 2019
Posts: 10
Rep Power: 7 |
hey xiongdi
you are a zhongguo ren duiba, i am using SU2 too, ruguo you wanna some jiaoliu, lianxi me! yuezehua@buaa.edu.cn |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
2D FFD Optimization | RLangtry | SU2 | 2 | August 5, 2014 10:48 |
Parallel error when doing M6 optimization in Tutorial 9 | sxhqjfl | SU2 | 2 | January 12, 2014 07:01 |
Multiple FFD box definition for shape optimization study | diwakaranant | SU2 | 1 | November 5, 2013 18:46 |
Problem with FFD-based shape optimization: all gradients are zero | praveen | SU2 Shape Design | 10 | October 7, 2013 22:21 |
COMSOL: optimization applied to a laminar flow | tdh89 | COMSOL | 0 | April 30, 2012 09:57 |