This page will help you with installing SU2, as well as provide specific help with the way we use SU2.
The Big Picture
Need to compile the code in order to run the solver. Once compiled for either a serial or multi-core system, you can run the CFD solver. The solver requires two inputs: a mesh grid and a configuration file.
- Will add a few templates once we figure out realistic configuration cases for our rockets.
- Will add a sample mesh once we have one.
Installation on personal computer
- Learn how to navigate around your computer using just your terminal
- Understand how to edit .bashrc files
- Understand how to change path variables in your terminal
- If not compiling with cygwin due to some carriage return error, add this to your .bash_profile script (in your home directory)
set -o igncr
Install cygwin with g++, gcc, make, and cpp packages. You need to be able to compile C++ code. Need to figure which exact packages.
Mac and Linux
You already have a compiler, so download source code zip, unzip, and follow the tutorial on SU2’s site.
Installation in Corn
Don’t bother attempting to move files around with Filezilla. Login to a VNC session and execute the
firefox command in the terminal. Go to SU2's github repository and download everything there. Navigate to the zip file and
unzip the files. Navigate to the new path and execute these commands:
./configure --prefix="/afs/.ir/users/i/a/iangomez/SU2compiled/" CXXFLAGS="-03" --enable-mpi --with-cc=/usr/bin/mpicc --with-cxx=/usr/bin/mpicxx
make -j 8 install
Note: change the prefix to your directory! If you’re confused by this read
./configure --help or email Ian or your RCC.
Once it’s compiled, you need to add the export commands they give you to your .bashrc file:
And obviously, change the paths to be correct. In order to find your .bashrc and open it in terminal:
Or you can open it in the GUI, by going to your home directory and pressing ctrl+h in order to show hidden files. Then double click your .bashrc file and add the specified lines. Make sure to execute the bash file to get the
At this point, you will be able to run the code from any directory. However, if the files aren't executing, you can change their permissions to make them executables. Go to the directory where you’ve compiled SU2 and run the following command on each module, like this:
corn17:~/SU2compiled/bin> chmod +x SU2_CFD
Running sample code
The tutorial is really great. Read it. But also make sure to grab the sample mesh files from the separate test case repository: Link to SU2 Testcase meshes You will need it to run the config files that come pre-prepped for you.