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

Can`t Setup ONERA optimization case

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 13, 2017, 15:28
Default Can`t Setup ONERA optimization case
  #1
Member
 
MM
Join Date: Aug 2017
Posts: 30
Rep Power: 8
McAero is on a distinguished road
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
McAero is offline   Reply With Quote

Old   November 14, 2017, 05:44
Default
  #2
Super Moderator
 
Tim Albring
Join Date: Sep 2015
Posts: 195
Rep Power: 10
talbring is on a distinguished road
Hi,

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

Tim
__________________
Developer Director @ SU2 Foundation

Get involved:
talbring is offline   Reply With Quote

Old   November 14, 2017, 06:28
Default
  #3
Member
 
MM
Join Date: Aug 2017
Posts: 30
Rep Power: 8
McAero is on a distinguished road
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
)
Attached Images
File Type: jpg su2python.JPG (21.0 KB, 7 views)
File Type: jpg onera.JPG (37.5 KB, 6 views)
McAero is offline   Reply With Quote

Old   November 14, 2017, 13:47
Default
  #4
New Member
 
Amir A. Abdelqodus
Join Date: Nov 2017
Posts: 7
Rep Power: 8
Amir Adib is on a distinguished road
Have you compiled SU2 with python wrapper?

If this is not the case, follow this:
https://github.com/su2code/SU2/wiki/...-Wrapper-Build
Amir Adib is offline   Reply With Quote

Old   November 15, 2017, 04:22
Default
  #5
Super Moderator
 
Tim Albring
Join Date: Sep 2015
Posts: 195
Rep Power: 10
talbring is on a distinguished road
Quote:
Originally Posted by McAero View Post
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
__________________
Developer Director @ SU2 Foundation

Get involved:
talbring is offline   Reply With Quote

Old   November 15, 2017, 08:24
Default
  #6
Member
 
MM
Join Date: Aug 2017
Posts: 30
Rep Power: 8
McAero is on a distinguished road
Quote:
Originally Posted by Amir Adib View Post
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 is offline   Reply With Quote

Old   November 15, 2017, 08:29
Default
  #7
Member
 
MM
Join Date: Aug 2017
Posts: 30
Rep Power: 8
McAero is on a distinguished road
Quote:
Originally Posted by talbring View Post
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
McAero 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
Copy solution setup and Boundary Conditions from a case file nonstopthinker FLUENT 1 October 6, 2016 00:50
folded mesh in shape optimization of ONERA M6 shock bumps uyuig0 SU2 Shape Design 0 August 2, 2016 05:57
ONERA C1 test case CFD Student Main CFD Forum 0 June 30, 2007 07:31
Free surface boudary conditions with SOLA-VOF Fan Main CFD Forum 10 September 9, 2006 12:24
Unsteady state case setup Christian FLUENT 2 February 16, 2003 17:11


All times are GMT -4. The time now is 04:18.