CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   SU2 (https://www.cfd-online.com/Forums/su2/)
-   -   Can`t Setup ONERA optimization case (https://www.cfd-online.com/Forums/su2/195675-can-t-setup-onera-optimization-case.html)

McAero November 13, 2017 15:28

Can`t Setup ONERA optimization case
 
Hello All,
I am trying to setup the ONERA optimization case but I am not able to,
I tried to use the guide of github but couldn't make it,

i can`t run the SU2_DEF inv_ONERAM6_adv.cfg ,
if anyone could tell me how to make it I'd be very glad.
Thanks very much in advance

talbring November 14, 2017 05:44

Hi,

can you describe the problem that you have ? What exactly is not working ?

Tim

McAero November 14, 2017 06:28

2 Attachment(s)
Thanks very very much for your reply
Excuse me cause i don`t have good experience in Linux

I am having a problem in running the python script in the terminal
it`s in both cases , onera and naca0012 2D
i have already the numpy and scipy and all required libraries
for example when i run the naca0012 case by using "`$ python shape_optimization.py -f inv_NACA0012_basic.cfg'" i have the attached error
and also for the onera using this command "SU2_DEF inv_ONERAM6_adv.cfg"
i have another error
Kindly find attached
Thanks very much for your support and concern
:))

Amir Adib November 14, 2017 13:47

Have you compiled SU2 with python wrapper?

If this is not the case, follow this:
https://github.com/su2code/SU2/wiki/...-Wrapper-Build

talbring November 15, 2017 04:22

Quote:

Originally Posted by McAero (Post 671557)
Thanks very very much for your reply
Excuse me cause i don`t have good experience in Linux

I am having a problem in running the python script in the terminal
it`s in both cases , onera and naca0012 2D
i have already the numpy and scipy and all required libraries
for example when i run the naca0012 case by using "`$ python shape_optimization.py -f inv_NACA0012_basic.cfg'" i have the attached error
and also for the onera using this command "SU2_DEF inv_ONERAM6_adv.cfg"
i have another error
Kindly find attached
Thanks very much for your support and concern
:))

There are two issues here.

First of all make sure that you have set the environment variables correctly like it is described here: https://github.com/su2code/SU2/wiki/...ment-variables

Second, it seems that the version you have try to run with SU2_DEF does not match with the version of the test cases. It may be related to the first issue (maybe your PATH variable points to an older version of SU2, use the command "which SU2_DEF" in the terminal to check that).

Tim

McAero November 15, 2017 08:24

Quote:

Originally Posted by Amir Adib (Post 671586)
Have you compiled SU2 with python wrapper?

If this is not the case, follow this:
https://github.com/su2code/SU2/wiki/...-Wrapper-Build


Thanks for your reply
no i haven`t
i tried to use the command and i have this :
Mich@MMcAero:~/SU2v4.0.0$ ./configure --prefix=/path/to/install/SU2 CXXFLAGS="-O3" --enable-mpi
./configure: line 2032: config.log: Permission denied
./configure: line 2042: config.log: Permission denied

Mich@MMcAero:~/SU2v4.0.0$ --with-cc=/path/to/mpicc --with-cxx=/path/to/mpicxx --enable-PY_WRAPPER
bash: --with-cc=/path/to/mpicc: No such file or directory

What shall i do ?

McAero November 15, 2017 08:29

Quote:

Originally Posted by talbring (Post 671633)
There are two issues here.

First of all make sure that you have set the environment variables correctly like it is described here: https://github.com/su2code/SU2/wiki/...ment-variables

Second, it seems that the version you have try to run with SU2_DEF does not match with the version of the test cases. It may be related to the first issue (maybe your PATH variable points to an older version of SU2, use the command "which SU2_DEF" in the terminal to check that).

Tim

thanks very much for your reply
it`s true that i am using SU2 v4 since i am not able to install v5 for parallel computations unti now
i followed your advice but found that i shoul add ''
export SU2_RUN="your/prefix/bin" export SU2_HOME="/path/to/SU2" export PATH=$PATH:$SU2_RUN

to ~/.bashrc file which i cant` find it , where should i find it ?
thanks again for your reply and concern


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