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

Can not run any test cases

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Lazlo

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 6, 2019, 20:49
Default Can not run any test cases
  #1
New Member
 
Join Date: May 2018
Posts: 19
Rep Power: 8
lejonetfrannorden is on a distinguished road
Hello everyone,

I am trying to run the test cases. I am running SU2 on Windows 10. My issue is that when I run the code, SU2_CFD runs for 1000 iterations (I have changed it to 1000 in the .cfg file). SU2_CFD exits without an issue but then I get the following error:
Code:
Traceback (most recent call last):
  File "C:\SU2\bin\shape_optimization.py", line 187, in <module>
    main()
  File "C:\SU2\bin\shape_optimization.py", line 118, in main
    options.nzones      )
  File "C:\SU2\bin\shape_optimization.py", line 163, in shape_optimization
    SU2.opt.SLSQP(project,x0,xb,its,accu)
  File "C:\SU2\bin\SU2\opt\scipy_tools.py", line 143, in scipy_slsqp
    epsilon        = eps            )
  File "C:\Users\myname\AppData\Roaming\Python\Python36\site-packages\scipy\optimize\slsqp.py", line 208, in fmin_slsqp
    constraints=cons, **opts)
  File "C:\Users\myname\AppData\Roaming\Python\Python36\site-packages\scipy\optimize\slsqp.py", line 315, in _minimize_slsqp
    for c in cons['ineq']]))
  File "C:\Users\myname\AppData\Roaming\Python\Python36\site-packages\scipy\optimize\slsqp.py", line 315, in <listcomp>
    for c in cons['ineq']]))
  File "C:\SU2\bin\SU2\opt\scipy_tools.py", line 467, in con_cieq
    cons = project.con_cieq(x)
  File "C:\SU2\bin\SU2\opt\project.py", line 256, in con_cieq
    return self._eval(konfig, func,dvs)
  File "C:\SU2\bin\SU2\opt\project.py", line 205, in _eval
    vals = design._eval(func,*args)
  File "C:\SU2\bin\SU2\eval\design.py", line 146, in _eval
    vals = eval_func(*inputs)
  File "C:\SU2\bin\SU2\eval\design.py", line 519, in con_cieq
    func = su2func(this_con,config,state)
  File "C:\SU2\bin\SU2\eval\functions.py", line 98, in function
    aerodynamics( config, state )
  File "C:\SU2\bin\SU2\eval\functions.py", line 253, in aerodynamics
    info = su2run.direct(config)
  File "C:\SU2\bin\SU2\run\direct.py", line 96, in direct
    su2merge(konfig)
  File "C:\SU2\bin\SU2\run\merge.py", line 91, in merge
    merge_solution(konfig)
  File "C:\SU2\bin\SU2\run\merge.py", line 117, in merge_solution
    SU2_SOL( config )
  File "C:\SU2\bin\SU2\run\interface.py", line 239, in SOL
    run_command( the_Command )
  File "C:\SU2\bin\SU2\run\interface.py", line 302, in run_command
    raise exception(message)
RuntimeError: Path = C:\Users\myname\Desktop\SU2_OPT\transonic_turb_constant_cl\DESIGNS\DSN_001\DIRECT\,
Command = mpiexec -n 4 "C:\SU2\bin\SU2_SOL config_SOL.cfg
SU2 process returned error '4294967292'
ERROR: Error reported: failed to launch '"C:\SU2\bin\SU2_SOL config_SOL.cfg"' on myname-PC
Error (2) The system cannot find the file specified.
I am also getting the error above for the basic NACA0012 test case. What should I be doing next?

Regards,
Lejonet
lejonetfrannorden is offline   Reply With Quote

Old   January 7, 2019, 08:38
Default
  #2
New Member
 
Join Date: May 2018
Posts: 19
Rep Power: 8
lejonetfrannorden is on a distinguished road
The problem is still not solved so I am deleting the previous reply. I can not run discrete adjoint and continuous adjoint.

Last edited by lejonetfrannorden; January 7, 2019 at 09:56.
lejonetfrannorden is offline   Reply With Quote

Old   February 20, 2020, 14:20
Default
  #3
New Member
 
Join Date: Jun 2019
Posts: 10
Rep Power: 7
Lazlo is on a distinguished road
Hello,

