CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   SU2 Installation (https://www.cfd-online.com/Forums/su2-installation/)
-   -   Best OS to run SU2 solver? (https://www.cfd-online.com/Forums/su2-installation/133624-best-os-run-su2-solver.html)

mmcap64 April 17, 2014 12:49

Best OS to run SU2 solver?
 
Is it necessary to run SU2 solver on linyx OS? Surely the solver can be run on a windows 7 or 8 OS since there appears to be downloads for “Windows”. Is using linyx easier than windows? I have downloaded the “Windows” version, the full sorce code, test cases, and paraview. I have tried numerous times to start the quick start tutorial but was never able to find the appropriate place to “run” the solver. It keeps giving me an error. The guy at work who functions as the IT guy couldn’t seem to make anything work in win7 either. Im sure I am overlooking something very simple. Any help with setting up the tutorial solver in windows would be greatly appreciated. I am willing to install linyx if it is easier to use than win7 or win8.

shirazbj April 18, 2014 05:59

Quote:

Originally Posted by mmcap64 (Post 486765)
I have tried numerous times to start the quick start tutorial but was never able to find the appropriate place to “run” the solver. It keeps giving me an error.

What error you got?

You can copy the solver, the cfg and the grid file all under one folder. Then run.

mmcap64 April 29, 2014 11:22

Error
 
How do you “RUN” the solver? I have the full source code, the full set of test cases, notepad++ , and paraview all contained in the same folder. I open the “ inv_NACA0012.cfg” file in notepad++ and set the output to paraview. Then if I open a command prompt inside notepad++ and type “SU2_CFD inv_NACA0012.cfg” exactly as instructed in the users manual, all I get is, ‘SU2_CFD’ is not recognized as an internal or external command, operable program or batch file. This computer Has windows 8 if that makes any difference.

ceanwang April 29, 2014 23:29

Quote:

Originally Posted by mmcap64 (Post 488947)
How do you “RUN” the solver? I have the full source code, the full set of test cases, notepad++ , and paraview all contained in the same folder. I open the “ inv_NACA0012.cfg” file in notepad++ and set the output to paraview. Then if I open a command prompt inside notepad++ and type “SU2_CFD inv_NACA0012.cfg” exactly as instructed in the users manual, all I get is, ‘SU2_CFD’ is not recognized as an internal or external command, operable program or batch file. This computer Has windows 8 if that makes any difference.

If you only have the source code, you have to compile it first.
In your command window, it is looking for a su2_cfd.exe file.
Use "dir" to list if you have that su2_cfd.exe file.

If you don't have that, download the binary version. You don't need the source code to run it.

Buxxy July 12, 2014 09:12

Is the SU2 executable path added to the PATH environment variable? That is what was missing for me.

I don't believe this is in the documentation? However, I believe I had an environment variable editor open and saved something during installation, so it may have been my own fault.

remir March 15, 2015 07:32

Hello,

I am new to SU2 and am facing the same problem you had, even though I think I have set up the environment variable as explained in https://github.com/su2code/SU2/wiki/...s-Installation.

Maybe the problem comes from windows 8(.1).

Any idea on how to fix this?

Edit: adding to system variable /path also solved this problem.

Using python scripts is still challenging though. Do I have to place the file.py in the same directory as the working directory when trying to solve tutorial 7 (rotating airfoil ) ? I also added the python.exe to my path. The error I get is:
python: can't open file 'shape_opimization.py': [Errno 2] No such file or directory.


All times are GMT -4. The time now is 03:08.