|
[Sponsors] |
November 6, 2018, 09:04 |
Cannot run ONERAM6 optimization correctly
|
#1 |
New Member
yonghong
Join Date: Nov 2018
Posts: 7
Rep Power: 7 |
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 |
|
March 6, 2019, 15:26 |
|
#2 |
New Member
umar
Join Date: Jun 2015
Posts: 6
Rep Power: 10 |
I am also having the same problem. I am running the cases in windows 10 with su2v6.0 and python 3.7
|
|
March 13, 2019, 13:07 |
|
#3 |
New Member
umar
Join Date: Jun 2015
Posts: 6
Rep Power: 10 |
I am able to run the case after changing the su2 Python files. Problem fixed.
|
|
March 15, 2019, 03:28 |
|
#4 |
New Member
yonghong
Join Date: Nov 2018
Posts: 7
Rep Power: 7 |
Hi Mohiumar
Which su2 Python files did you change? Thanks |
|
March 15, 2019, 07:12 |
|
#5 |
New Member
umar
Join Date: Jun 2015
Posts: 6
Rep Power: 10 |
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
|
|
March 15, 2019, 09:04 |
|
#6 |
New Member
umar
Join Date: Jun 2015
Posts: 6
Rep Power: 10 |
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) |
|
June 29, 2019, 13:25 |
Optimisation constraints
|
#7 |
New Member
Drashan Y.N
Join Date: Jun 2019
Posts: 14
Rep Power: 6 |
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
|
|
June 29, 2019, 13:58 |
|
#8 |
New Member
umar
Join Date: Jun 2015
Posts: 6
Rep Power: 10 |
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.
|
|
June 29, 2019, 14:02 |
Su2
|
#9 |
New Member
Drashan Y.N
Join Date: Jun 2019
Posts: 14
Rep Power: 6 |
Can u give me an example
|
|
June 29, 2019, 14:26 |
|
#10 |
New Member
umar
Join Date: Jun 2015
Posts: 6
Rep Power: 10 |
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.
|
|
June 30, 2019, 13:15 |
Help
|
#11 |
New Member
Drashan Y.N
Join Date: Jun 2019
Posts: 14
Rep Power: 6 |
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 |
|
|
|
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 |