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

error in optimization

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 22, 2018, 09:57
Default error in optimization
  #1
New Member
 
Ahmed
Join Date: Nov 2017
Posts: 15
Rep Power: 8
Moharam is on a distinguished road
Hello all
I am trying to set up an optimization task but I faced this error which I don`t understand
can someone guide me to the problem source and the solution?
Thanks very much

Traceback (most recent call last):
File "shape_optimization.py", line 169, in <module>
main()
File "shape_optimization.py", line 104, in main
options.quiet )
File "shape_optimization.py", line 145, in shape_optimization
SU2.opt.SLSQP(project,x0,xb,its,accu)
File "/home/ahmed/SU2/bin/SU2/opt/scipy_tools.py", line 140, in scipy_slsqp
epsilon = eps )
File "/usr/local/lib/python2.7/dist-packages/scipy/optimize/slsqp.py", line 207, in fmin_slsqp
constraints=cons, **opts)
File "/usr/local/lib/python2.7/dist-packages/scipy/optimize/slsqp.py", line 314, in _minimize_slsqp
for c in cons['ineq']]))
File "/home/ahmed/SU2/bin/SU2/opt/scipy_tools.py", line 464, in con_cieq
cons = project.con_cieq(x)
File "/home/ahmed/SU2/bin/SU2/opt/project.py", line 235, in con_cieq
return self._eval(konfig, func,dvs)
File "/home/ahmed/SU2/bin/SU2/opt/project.py", line 184, in _eval
vals = design._eval(func,*args)
File "/home/ahmed/SU2/bin/SU2/eval/design.py", line 144, in _eval
vals = eval_func(*inputs)
File "/home/ahmed/SU2/bin/SU2/eval/design.py", line 457, in con_cieq
func = su2func(this_con,config,state)
File "/home/ahmed/SU2/bin/SU2/eval/functions.py", line 93, in function
aerodynamics( config, state )
File "/home/ahmed/SU2/bin/SU2/eval/functions.py", line 241, in aerodynamics
info = su2run.direct(config)
File "/home/ahmed/SU2/bin/SU2/run/direct.py", line 83, in direct
SU2_CFD(konfig)
File "/home/ahmed/SU2/bin/SU2/run/interface.py", line 117, in CFD
run_command( the_Command )
File "/home/ahmed/SU2/bin/SU2/run/interface.py", line 297, in run_command
raise exception , message
SU2.DivergenceFailure: Path = /home/ahmed/SU2/bin/DESIGNS/DSN_001/DIRECT/,
Command = /home/ahmed/SU2/bin/SU2_CFD config_CFD.cfg
SU2 process returned error '2'
Attached Images
File Type: jpg su2error.jpg (122.8 KB, 9 views)
Moharam is offline   Reply With Quote

Old   February 24, 2018, 14:10
Default
  #2
Super Moderator
 
Francisco Palacios
Join Date: Jan 2013
Location: Long Beach, CA
Posts: 404
Rep Power: 15
fpalacios is on a distinguished road
Have you tried the new optimization tutorials https://su2code.github.io/tutorials/home/ ?
Best,
Francisco
fpalacios is offline   Reply With Quote

Old   February 26, 2018, 13:28
Default
  #3
New Member
 
Ahmed
Join Date: Nov 2017
Posts: 15
Rep Power: 8
Moharam is on a distinguished road
Thanks for your reply
Yes I tried but had the same error
Moharam is offline   Reply With Quote

Old   February 26, 2018, 13:40
Default
  #4
New Member
 
Ahmed
Join Date: Nov 2017
Posts: 15
Rep Power: 8
Moharam is on a distinguished road
i tried also the RAE case but showed a different error when running SU2_GEO

Kindly find attached screenshot
Attached Images
File Type: jpg error2.jpg (78.3 KB, 9 views)
Moharam is offline   Reply With Quote

Old   March 1, 2018, 03:42
Default
  #5
Super Moderator
 
Tim Albring
Join Date: Sep 2015
Posts: 195
Rep Power: 10
talbring is on a distinguished road
Hi Ahmed,

it looks like your versions of the code and of the test cases and/or tutorials are not matching. Make sure that you have the most recent version for both.

Tim
__________________
Developer Director @ SU2 Foundation

Get involved:
talbring is offline   Reply With Quote

Old   March 1, 2018, 04:04
Default
  #6
New Member
 
Ahmed
Join Date: Nov 2017
Posts: 15
Rep Power: 8
Moharam is on a distinguished road
Thanks very much for your reply Tim
I am trying to install su2 v6 on windows but I don`t have clear steps, can you guide me?
I tried to use your GitHub page but couldn`t
I`d be very glad if you can guide me
Thanks so much
Moharam is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
ANSYS Optimization failing to update Results component. harmollo1 ANSYS 1 March 21, 2019 16:30
Question about SU2 optimization YoniHe SU2 Shape Design 3 January 15, 2016 01:31
Total force optimization or pressure force optimization? robyTKD SU2 Shape Design 1 August 19, 2013 16:54
COMSOL: optimization applied to a laminar flow tdh89 COMSOL 0 April 30, 2012 09:57
BOOK ON OPTIMIZATION OF FORTRAN CODES Alberto Main CFD Forum 3 November 10, 2008 07:07


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