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

Script for automatic installation + question

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By Jiba
  • 1 Post By talbring
  • 1 Post By talbring

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 31, 2016, 03:08
Default Script for automatic installation + question
  #1
Member
 
Tom
Join Date: Oct 2015
Posts: 67
Rep Power: 11
mlooti is on a distinguished road
hello every body

first i watn to thanks Kumar who wrote this automatic installation for SU2
https://vijaikumar.in/how-to-install...su2-in-ubuntu/

Q:
after installing SU2 I tried Quick Start and every thing went well but in in the " invicied supersonic wedge " tutorial when I enter "SU2_DEF inv_wedge_HLLC.cfg" in command line in order to change the mesh from cgns to su2 I get segmentation fault error
1.png

add: the SU2_CFD inv_wedge_HLLC.cfg works well so the cgns library is ok

then in "optimal shape design of a transonic airfoil" when I enter "shape_optimization.py -f inv_naca0012_basic.cfg" in order to let the python scripts availabe to do optimization automatically the result is
2.png

does any one know how to deal with these???

any help would be apriciated
mlooti is offline   Reply With Quote

Old   February 2, 2016, 12:41
Default
  #2
New Member
 
Join Date: Dec 2013
Location: Italy
Posts: 29
Rep Power: 13
Jiba is on a distinguished road
In the first error, it looks like you did not specify the "deformation" parameters. Please check in the configuration file if the following keys are defined

DV_KIND= SCALE
DV_MARKER= ( upper, lower, inlet, outlet )
DV_PARAM= ( 1.0 )
DV_VALUE= 1.0

If not add the keys and try to use SU2_DEF.


Relative to the second error I had no problems in running the case, but it looks like more an error due to python. Did you manage to run the parallel_computation.py?
mlooti likes this.
Jiba is offline   Reply With Quote

Old   February 2, 2016, 23:01
Default
  #3
Member
 
Tom
Join Date: Oct 2015
Posts: 67
Rep Power: 11
mlooti is on a distinguished road
thanks a lot jiba
the first one worked ( a thought they already add the Design Variable Parameters part in the config file)

but in the second one abou the error I posted the problem was with the PATH . I add the following lines and it start to work

export SU2_HOME=/home/mgh/SU2v4.0.0
export SU2_RUN=/usr/local/bin
export PATH=$PATH:$SU2_RUN

(I dont know how to make them permanent, so each time I start a new bash I have to insert them?????)

after working (just reading) it again stalk in this error:
error.png

I check the parallel computation (parallel_computation.py -f inv_wedge_HLLC.cfg -n 2) for the wedge tutorial and it work just fine.

any idea on this one??

thanks a lot
mlooti is offline   Reply With Quote

Old   February 3, 2016, 05:33
Default
  #4
New Member
 
Join Date: Dec 2013
Location: Italy
Posts: 29
Rep Power: 13
Jiba is on a distinguished road
Quote:
Originally Posted by mlooti View Post

but in the second one abou the error I posted the problem was with the PATH . I add the following lines and it start to work

export SU2_HOME=/home/mgh/SU2v4.0.0
export SU2_RUN=/usr/local/bin
export PATH=$PATH:$SU2_RUN

(I dont know how to make them permanent, so each time I start a new bash I have to insert them?????)
thanks a lot
To make permanent the definition of the path in your $HOME open the file .bashrc and add the three lines above.
Jiba is offline   Reply With Quote

Old   February 3, 2016, 05:37
Default
  #5
Member
 
Tom
Join Date: Oct 2015
Posts: 67
Rep Power: 11
mlooti is on a distinguished road
thanks man

but what about the mpirun ERROR which I posted?

it apear when Im running on one processor???
mlooti is offline   Reply With Quote

Old   February 3, 2016, 05:37
Default
  #6
Super Moderator
 
Tim Albring
Join Date: Sep 2015
Posts: 195
Rep Power: 11
talbring is on a distinguished road
Hi mlooti,

regarding your first problem:

Add these lines to ~/.bashrc.

For the second one:

Look into the log file DESIGNS/DSN_001/DIRECT/log_direct.out
mlooti likes this.
talbring is offline   Reply With Quote

Old   February 3, 2016, 05:51
Default
  #7
New Member
 
Join Date: Dec 2013
Location: Italy
Posts: 29
Rep Power: 13
Jiba is on a distinguished road
Quote:
Originally Posted by mlooti View Post
thanks man

but what about the mpirun ERROR which I posted?

it apear when Im running on one processor???
When running in parallel you have to set at least 2 processors, or mpi will return the error.
Jiba is offline   Reply With Quote

Old   February 3, 2016, 05:59
Default
  #8
Member
 
Tom
Join Date: Oct 2015
Posts: 67
Rep Power: 11
mlooti is on a distinguished road
I use this command which is for 1 processor
$python shape_optimization.py -f inv_NACA0012_basic.cfg

even for parallel computation the error shows up ($python shape_optimization.py -f inv_NACA0012_basic.cfg -n 2)

this is what is shown on my "DESIGNS/DSN_001/DIRECT/log_direct.out" file

log_direct.png

and these are values in my config file

values.png

??
mlooti is offline   Reply With Quote

Old   February 3, 2016, 06:03
Default
  #9
Super Moderator
 
Tim Albring
Join Date: Sep 2015
Posts: 195
Rep Power: 11
talbring is on a distinguished road
Your version of the test cases (4.1.0) does not match with the version of SU2 (< 4.1.0). Make sure that both are up-to-date.

OPT_BOUND_LOWER and OPT_BOUND_UPPER were introduced with 4.1.0
mlooti likes this.
talbring is offline   Reply With Quote

Old   February 3, 2016, 06:12
Default
  #10
Member
 
Tom
Join Date: Oct 2015
Posts: 67
Rep Power: 11
mlooti is on a distinguished road
thanks a lot

yes I have SU2v4.0.0

so now I have to compile the code again
mlooti 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
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 19:56
Installing OpenFOAM-1.6.x on OpenSUSE 11.2, A question to the developers Ahmed OpenFOAM Installation 0 December 5, 2009 06:03
Perl script for intialisation pratik mehta CFX 2 September 10, 2008 04:09
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 19:07
Installation problems shellbell1999 OpenFOAM Installation 9 April 6, 2006 14:29


All times are GMT -4. The time now is 09:37.