Cannot run ONERAM6 optimization correctly
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 |
I am also having the same problem. I am running the cases in windows 10 with su2v6.0 and python 3.7
|
I am able to run the case after changing the su2 Python files. Problem fixed.
|
Hi Mohiumar
Which su2 Python files did you change? Thanks |
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
|
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) |
Optimisation constraints
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
|
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.
|
Su2
Can u give me an example
|
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.
|
Help
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 |
All times are GMT -4. The time now is 00:58. |