Skip to content

flexi-framework/galaexi

Repository files navigation

logo

license doi youtube userguide gallery

About

GALÆXI is a GPGPU-enabled extension of FLEXI, a high-order numerical framework for solving PDEs, with a special focus on Computational Fluid Dynamics. GALÆXI is based on the Discontinuous Galerkin Spectral Element Method (DGSEM), which allows for high-order of accuracy and fully unstructured hexahedral meshes. The solver is parallelized very efficiently for large-scale applications using MPI-aware CUDA Fortran and has demonstrated excellent scaling on over 1000 NVIDIA GPUs. Moreover, GALÆXI comes with a capable pre- and postprocessing suite that enables complex simulation setups up to the finished visualization.

GALÆXI has been developed by the Numerics Research Group (NRG) founded by Prof. Claus-Dieter Munz and currently lead by Prof. Andrea Beck at the Institute of Aerodynamics and Gasdynamics at the University of Stuttgart, Germany.

You can find detailed installation instructions, extensive documentation and several tutorial cases for GALÆXI here.

GALÆXI is Copyright (C) 2016, Prof. Claus-Dieter Munz and is released under the GNU General Public License v3.0. For the full license terms see the included license file.

Numerous people have worked on and with GALÆXI over the last years. We would like to thank all these contributors for their efforts they spent on building GALÆXI.

In case you have questions regarding GALÆXI or want to contribute yourself by either reporting bugs, requesting features or adding somthing different to the project, feel free to open an issue or pull request.

Cite

GALÆXI is a scientific project. If you use GALÆXI for publications or presentations in science, please support the project by citing it. As general reference, please cite

Kurz, M., Kempf, D., Blind, M., Kopper, P., Offenhäuser, P., Schwarz, A., Starr, S., Keim, J., Beck, A.,
GALÆXI: Solving complex compressible flows with high-order discontinuous Galerkin methods on accelerator-based systems,
ArXiv preprint, https://doi.org/10.48550/arXiv.2404.12703.

or use the following Bibtex files

@misc{galaexi,
  title  = {GAL{\AE}XI: Solving complex compressible flows with high-order discontinuous Galerkin methods on accelerator-based systems}, 
  author = {Daniel Kempf and Marius Kurz and Marcel Blind and Patrick Kopper and Philipp Offenhäuser and Anna Schwarz and Spencer Starr and Jens Keim and Andrea Beck},
  year   = {2024},
  doi    = {https://doi.org/10.48550/arXiv.2404.12703},
  note   = {Code available at \url{https://github.com/flexi-framework/galaexi}.}
}

To refer to specific applications and features, you can also cite the appropriate paper from this list.

Quick Start Guide

For a more detailed installation instructions, please see the documention here.

GALÆXI is tested for various Linux distributions including Ubuntu, OpenSUSE, CentOS and Arch. It currenly only supports offloading to NVIDIA GPUs. Also, compilation is currently only possible with the NVIDIA HPC SDK compilers (nvfortran). For installation you require the following dependencies:

Package Required Installed by GALÆXI
Git x
CMake x
C/C++ Compiler x
Fortran Compiler x
LAPACK x x
HDF5 x x
MPI (x)
CUDA x

The MPI library is only required for running parallel simulations on multiple ranks and the HDF5 and LAPACK libraries can be installed automatically during the GALÆXI build process. The names of the packages and the package manager might differ depending on the specific distribution used.

Getting the code

Open a terminal, download GALÆXI via git and optionally export the GALÆXI directory:

git clone https://github.com/flexi-framework/galaexi.git
export GALAEXI_DIR="$(pwd)/galaexi"

Compiling the code

Enter the GALÆXI directory, create a build directory and use CMake to configure and compile the code

cd $GALAEXI_DIR
mkdir build; cd build
cmake ../
make

The executable galaexi is now contained in the GALÆXI directory in build/bin/. Custom configurations of the compiler options, dependencies and code features can be set using

ccmake ../

Running the code

Navigate to the directory of the tutorial naca0012 and run GALÆXI

cd $GALAEXI_DIR/tutorials/naca0012
$GALAEXI_DIR/build/bin/galaexi parameter_flexi_navierstokes.ini

Used libraries

GALÆXI uses several external libraries as well as auxiliary functions from open source projects, including: