CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > SU2 > SU2 Shape Design

Inverse Design Using SU2

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

LinkBack Thread Tools Search this Thread Display Modes
Old   July 11, 2022, 07:32
Exclamation Inverse Design Using SU2
New Member
Join Date: Nov 2020
Location: United Kingdom
Posts: 19
Rep Power: 5
abhijithmoni is on a distinguished road

I'm running the inverse design case for NACA 0012.

While running python C:\SU2\bin\ -g DISCRETE_ADJOINT -o SLSQP -f .\naca_inv.cfg

The following error appears:

Traceback (most recent call last):
File "C:\SU2\bin\", line 183, in <module>
File "C:\SU2\bin\", line 92, in main
shape_optimization( options.filename ,
File "C:\SU2\bin\", line 159, in shape_optimization
File "C:\SU2\bin\SU2\opt\", line 120, in scipy_slsqp
outputs = fmin_slsqp( x0 = x0 ,
File "C:\ProgramData\Anaconda3\lib\site-packages\scipy\optimize\", line 207, in fmin_slsqp
res = _minimize_slsqp(func, x0, args, jac=fprime, bounds=bounds,
File "C:\ProgramData\Anaconda3\lib\site-packages\scipy\optimize\", line 375, in _minimize_slsqp
sf = _prepare_scalar_function(func, x, jac=jac, args=args, epsilon=eps,
File "C:\ProgramData\Anaconda3\lib\site-packages\scipy\optimize\", line 261, in _prepare_scalar_function
sf = ScalarFunction(fun, x0, args, grad, hess,
File "C:\ProgramData\Anaconda3\lib\site-packages\scipy\optimize\_differentiable_functions. py", line 140, in __init__
File "C:\ProgramData\Anaconda3\lib\site-packages\scipy\optimize\_differentiable_functions. py", line 233, in _update_fun
File "C:\ProgramData\Anaconda3\lib\site-packages\scipy\optimize\_differentiable_functions. py", line 137, in update_fun
self.f = fun_wrapped(self.x)
File "C:\ProgramData\Anaconda3\lib\site-packages\scipy\optimize\_differentiable_functions. py", line 134, in fun_wrapped
return fun(np.copy(x), *args)
File "C:\SU2\bin\SU2\opt\", line 383, in obj_f
obj_list = project.obj_f(x)
File "C:\SU2\bin\SU2\opt\", line 237, in obj_f
return self._eval(konfig, func,dvs)
File "C:\SU2\bin\SU2\opt\", line 206, in _eval
vals = design._eval(func,*args)
File "C:\SU2\bin\SU2\eval\", line 147, in _eval
vals = eval_func(*inputs)
File "C:\SU2\bin\SU2\eval\", line 244, in obj_f
func += su2func(this_obj,config,state) * sign * scale * global_factor
File "C:\SU2\bin\SU2\eval\", line 118, in function
func_out = state['FUNCTIONS'][func_name]

Please help me fix this.

The configuration file is attached.

Attached Files
File Type: txt naca_inv.txt (15.2 KB, 4 views)
abhijithmoni is offline   Reply With Quote

Old   August 9, 2022, 14:39
New Member
Join Date: Nov 2020
Location: United Kingdom
Posts: 19
Rep Power: 5
abhijithmoni is on a distinguished road
Fix for the problem is discussed in the following link:
abhijithmoni is offline   Reply With Quote


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
Can SU2 do the inverse design? gina07 SU2 4 July 12, 2022 11:31
Difficulties running 3D inverse design optimisations dominico SU2 Shape Design 1 September 19, 2017 08:56
Is SU2 able to handle adjoint for pressure distribution when doing inverse design? Xiaosong SU2 2 December 4, 2016 00:25
Inverse design with SU2 gina07 SU2 Shape Design 2 March 25, 2015 09:01
Info: Short Course On Thermal Design of Electronic Equipment Arnold Free Main CFD Forum 0 August 10, 1999 10:18

All times are GMT -4. The time now is 10:18.