|
[Sponsors] |
Segmentation fault in tutorial NACA0012 shape optimization |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 20, 2018, 11:44 |
Segmentation fault in tutorial NACA0012 shape optimization
|
#1 |
New Member
Lucia
Join Date: Nov 2017
Posts: 7
Rep Power: 8 |
Hi,
I am doing one tutorial for shape optimization, the inviscid NACA0012 profile (inv_NACA0012_basic.cfg), but I get the error attached. Anyone had it before? |
|
February 24, 2018, 14:23 |
|
#2 |
Super Moderator
Francisco Palacios
Join Date: Jan 2013
Location: Long Beach, CA
Posts: 404
Rep Power: 15 |
Are you using the latest version of the software (v6.0) and the webpage and files from
https://su2code.github.io/tutorials/...ined_NACA0012/ my screen output is different Found: mesh_NACA0012_inv.su2 Found: solution_flow.dat Found: solution_adj_cd.dat New Project: ./ Sequential Least SQuares Programming (SLSQP) parameters: Number of design variables: 38 ( 38 ) Objective function scaling factor: [1.0] Maximum number of iterations: 100 Requested accuracy: 1e-16 Initial guess for the independent variable(s): [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0] Lower and upper bound for each independent variable: [(-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001)] NIT FC OBJFUN GNORM Are you sure scipy is correctly installed in your python? Best, Francisco |
|
March 9, 2018, 08:07 |
|
#3 |
New Member
Lucia
Join Date: Nov 2017
Posts: 7
Rep Power: 8 |
I checked and python couldn't find scipy. I fixed the problem now.
However when I run -sudo make- I get this error "No rule to make target /home/lazzini/SU2/SU2_AD/SU2_CFD/obj/libSU2Core.a', needed by 'SU2_APIPYTHON_wrap.cxx'. Stop. The commands SU2_CFD and SU2_CFD_AD work fine, but shape_optimization.py gives this " File "/usr/local/bin/SU2/eval/design.py", line 240, in obj_f func += su2func(this_obj,config,state) sign scale TypeError: unsupported operand type(s) for *: 'OrderedBunch' and 'float'" Is it related to the error I got during the compilation? |
|
March 16, 2018, 05:41 |
|
#4 |
New Member
Lucia
Join Date: Nov 2017
Posts: 7
Rep Power: 8 |
Problem solved, somehow SU2 was taking the .py script from an old folder.
I changed the .bashrc, but apparently it was not enough. Thanks! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ABL use of fixed shear stress leads to segmentation fault 11 | cristopf | OpenFOAM Running, Solving & CFD | 1 | December 23, 2016 17:57 |
Segmentation fault while initialization of F_UDMI, why? | Niels W. | Fluent UDF and Scheme Programming | 1 | June 28, 2016 05:57 |
[Salome] segmentation fault when trying to convert UNV file to OpenFOAM | range_rover | OpenFOAM Meshing & Mesh Conversion | 2 | March 30, 2015 05:14 |
CFD based robust hull shape optimization | Thouelfaqar | Main CFD Forum | 0 | October 13, 2011 15:44 |
segmentation fault | usker | Siemens | 5 | March 6, 2007 00:14 |