How to install Stanford SU2 in Ubuntu
SU2 is an open-source fully unstructured CFD code written and maintained by Stanford University from AeroAstro faculty. The advantage for aerospace engineers and researchers around the world is the ability to do a lot of external aerodynamics computations out of the box. OpenFOAM is yet another beautiful open-source CFD code. But it is kept as a general-purpose code. SU2, on the other hand, has features like lift and drag monitors, design optimization tools available out of the box with an option to do simple python scripting. SU2 also allows for parallel computation and has CGNS mesh support which only makes it all the more awesome. There is a new plugin in gmsh which allows exporting unstructured meshes in native su2 mesh extension. I would recommend running SU2 on Ubuntu because it is effortless to install and maintain. I would also recommend taking a look at GridPro for generation meshes for SU2.
Stanford SU2 V4.0 ( Cardinal ) — Parallel
I have written an automated installer in `bash' for ubuntu / any Debian based distro. Its has helped a lot of people. But many have reported bugs which I have fixed over time too. So I kindly request you to report any bugs to me. It has been tested well in a Ubuntu 14.04 Virtual machine. I have made a few changes to make sure it works in Ubuntu 16.04 LTS too. I test my scripts on Vagrant. Suppose any of you people wanted to try the script before installing. I would advise you to spin up a vagrant environment and test it there. As any software goes, there will always be bugs. Hence you are free to contact me anytime you encounter an error.
To install the above script, enter the following command in your terminal. I have recently moved some packages to my servers since other services keep taking their servers down / they fail to maintain proper SSL certificates.
wget https://git.io/vpgbu -O su2.sh chmod +x su2.sh sudo ./su2.sh
If you prefer doing the installation manually, download the script to take a look through the various steps.
Here are some useful resources that I maintain on my own.
I am not a fan of shell scripting. The good news is that all Linux distros now have python available as a part of the operating system. Hence I will be moving all of my scripts eventually to python in future. Python allows me to see through the bullshit of different shells. It is tough otherwise to write generic shell scripts and make sure they run entirely on any machine irrespective of the shell.
Stanford SU2 V5.0 ( Raven ) — Serial
The lovely people in SU2 development team started providing precompiled binaries for Ubuntu and Redhat. These binaries should cover most of the distros. For people who are still too lazy to install the binary version on their own can make use of the script shown below.
wget https://goo.gl/pEBKKb -O su2_serial_v50.py python su2_serial_v50.py
Note: Most / all of the stuff in this article might be useless at this point. So, please do not ask me to update or maintain these anymore.