CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   SU2 Installation (https://www.cfd-online.com/Forums/su2-installation/)
-   -   Script for automatic installation + question (https://www.cfd-online.com/Forums/su2-installation/165979-script-automatic-installation-question.html)

mlooti January 31, 2016 02:08

Script for automatic installation + question
 
2 Attachment(s)
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
Attachment 44850

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
Attachment 44851

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

any help would be apriciated

Jiba February 2, 2016 11:41

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 February 2, 2016 22:01

1 Attachment(s)
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:
Attachment 44900

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

Jiba February 3, 2016 04:33

Quote:

Originally Posted by mlooti (Post 583472)

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.

mlooti February 3, 2016 04:37

thanks man

but what about the mpirun ERROR which I posted?

it apear when Im running on one processor???

talbring February 3, 2016 04:37

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

Jiba February 3, 2016 04:51

Quote:

Originally Posted by mlooti (Post 583513)
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.

mlooti February 3, 2016 04:59

2 Attachment(s)
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

Attachment 44905

and these are values in my config file

Attachment 44906

??

talbring February 3, 2016 05:03

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 February 3, 2016 05:12

thanks a lot

yes I have SU2v4.0.0

so now I have to compile the code again :(


All times are GMT -4. The time now is 23:16.