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

Error during shape optimization

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 24, 2016, 12:41
Default Error during shape optimization
  #1
New Member
 
Alberto Sette
Join Date: May 2015
Posts: 2
Rep Power: 0
Ullixes91 is on a distinguished road
Hello,

when I use shape_optimization.py on the ONERAM6 inviscid test case i get the following error:

Traceback (most recent call last):
File "shape_optimization.py", line 154, in <module>
main()
File "shape_optimization.py", line 99, in main
options.quiet )
File "shape_optimization.py", line 137, in shape_optimization
SU2.opt.SLSQP(project,x0,xb,its,accu)
File "/usr/local/bin/SU2/opt/scipy_tools.py", line 128, in scipy_slsqp
epsilon = eps )
File "/usr/lib/python2.7/dist-packages/scipy/optimize/slsqp.py", line 200, in fmin_slsqp
constraints=cons, **opts)
File "/usr/lib/python2.7/dist-packages/scipy/optimize/slsqp.py", line 302, in _minimize_slsqp
mieq = sum(map(len, [atleast_1d(c['fun'](x, *c['args'])) for c in cons['ineq']]))
File "/usr/local/bin/SU2/opt/scipy_tools.py", line 211, in con_cieq
cons = project.con_cieq(x)
File "/usr/local/bin/SU2/opt/project.py", line 233, in con_cieq
return self._eval(konfig, func,dvs)
File "/usr/local/bin/SU2/opt/project.py", line 182, in _eval
vals = design._eval(func,*args)
File "/usr/local/bin/SU2/eval/design.py", line 142, in _eval
vals = eval_func(*inputs)
File "/usr/local/bin/SU2/eval/design.py", line 432, in con_cieq
func = su2func(this_con,config,state)
File "/usr/local/bin/SU2/eval/functions.py", line 85, in function
aerodynamics( config, state )
File "/usr/local/bin/SU2/eval/functions.py", line 224, in aerodynamics
info = su2run.direct(config)
File "/usr/local/bin/SU2/run/direct.py", line 81, in direct
SU2_CFD(konfig)
File "/usr/local/bin/SU2/run/interface.py", line 110, in CFD
run_command( the_Command )
File "/usr/local/bin/SU2/run/interface.py", line 268, in run_command
raise exception , message
RuntimeError: Path = /home/ulixes/SU2/RUN/ottimizzazione/DESIGNS/DSN_001/DIRECT/,
Command = /usr/local/bin/SU2_CFD config_CFD.cfg
SU2 process returned error '134'
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Aborted (core dumped)


I'm running SU2-4.0.2 on a Ubuntu-14.04 VM with a parallel configuration(with mpich2, if it can be of any help). I get the error either if I'm using one or multiple cores. I have no idea of what is causing the problem: did anyone experience the same error? I have read of similar problems in older versions of the software, but the proposed solutions didn't fit my configuration.

Thank you for your attention.
Ullixes91 is offline   Reply With Quote

Old   January 25, 2016, 06:08
Default
  #2
Super Moderator
 
Tim Albring
Join Date: Sep 2015
Posts: 195
Rep Power: 11
talbring is on a distinguished road
Hi Ullixes91,

could you try the new Version 4.1? If this problem still persists, please open a bug report on github.

Thanks!
talbring is offline   Reply With Quote

Old   January 25, 2016, 13:28
Default
  #3
New Member
 
Alberto Sette
Join Date: May 2015
Posts: 2
Rep Power: 0
Ullixes91 is on a distinguished road
I shall try to install it as soon as possible, and report the result. Thank you.
Ullixes91 is offline   Reply With Quote

Old   February 23, 2016, 03:45
Default
  #4
hlk
Senior Member
 
Heather Kline
Join Date: Jun 2013
Posts: 309
Rep Power: 14
hlk is on a distinguished road
Quote:
Originally Posted by Ullixes91 View Post
I shall try to install it as soon as possible, and report the result. Thank you.
I believe that it is also possible for this error to occur if an incorrect number of design variable parameters have been specified - there are some failsafes in the code to catch that sort of thing, but it will not hurt to check that your design variable definitions have the right number of parameters if other solutions do not work for you.
hlk is offline   Reply With Quote

Reply

Tags
su2 error, su2 optimization


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 Shape optimization questions AdriC SU2 Shape Design 6 January 27, 2016 05:25
Shape Optimization with PBC jubroll SU2 Shape Design 1 June 12, 2015 01:38
Airfoil Shape Optimization using gradient based methods jaiswal Main CFD Forum 1 April 10, 2014 12:22
Shape Optimization Error, Incorrect values produces by SU2_GDC Dhig SU2 Shape Design 1 March 20, 2014 06:58
Testcase for shape optimization using RANS simualtion diwakaranant SU2 Shape Design 1 April 18, 2013 14:27


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