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

Problem about multipoint optimization with geometry constraint

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

LinkBack Thread Tools Search this Thread Display Modes
Old   May 30, 2022, 11:25
Default Problem about multipoint optimization with geometry constraint
New Member
Join Date: Mar 2019
Posts: 4
Rep Power: 7
qooin is on a distinguished road
I want to process a multipoint optimization with constraints. The problem I encountered is that, if I set OPT_CONSTRAINT=NONE or a flow based constraint function(e.g. MULTIPOINT_MOMENT_Z), the optimization goes well. But if the geometry based constraint is given to OPT_CONSTRAINT(e.g. OPT_CONSTRAINT=( AIRFOIL_THICKNESS>0)*0.001 like onepoint problem ), the error will occur as below. The cfg file is based on inv_NACA0012_multipoint.cfg that is from TestCase and it is put in the attachment.
I have no idea what the problem is. I can't find the answer anywhere else.
Traceback (most recent call last):
File "/home/star/su2/bin/", line 183, in <module>
File "/home/star/su2/bin/", line 92, in main
shape_optimization( options.filename ,
File "/home/star/su2/bin/", line 159, in shape_optimization
File "/home/star/su2/bin/SU2/opt/", line 120, in scipy_slsqp
outputs = fmin_slsqp( x0 = x0 ,
File "/usr/local/python/lib/python3.8/site-packages/scipy/optimize/", line 206, in fmin_slsqp
res = _minimize_slsqp(func, x0, args, jac=fprime, bounds=bounds,
File "/usr/local/python/lib/python3.8/site-packages/scipy/optimize/", line 374, in _minimize_slsqp
sf = _prepare_scalar_function(func, x, jac=jac, args=args, epsilon=eps,
File "/usr/local/python/lib/python3.8/site-packages/scipy/optimize/", line 263, in _prepare_scalar_function
sf = ScalarFunction(fun, x0, args, grad, hess,
File "/usr/local/python/lib/python3.8/site-packages/scipy/optimize/", line 158, in __init__
File "/usr/local/python/lib/python3.8/site-packages/scipy/optimize/", line 251, in _update_fun
File "/usr/local/python/lib/python3.8/site-packages/scipy/optimize/", line 155, in update_fun
self.f = fun_wrapped(self.x)
File "/usr/local/python/lib/python3.8/site-packages/scipy/optimize/", line 137, in fun_wrapped
fx = fun(np.copy(x), *args)
File "/home/star/su2/bin/SU2/opt/", line 383, in obj_f
obj_list = project.obj_f(x)
File "/home/star/su2/bin/SU2/opt/", line 237, in obj_f
return self._eval(konfig, func,dvs)
File "/home/star/su2/bin/SU2/opt/", line 206, in _eval
vals = design._eval(func,*args)
File "/home/star/su2/bin/SU2/eval/", line 147, in _eval
vals = eval_func(*inputs)
File "/home/star/su2/bin/SU2/eval/", line 244, in obj_f
func += su2func(this_obj,config,state) * sign * scale * global_factor
File "/home/star/su2/bin/SU2/eval/", line 100, in function
multipoint( config, state )
File "/home/star/su2/bin/SU2/eval/", line 675, in multipoint
func[i+1] = aerodynamics(konfig,ztate)
File "/home/star/su2/bin/SU2/eval/", line 313, in aerodynamics
funcs[key] = state['FUNCTIONS'][key]
Attached Files
File Type: txt inv_NACA0012_multipoint.cfg.txt (14.3 KB, 5 views)
qooin is offline   Reply With Quote

Old   June 5, 2022, 23:09
New Member
Join Date: Mar 2019
Posts: 4
Rep Power: 7
qooin is on a distinguished road
Has anyone ever encountered this problem?
qooin is offline   Reply With Quote

Old   November 2, 2022, 01:12
New Member
Join Date: Sep 2022
Posts: 1
Rep Power: 0
ugbourzz is on a distinguished road
I have also encountered this problem, but i can not solve. Do you still encounter this problem? If you don't, how do you solve?
ugbourzz is offline   Reply With Quote


geometry constraint, keyerror, multipoint optimization

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
[ICEM] Volume Meshing Problem; YOUR GEOMETRY HAS A HOLE mariachi ANSYS Meshing & Geometry 5 May 30, 2018 02:52
Problem with building geometry - concentric cylinders Rhoddwen OpenFOAM Pre-Processing 9 December 17, 2014 10:02
problem when imported geometry from 3D CAD to star ccm, TAREK GANAT STAR-CCM+ 1 May 21, 2013 22:15
FSI problem of improper constraint moloykb FLUENT 3 April 4, 2013 03:47
[Gmsh] Problem meshing an imported geometry Alicia OpenFOAM Meshing & Mesh Conversion 0 March 30, 2010 04:53

All times are GMT -4. The time now is 14:11.