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

QuickStart: Execute/Run inv_NACA0012.cfg

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Sprotte

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 4, 2018, 16:21
Exclamation QuickStart: Execute/Run inv_NACA0012.cfg
  #1
New Member
 
Austin Scott
Join Date: Jan 2018
Posts: 6
Rep Power: 8
apscott2 is on a distinguished road
I am brand new to SU2, and I am hoping to complete the QuickStart tutorial before analyzing Test Cases. Since having downloaded the v5.0.0 binary and source codes, in addition to having cloned a forked version of the SU2 repository through Terminal, I haven't had any luck completing the QuickStart tutorial.

On my Mac, I tried completing the QuickStart tutorial (https://github.com/su2code/SU2/wiki/Quick-Start) using Terminal. I am able to navigate to the SU2_CFD and QuickStart directories. However when I enter commands such as "./SU2_CFD inv_NACA0012.cfg" or "./QuickStart inv_NACA0012.cfg", a message such as "./SU2_CFD is a directory" or "./QuickStart is a directory" appears. However, it seems as though the inv_NACA0012.cfg file is not being executed.

1. What must the user do to EXECUTE the inv_NACA0012.cfg file or any configuration file?

2. Does anyone have recommendations or a set of steps useful for completing the QuickStart tutorial?

3. I have downloaded Xcode. For Mac users, is it easier to use SU2 through Xcode, rather than through Terminal?

Any help would be greatly appreciated. Thanks!
apscott2 is offline   Reply With Quote

Old   January 6, 2018, 08:22
Default
  #2
Member
 
Ole Burghardt
Join Date: Mar 2016
Location: Kiel, Germany
Posts: 60
Rep Power: 10
Sprotte is on a distinguished road
It seems that you tried to execute a directory. The executables are in bin/.

There are some follow-up pages below the one that you linked in case you have troubles with compiling and installation, and there's also one which explains how to execute the program!

If you have problems completing the tutorial steps there, let us know .

Ole
Sprotte is offline   Reply With Quote

Old   January 15, 2018, 22:13
Default Problems Persist
  #3
New Member
 
Austin Scott
Join Date: Jan 2018
Posts: 6
Rep Power: 8
apscott2 is on a distinguished road
Thank you for the guidance Sprotte! I read through several Wiki pages, including the Installation and Executable pages, more closely. However, I ran into three problems while trying to execute the tutorial files.

1. After entering the following commands "./configure", "make -j 8", and "make install", I then entered the four "export..." commands into Terminal. To be clear the "export..." commands are indicated at the end of the "./configure" file run. One thing that I noticed was that after entering "export PATH=$PATH:$SU2_RUN" and then entering $PATH into Terminal, the outputted text indicated that no such directory exists. What does this mean?

2. I copied the inv_NACA0012.cfg and mesh_inv_NACA0012.su2 files into SU2_CFD/bin, since the executables go into the /bin folder of an SU2_MODULE (i.e. SU2_CFD, SU2_GEO, etc.). After entering "SU2_CFD inv_NACA0012.cfg" and "./SU2_CFD inv_NACA0012.cfg", the outputted text read "SU2_CFD: command not found" and "SU2_CFD is a directory", respectively. If I'm not mistaken, these are the exact commands that are indicated in the "Execution" page in the SU2 Wiki. The inv_NACA0012.cfg file is still not being executed. What could have caused this?

3. I also tried entering the command "mpirun -n 8 SU2_CFD default.cfg", but the outputted text read "mpirun: command not found". Is there a reason for this?

I apologize if these issues seem unrelated, or if I missing something in the instructions. I'm trying to figure out what exactly I'm doing wrong, and why I am unable to execute the QuickStart files that I copied into SU2_CFD/bin. Any help would be appreciated!
apscott2 is offline   Reply With Quote

Old   January 16, 2018, 17:47
Default
  #4
Member
 
Ole Burghardt
Join Date: Mar 2016
Location: Kiel, Germany
Posts: 60
Rep Power: 10
Sprotte is on a distinguished road
Hi,

all three questions don't seem to be really SU2-specific . It's not at all meant to be offending but some basic introduction to the Terminal will help you no end (!) with these kind of problems, I think .

If the Terminal tells you "SU2_CFD: command not found" or "SU2_CFD is a directory", that's not something mysterious but very likely there is no such a command and SU2_CFD really is a directory.

Anyway, to get you started, let's find out why.
Assuming that you didn't change the git command in the wiki pages (and therefore the SU2-directory should be named 'SU2'), could you please type in

Code:
cd ~/SU2/bin
and

Code:
ls
and tell me the output?
Sprotte is offline   Reply With Quote

Old   January 16, 2018, 22:27
Default
  #5
New Member
 
Austin Scott
Join Date: Jan 2018
Posts: 6
Rep Power: 8
apscott2 is on a distinguished road
I understand your concerns, and I appreciate your help. I will do my best to research Terminal commands and get more familiar with the Terminal environment.

To address your question: When I enter "cd ~/SU2/bin" the outputted text reads "cd: /Users/austinscott/SU2/bin: No such file or directory". Is there a particular message that I should see?

Also here are the values of the environment variables: SU2_RUN and SU2_HOME are currently "/usr/local/bin" and "/Users/austinscott/SU2", respectively, if that helps.

When I enter "ls", the outputted text includes a list of all of the downloaded contents (folders and files) included in the SU2 binaries folder (e.g. SU2_CFD, SU2_GEO, install-sh, m4, missing, preconfigure.py, etc). It should be noted that my home directory has already been set to the SU2 folder. In other words, I have already entered "cd SU2".
apscott2 is offline   Reply With Quote

Old   January 17, 2018, 06:21
Default
  #6
Member
 
Ole Burghardt
Join Date: Mar 2016
Location: Kiel, Germany
Posts: 60
Rep Power: 10
Sprotte is on a distinguished road
Quote:
Is there a particular message that I should see?
No - I'm in search for the binaries.

The messages tell me that your SU2-Folder is at /Users/austinscott/SU2 and that the binaries should be at /usr/local/bin. Can you check whether they are (ls /usr/local/bin)?

If not, please switch to your SU2-directory

Code:
cd /Users/austinscott/SU2
and execute

Code:
sudo make install
Sprotte is offline   Reply With Quote

Old   January 19, 2018, 00:23
Default
  #7
New Member
 
Austin Scott
Join Date: Jan 2018
Posts: 6
Rep Power: 8
apscott2 is on a distinguished road
After typing in "ls /usr/local bin", it looked like the binaries were not located in /usr/local/bin. The contents of /usr/local bin included items such as "prl_convert" and "prl_disk_tool". I don't believe any of these contents are related to SU2.

However, after I executed "sudo make install" and "ls /usr/local/bin", some of the contents include SU2-related material (i.e. SU2_CFD, SU2_DOT, merge_solution.py, compute_polar.py). These could be the binaries!
apscott2 is offline   Reply With Quote

Old   January 19, 2018, 05:44
Default
  #8
Member
 
Ole Burghardt
Join Date: Mar 2016
Location: Kiel, Germany
Posts: 60
Rep Power: 10
Sprotte is on a distinguished road
Yes, seems that you have missed an error message while "make install" saying that you need other rights to copy things to /usr/local/bin.

Now try

Code:
/usr/local/bin/SU2_CFD /path-to-your/inv_NACA0012.cfg
Sprotte is offline   Reply With Quote

Old   January 19, 2018, 12:26
Default
  #9
New Member
 
Austin Scott
Join Date: Jan 2018
Posts: 6
Rep Power: 8
apscott2 is on a distinguished road
Yes, I definitely did miss the previous error messages. My apologies for not noticing these at first.

After entering "/usr/local/bin/SU2_CFD /path-to-your/inv_NACA0012.cfg", the outputted text reads "cstr=mesh_NACA0012_inv.su2 ... There is no geometry file (GetnZone))!" The good news is that the .cfg file is now being executed. Thank you!!! Do you know what the aforementioned means?
apscott2 is offline   Reply With Quote

Old   January 19, 2018, 12:35
Default
  #10
Member
 
Ole Burghardt
Join Date: Mar 2016
Location: Kiel, Germany
Posts: 60
Rep Power: 10
Sprotte is on a distinguished road
Yes, you forgot to copy the mesh to the folder.

Alternatively switch to the right place in the QuickStart-tutorial.
apscott2 likes this.
Sprotte is offline   Reply With Quote

Old   January 19, 2018, 12:41
Default
  #11
New Member
 
Austin Scott
Join Date: Jan 2018
Posts: 6
Rep Power: 8
apscott2 is on a distinguished road
The mesh file was in the QuickStart folder when I entered that code. Also, the MESH_FILENAME variable in the .cfg file is set equal to "mesh_NACA0012_inv.su2". Is there another reason for the error message?
apscott2 is offline   Reply With Quote

Old   January 19, 2018, 12:52
Default
  #12
Member
 
Ole Burghardt
Join Date: Mar 2016
Location: Kiel, Germany
Posts: 60
Rep Power: 10
Sprotte is on a distinguished road
SU2 searches for the mesh file in the directory you are in.

Switch to the directory:
Code:
cd /Users/austinscott/SU2/QuickStart
(or any other directory where a config file with its mesh lies)

Start SU2:
Code:
/usr/local/bin/SU2_CFD inv_NACA0012.cfg
Sprotte is offline   Reply With Quote

Reply

Tags
.cfg, inv_naca0012.cfg, mac, quickstart, terminal


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
SU2 Quickstart case computation time increases in parallel wrik SU2 2 July 20, 2016 21:28
QuickStart gradients at low Mach numbers Ry10 SU2 0 May 11, 2016 17:09
about Quickstart risidual chenshuai000 SU2 0 April 7, 2016 00:09
CFX QuickStart Jenny CFX 3 April 8, 2007 11:36


All times are GMT -4. The time now is 15:55.