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

Cannot run ONERAM6 optimization correctly

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Mohiumar

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 6, 2018, 09:04
Default Cannot run ONERAM6 optimization correctly
  #1
New Member
 
yonghong
Join Date: Nov 2018
Posts: 7
Rep Power: 7
Kevin_N is on a distinguished road
Hi,

I downloaded the testcase for ONERAM6 optimization including the cfg and mesh file. I used v6.0.0. There is no problem for the Direct and Continuous_adjoint simulation individually. However, when I copy the solution_flow.dat, solution_adj.dat for the optimization work, it diverged at the first iteration.
The message in the log_Adjonit.out says
Sens_Geo Sens_AoA
-nan -nan

and the gredient is all zero

Any ideas what is wrong ? It is the testcase, I didnot change anyting. Any help is appreciated
Kevin_N is offline   Reply With Quote

Old   March 6, 2019, 15:26
Default
  #2
New Member
 
umar
Join Date: Jun 2015
Posts: 6
Rep Power: 10
Mohiumar is on a distinguished road
I am also having the same problem. I am running the cases in windows 10 with su2v6.0 and python 3.7
Mohiumar is offline   Reply With Quote

Old   March 13, 2019, 13:07
Default
  #3
New Member
 
umar
Join Date: Jun 2015
Posts: 6
Rep Power: 10
Mohiumar is on a distinguished road
I am able to run the case after changing the su2 Python files. Problem fixed.
Mohiumar is offline   Reply With Quote

Old   March 15, 2019, 03:28
Default
  #4
New Member
 
yonghong
Join Date: Nov 2018
Posts: 7
Rep Power: 7
Kevin_N is on a distinguished road
Hi Mohiumar

Which su2 Python files did you change? Thanks
Kevin_N is offline   Reply With Quote

Old   March 15, 2019, 07:12
Default
  #5
New Member
 
umar
Join Date: Jun 2015
Posts: 6
Rep Power: 10
Mohiumar is on a distinguished road
Inside windows 10 su2 folder we have folder named su2 which contains number python files. Replace them with su2_py folder files from su2 v6_1 source code
Mohiumar is offline   Reply With Quote

Old   March 15, 2019, 09:04
Default
  #6
New Member
 
umar
Join Date: Jun 2015
Posts: 6
Rep Power: 10
Mohiumar is on a distinguished road
Inside windows 10 su2 folder we have folder named bin which contains number python files. Replace them with su2_py folder files from su2 v6_1 source code.


Python script inside the bin folder contains some error with multiple surface monitoring. You can observe this with your adjoint log file check 'surfaces where the force coefficients are calculated' it takes only upper_side. This causes the sens to become inf. By changing all python scripts in the windows version using the python script files available from su2 v6.1 you will be able to run the onera optimisation.

(There was an error I observed with multiple surface monitor in shape_optimization. Since oneram6 wing named as 3 surfaces upper, lower,tip. If possible change them into single name. No need to change the python scripts in this case)
Mohiumar is offline   Reply With Quote

Old   June 29, 2019, 13:25
Default Optimisation constraints
  #7
New Member
 
Drashan Y.N
Join Date: Jun 2019
Posts: 14
Rep Power: 6
darshangowda046 is on a distinguished road
Do i have to replace the files inside su2 folder with su2_py or folder name itself? because there are so many files inside su2 folder
darshangowda046 is offline   Reply With Quote

Old   June 29, 2019, 13:58
Default
  #8
New Member
 
umar
Join Date: Jun 2015
Posts: 6
Rep Power: 10
Mohiumar is on a distinguished road
Just replace the Python files inside the bin folder(16 files) with the same files available from source`s su2_py. Don't change the folder or file names.
Mohiumar is offline   Reply With Quote

Old   June 29, 2019, 14:02
Default Su2
  #9
New Member
 
Drashan Y.N
Join Date: Jun 2019
Posts: 14
Rep Power: 6
darshangowda046 is on a distinguished road
Can u give me an example
darshangowda046 is offline   Reply With Quote

Old   June 29, 2019, 14:26
Default
  #10
New Member
 
umar
Join Date: Jun 2015
Posts: 6
Rep Power: 10
Mohiumar is on a distinguished road
Inside su2-windows10-latest/su2-windows-latest/ExecSequential/bin folder files named compute_multipoint compute_polar compute_adjoint like that you have some .py files replace them from su2 source(download su2v6_1 source) that is su2/-master/su2_py folder have the files named compute_multipoint compute_polar.
darshangowda046 likes this.
Mohiumar is offline   Reply With Quote

Old   June 30, 2019, 13:15
Default Help
  #11
New Member
 
Drashan Y.N
Join Date: Jun 2019
Posts: 14
Rep Power: 6
darshangowda046 is on a distinguished road
i tried as u said but i am getting this error
Found: mesh_ONERAM6_inv_FFD.su2
New Project: ./
Traceback (most recent call last):
File "shape_optimization.py", line 187, in <module>
main()
File "shape_optimization.py", line 118, in main
options.nzones )
File "shape_optimization.py", line 159, in shape_optimization
project = SU2.opt.Project(config,state)
File "C:\Users\dharshan\Downloads\su2-windows10-latest (1)\su2-windows-latest\ExecSequential\bin\SU2\opt\project.py", line 160, in __init__
with redirect_folder(folder,pull,link,force=True):
File "C:\Users\dharshan\Downloads\su2-windows10-latest (1)\su2-windows-latest\ExecSequential\bin\SU2\io\redirect.py", line 209, in __enter__
make_link(old_name,new_name)
File "C:\Users\dharshan\Downloads\su2-windows10-latest (1)\su2-windows-latest\ExecSequential\bin\SU2\io\tools.py", line 1118, in make_link
assert os.path.exists(src) , 'source file does not exist \n%s' % src
AssertionError: source file does not exist
darshangowda046 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
SU2 optimization does not work correctly with CGNS format Andrei SU2 Shape Design 1 April 22, 2016 10:35
simpleFoam parallel AndrewMortimer OpenFOAM Running, Solving & CFD 12 August 7, 2015 18:45
[mesh manipulation] Cannot get refineMesh to run in parallel smschnob OpenFOAM Meshing & Mesh Conversion 2 June 3, 2014 11:20
problems in optimization of ONERAM6 mk1989 SU2 Shape Design 1 November 19, 2013 16:38
COMSOL: optimization applied to a laminar flow tdh89 COMSOL 0 April 30, 2012 08:57


All times are GMT -4. The time now is 09:08.