Same type of situation here:
Git download on an up to date Fedora distribution. I think I installed everything needed but all shape design tutorials fail. The error message does not give any clue for me.


Edit: some more details

case: Inviscid_2D_Unconstrained_NACA0012
DSN_001 is created
log_Direct.out in DIRECT is OK
but log_Adjoint.out in ADJOINT_DRAG terminates with an error:

Error in "virtual void CPhysicalGeometry::SetBoundSensitivity(CConfig*)":
-------------------------------------------------------------------------
Surface sensitivity not found in file.
------------------------------ Error Exit -------------------------------



Here is the output error:
Code:
Traceback (most recent call last):
  File "/home/myname/bin/shape_optimization.py", line 176, in <module>
    main()
  File "/home/myname/bin/shape_optimization.py", line 108, in main
    options.nzones      )
  File "/home/myname/bin/shape_optimization.py", line 152, in shape_optimization
    SU2.opt.SLSQP(project,x0,xb,its,accu)
  File "/home/myname/bin/SU2/opt/scipy_tools.py", line 133, in scipy_slsqp
    epsilon        = eps            )
  File "/usr/lib64/python3.7/site-packages/scipy/optimize/slsqp.py", line 208, in fmin_slsqp
    constraints=cons, **opts)
  File "/usr/lib64/python3.7/site-packages/scipy/optimize/slsqp.py", line 423, in _minimize_slsqp
    g = append(fprime(x), 0.0)
  File "/usr/lib64/python3.7/site-packages/scipy/optimize/optimize.py", line 300, in function_wrapper
    return function(*(wrapper_args + args))
  File "/home/myname/bin/SU2/opt/scipy_tools.py", line 400, in obj_df
    dobj_list = project.obj_df(x)
  File "/home/myname/bin/SU2/opt/project.py", line 238, in obj_df
    return self._eval(konfig, func,dvs)
  File "/home/myname/bin/SU2/opt/project.py", line 202, in _eval
    vals = design._eval(func,*args)
  File "/home/myname/bin/SU2/eval/design.py", line 147, in _eval
    vals = eval_func(*inputs)
  File "/home/myname/bin/SU2/eval/design.py", line 380, in obj_df
    grad = su2grad(this_obj,grad_method,config,state)
  File "/home/myname/bin/SU2/eval/gradients.py", line 96, in gradient
    grads = adjoint( func_name, config, state )
  File "/home/myname/bin/SU2/eval/gradients.py", line 299, in adjoint
    info = su2run.projection(konfig,state)
  File "/home/myname/bin/SU2/run/projection.py", line 93, in projection
    SU2_DOT(konfig)
  File "/home/myname/bin/SU2/run/interface.py", line 187, in DOT
    run_command( the_Command )
  File "/home/myname/bin/SU2/run/interface.py", line 292, in run_command
    raise exception(message)
SU2.EvaluationFailure: Path = /media/data/myname/Logiciels/git/SU2/Tutorials/Inviscid_2D_Unconstrained_NACA0012/DESIGNS/DSN_001/ADJOINT_DRAG/,
Command = /home/myname/bin/SU2_DOT config_DOT.cfg
SU2 process returned error '1'
Lazlo is offline   Reply With Quote

Old   February 20, 2020, 15:08
Default
  #4
New Member
 
Eduardo de Oliveira Carvalho
Join Date: Mar 2018
Location: São José dos Campos - SP. Brazil
Posts: 15
Rep Power: 8
Eduardo Carvalho is on a distinguished road
I noticed that your log points an error with SU2_SOL, what the specific log file of this error says?

You can find logs of each specific operation (e.g. SU2_CFD, SU2_GEO) inside the design directories.

Maybe they can give you some clue about your problem.

Best of luck

Eduardo
Eduardo Carvalho is offline   Reply With Quote

Old   February 20, 2020, 15:45
Default
  #5
New Member
 
Join Date: Jun 2019
Posts: 10
Rep Power: 7
Lazlo is on a distinguished road
Thanks Eduardo,


Some new tests: it runs well with the DISCRETE_ADJOINT but it fails with the CONTINUOUS_ADJOINT option and the error is the one I quoted in my previous message:
in log_Adjoint.out

