|
[Sponsors] |
July 11, 2022, 08:32 |
Inverse Design Using SU2
|
#1 |
New Member
Abhijith
Join Date: Nov 2020
Location: United Kingdom
Posts: 19
Rep Power: 6 |
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 |
|
August 9, 2022, 15:39 |
|
#2 |
New Member
Abhijith
Join Date: Nov 2020
Location: United Kingdom
Posts: 19
Rep Power: 6 |
||
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |