|
[Sponsors] |
January 4, 2018, 16:21 |
QuickStart: Execute/Run inv_NACA0012.cfg
|
#1 |
New Member
Austin Scott
Join Date: Jan 2018
Posts: 6
Rep Power: 8 |
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! |
|
January 6, 2018, 08:22 |
|
#2 |
Member
Ole Burghardt
Join Date: Mar 2016
Location: Kiel, Germany
Posts: 60
Rep Power: 10 |
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 |
|
January 15, 2018, 22:13 |
Problems Persist
|
#3 |
New Member
Austin Scott
Join Date: Jan 2018
Posts: 6
Rep Power: 8 |
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! |
|
January 16, 2018, 17:47 |
|
#4 |
Member
Ole Burghardt
Join Date: Mar 2016
Location: Kiel, Germany
Posts: 60
Rep Power: 10 |
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 Code:
ls |
|
January 16, 2018, 22:27 |
|
#5 |
New Member
Austin Scott
Join Date: Jan 2018
Posts: 6
Rep Power: 8 |
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". |
|
January 17, 2018, 06:21 |
|
#6 | |
Member
Ole Burghardt
Join Date: Mar 2016
Location: Kiel, Germany
Posts: 60
Rep Power: 10 |
Quote:
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 Code:
sudo make install |
||
January 19, 2018, 00:23 |
|
#7 |
New Member
Austin Scott
Join Date: Jan 2018
Posts: 6
Rep Power: 8 |
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! |
|
January 19, 2018, 05:44 |
|
#8 |
Member
Ole Burghardt
Join Date: Mar 2016
Location: Kiel, Germany
Posts: 60
Rep Power: 10 |
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 |
|
January 19, 2018, 12:26 |
|
#9 |
New Member
Austin Scott
Join Date: Jan 2018
Posts: 6
Rep Power: 8 |
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? |
|
January 19, 2018, 12:35 |
|
#10 |
Member
Ole Burghardt
Join Date: Mar 2016
Location: Kiel, Germany
Posts: 60
Rep Power: 10 |
Yes, you forgot to copy the mesh to the folder.
Alternatively switch to the right place in the QuickStart-tutorial. |
|
January 19, 2018, 12:41 |
|
#11 |
New Member
Austin Scott
Join Date: Jan 2018
Posts: 6
Rep Power: 8 |
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?
|
|
January 19, 2018, 12:52 |
|
#12 |
Member
Ole Burghardt
Join Date: Mar 2016
Location: Kiel, Germany
Posts: 60
Rep Power: 10 |
SU2 searches for the mesh file in the directory you are in.
Switch to the directory: Code:
cd /Users/austinscott/SU2/QuickStart Start SU2: Code:
/usr/local/bin/SU2_CFD inv_NACA0012.cfg |
|
Tags |
.cfg, inv_naca0012.cfg, mac, quickstart, terminal |
|
|
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 |