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

Inverse Design Using SU2

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 11, 2022, 08:32
Exclamation Inverse Design Using SU2
  #1
New Member
 
Abhijith
Join Date: Nov 2020
Posts: 12
Rep Power: 4
abhimon.kk@gmail.com is on a distinguished road
Hi,

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

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

The following error appears:


Traceback (most recent call last):
File "C:\SU2\bin\shape_optimization.py", line 183, in <module>
main()
File "C:\SU2\bin\shape_optimization.py", line 92, in main
shape_optimization( options.filename ,
File "C:\SU2\bin\shape_optimization.py", line 159, in shape_optimization
SU2.opt.SLSQP(project,x0,xb,its,accu)
File "C:\SU2\bin\SU2\opt\scipy_tools.py", line 120, in scipy_slsqp
outputs = fmin_slsqp( x0 = x0 ,
File "C:\ProgramData\Anaconda3\lib\site-packages\scipy\optimize\slsqp.py", line 207, in fmin_slsqp
res = _minimize_slsqp(func, x0, args, jac=fprime, bounds=bounds,
File "C:\ProgramData\Anaconda3\lib\site-packages\scipy\optimize\slsqp.py", 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\optimize.py", 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__
self._update_fun()
File "C:\ProgramData\Anaconda3\lib\site-packages\scipy\optimize\_differentiable_functions. py", line 233, in _update_fun
self._update_fun_impl()
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\scipy_tools.py", line 383, in obj_f
obj_list = project.obj_f(x)
File "C:\SU2\bin\SU2\opt\project.py", line 237, in obj_f
return self._eval(konfig, func,dvs)
File "C:\SU2\bin\SU2\opt\project.py", line 206, in _eval
vals = design._eval(func,*args)
File "C:\SU2\bin\SU2\eval\design.py", line 147, in _eval
vals = eval_func(*inputs)
File "C:\SU2\bin\SU2\eval\design.py", line 244, in obj_f
func += su2func(this_obj,config,state) * sign * scale * global_factor
File "C:\SU2\bin\SU2\eval\functions.py", line 118, in function
func_out = state['FUNCTIONS'][func_name]
KeyError: 'INVERSE_DESIGN_PRESSURE'



Please help me fix this.

The configuration file is attached.

Thanks
Abhijith
Attached Files
File Type: txt naca_inv.txt (15.2 KB, 1 views)
abhimon.kk@gmail.com is offline   Reply With Quote

Old   August 9, 2022, 15:39
Default
  #2
New Member
 
Abhijith
Join Date: Nov 2020
Posts: 12
Rep Power: 4
abhimon.kk@gmail.com is on a distinguished road
Fix for the problem is discussed in the following link:

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


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