Aerospace Design Lab Logo
Skip to end of metadata
Go to start of metadata

Quick Links for Installation

Building from source: refer to the Source Installation Guide.

Windows users: please refer to the Windows Installation Guide.

Installing SU2

SU2 has been designed with ease of installation and use in mind. This means that, wherever possible, a conscious effort was made to develop in-house code components rather than relying on third-party packages or libraries. In many cases, the flow solver can be compiled and executed with just a free C++ compiler and a way in which to visualize the results. However, the capabilities of SU2 can be extended with external software. For example, parallel computations require an installed implementation of MPI (Message Passing Interface) for data communication. Again, to facilitate ease of use and to promote the open source nature, whenever external software is required within the SU2 suite, packages that are free or open source have been favored. These dependencies and third-party packages are discussed below.

Building from source: refer to the Source Installation Guide. This is the typical install method for Linux/Mac OS X.

The binary executables available on the Download page are intended to get new users up and running as quickly as possible. This option is best for novice CFD users or those looking to quickly sample some of the features of SU2. To make these binary distributions available to a wide range of potential users, some advanced features requiring external libraries and dependencies have been disabled (most notably the ability to run simulations in parallel). In other words, the pre-compiled binary executables are simply the serial version of the SU2 C++ modules.

No compilation is required for users who select the binary distribution of SU2. Simply install the binaries, open a terminal, and proceed to the Quick Start Tutorial. Binaries are available for multiple platforms, including installers for Windows.

Windows users: please refer to the Windows Installation Guide. 

Required Software for Running SU2

Command Line Terminal

In general, all SU2 execution will occur via command line arguments within a terminal. For Unix/Linux or Mac OS X users, the native terminal applications will be needed. For Windows users, Console is recommended.

Data Visualization

Users of SU2 require a data visualization tool to post-process solution files. The software currently supports .vtk and .plt output formats natively read by ParaView and Tecplot, respectively. ParaView provides full functionality for data visualization and is freely available under an open source license. Tecplot is a commercially-licensed software package widely used by the scientific computing community and is available for purchase. Some SU2 result files are also output to comma-separated value (CSV) files, which can be read by a number of software packages. Furthermore, CGNS output files can also be generated, which can be read by a number of other visualization packages. The two most typical packages used by the development team are the following:

Optional Third-Party Software

Although not required, several third-party packages help extend the capabilities of SU2 for particular purposes.  Details of the capabilities enabled in SU2 by adding the packages and how to obtain them are given here.

Grid Generation

Users wishing to perform analyses on their own meshes must have a means of generating them. The native SU2 grid format is designed for readability and ease of use, so users with simple computational domains can write scripts to generate the appropriate meshes (and some example scripts are provided on the mesh files page). For more complex configurations, grid generation software is recommended (with capability to export to SU2 or CGNS file formats). Several open-source and commercial products are available, and a list of those used by the development team are included below.

  • Pointwise/Gridgen (Direct export to the SU2 native mesh format is available within Pointwise V17 and greater)
  • Gmsh
  • ICEM CFD
  • Gambit
  • Cubit

Note that there are also a number of excellent contributions from the open-source community for creating and converting meshes between various formats (e.g., OpenFOAM to SU2 formats). The developers encourage members of the community to share their contributions in this regard, and many of these contributions can be found in the threads of the SU2 forum on CFD Online.

CGNS Library

To make creating your own meshes more easier and more accessible, support for the open CGNS data standard has been including within SU2. The main advantage gained here is that complex meshes created in a third party software package (one that supports unstructured CGNS file export) can be used directly within SU2 without the need for conversion to the native format. If needed, a converter from CGNS to the .su2 format has been built into SU2 as well. Users should obtain and follow the instructions supplied for building the CGNS library (Version 3.1.4 recommended) from the official CGNS site. Details on compiling with and using the CGNS library for mesh input can be found on the documentation page concerning meshes.

Parallel Tools

Users wishing to run simulations on parallel architectures using domain decomposition will need an implementation of the Message Passing Interface (MPI) standard, and the domain decomposition is performed using the METIS software package. METIS comes packaged with the SU2 source code in the externals/ directory, and it will be automatically built and linked during the configure - make - make install process with the autotools (see the instructions for installation from source). A variety of implementations of the MPI standard exist, and they can often be installed using package managers on Linux or Mac OS X. Alternatively, users can download and build their own MPI implementations from source. The following are some well-known, freely-available implementations of MPI:

Python & Python Modules

Each of the C++ modules for SU2 can be called directly from the command line and do not require Python (even for parallel calculations with MPI). However, the coupling of the C++ modules needed for design and optimization problems can be automated by the execution of the appropriate Python scripts included in the software distribution. For performing shape design, the shape_optimization.py script is available, but this script has additional dependencies on the NumPy and SciPy modules for scientific computing in Python (including optimization routines in the SciPy library). These packages are freely available at the sites linked below:

Alternatively, Python and these packages can be found in prebuilt installations, such as the Canopy scientific Python distribution by Enthought, or from package managers like Homebrew for Mac OS X.

 

  • No labels