Error in "virtual void CPhysicalGeometry::SetBoundSensitivity(CConfig*)":
-------------------------------------------------------------------------
Surface sensitivity not found in file.
------------------------------ Error Exit -------------------------------
Lazlo is offline   Reply With Quote

Old   February 20, 2020, 16:09
Default
  #6
New Member
 
Eduardo de Oliveira Carvalho
Join Date: Mar 2018
Location: São José dos Campos - SP. Brazil
Posts: 15
Rep Power: 8
Eduardo Carvalho is on a distinguished road
Besides this message, is there another info inside the log?

Did it manage to run the SU2_CFD of the adjoint simulation?

If it did the adjoint simulation, did it generate the "surface_adjoint" file?
Eduardo Carvalho is offline   Reply With Quote

Old   February 20, 2020, 16:36
Default
  #7
New Member
 
Join Date: Jun 2019
Posts: 10
Rep Power: 7
Lazlo is on a distinguished road
Yes, SU2_CFD runs properly and creates a surface_adjoint.vtk file
Code:
----------------------------- Solver Exit -------------------------------
All convergence criteria satisfied.
+-----------------------------------------------------------------------+
|      Convergence Field     |     Value    |   Criterion  |  Converged |
+-----------------------------------------------------------------------+
|                  rms[A_Rho]|      -13.0019|         < -13|         Yes|
+-----------------------------------------------------------------------+
-------------------------------------------------------------------------
+-----------------------------------------------------------------------+
|        File Writing Summary       |              Filename             |
+-----------------------------------------------------------------------+
|SU2 restart                        |restart_adj_cd.dat                 |
|Paraview binary                    |adjoint.vtk                        |
|Paraview binary surface            |surface_adjoint.vtk                |
+-----------------------------------------------------------------------+
and then I have
Code:
 ----------------- Physical Case Definition ( Zone 0 ) -------------------
Input mesh file name: mesh_NACA0012_inv.su2
Input sensitivity file name: surface_adjoint.
may be a problem with the extension of surface_adjoint file ?
Lazlo is offline   Reply With Quote

Old   February 22, 2020, 04:14
Default
  #8
New Member
 
Join Date: Jun 2019
Posts: 10
Rep Power: 7
Lazlo is on a distinguished road
Hello Eduardo,
What I have observed: DISCRETE_ADJOINT works flawlessly. Problems occur with CONTINUOUS_ADJOINT. SU2_CFD runs properly for the adjoint computation. Then SU2_DOT reads surface deformation parameters and then crashes when reading the the surface sensitivity file. What I have observed if that the input surface sensitivity file name is different when running CA and DA. With CA I get "Input sensitivity file name: surface_adjoint." when it is "Input sensitivity file name: solution_adj_cd.dat." with DA.

Last edited by Lazlo; February 22, 2020 at 04:15. Reason: typo
Lazlo is offline   Reply With Quote

Old   February 26, 2020, 07:58
Default
  #9
Super Moderator
 
Tim Albring
Join Date: Sep 2015
Posts: 195
Rep Power: 11
talbring is on a distinguished road
Hi,

please make sure to add "SURFACE_CSV" to the OUTPUT_FILES option (default is "(RESTART, PARAVIEW, SURFACE_PARAVIEW)" )
__________________
Developer Director @ SU2 Foundation

Get involved:
talbring is offline   Reply With Quote

Old   February 26, 2020, 15:31
Default
  #10
New Member
 
Join Date: Jun 2019
Posts: 10
Rep Power: 7
Lazlo is on a distinguished road
Perfect !
There was no OUTPUT_FILES option in the tutorial cfg file.
I have added:
OUTPUT_FILES= (RESTART, PARAVIEW, SURFACE_PARAVIEW, SURFACE_CSV)
And now, CONTINUOUS_ADJOINT runs perfecly on a single core.
Solved for me

Parallel run fails, but it is in an other topic...
whon likes this.
Lazlo 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
Big test cases jacobH SU2 1 May 26, 2015 17:30
all rans and navierstokes test cases getting seg fault jentink SU2 14 October 9, 2013 15:07
Change parameter and run cases parallel lingdeer ANSYS 0 July 29, 2011 11:27
Well Know Test cases should be on CFD-online sam Main CFD Forum 8 February 20, 2007 09:29
Standard CFD test cases? Damon Qualski Main CFD Forum 1 April 10, 2003 15:10


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