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

Segmentation fault in tutorial NACA0012 shape optimization

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 20, 2018, 10:44
Default Segmentation fault in tutorial NACA0012 shape optimization
  #1
New Member
 
Lucia
Join Date: Nov 2017
Posts: 7
Rep Power: 8
lazzini is on a distinguished road
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?
Attached Images
File Type: jpg error_shape_optimization.jpg (132.7 KB, 23 views)
lazzini is offline   Reply With Quote

Old   February 24, 2018, 13:23
Default
  #2
Super Moderator
 
Francisco Palacios
Join Date: Jan 2013
Location: Long Beach, CA
Posts: 404
Rep Power: 15
fpalacios is on a distinguished road
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
fpalacios is offline   Reply With Quote

Old   March 9, 2018, 07:07
Default
  #3
New Member
 
Lucia
Join Date: Nov 2017
Posts: 7
Rep Power: 8
lazzini is on a distinguished road
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?
lazzini is offline   Reply With Quote

Old   March 16, 2018, 04:41
Default
  #4
New Member
 
Lucia
Join Date: Nov 2017
Posts: 7
Rep Power: 8
lazzini is on a distinguished road
Problem solved, somehow SU2 was taking the .py script from an old folder.
I changed the .bashrc, but apparently it was not enough.

Thanks!
lazzini is offline   Reply With Quote

Reply


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
ABL use of fixed shear stress leads to segmentation fault 11 cristopf OpenFOAM Running, Solving & CFD 1 December 23, 2016 16:57
Segmentation fault while initialization of F_UDMI, why? Niels W. Fluent UDF and Scheme Programming 1 June 28, 2016 04:57
[Salome] segmentation fault when trying to convert UNV file to OpenFOAM range_rover OpenFOAM Meshing & Mesh Conversion 2 March 30, 2015 04:14
CFD based robust hull shape optimization Thouelfaqar Main CFD Forum 0 October 13, 2011 14:44
segmentation fault usker Siemens 5 March 5, 2007 23:14


All times are GMT -4. The time now is 01:54.