Main paper

The main paper of SPHYNX has been accepted for publication in A&A. You can check the pre-print here (PDF - 10 MB)



Welcome to SPHYNX!

SPHYNX is an SPH hydrocode with its focus on Astrophysical applications.

SPHYNX includes state-of-the-art methods that allow it to address subsonic hydrodynamical instabilities and strong shocks, which are ubiquitous in astrophysical scenarios. SPHYNX, is of Newtonian type and grounded on the Euler-Lagrange formulation of the smoothed-particle hydrodynamics technique. Its distinctive features are:

  • the use of an integral approach to estimating the gradients;
  • the use of a flexible family of interpolators called sinc kernels, which suppress pairing instability;
  • and the incorporation of a new type of volume elements which provides a better partition of the unity. Unlike other modern formulations, which consider volume elements linked to pressure, our volume element choice relies in density. SPHYNX is, therefore, a density-based SPH code.

Download SPHYNX

To download SPHYNX please, fill out the form below.

This is a basic version of SPHYNX 3D. It includes a 3D gravity solver and the hydrodynamic modules. This version is prepared to simulate an Evrard Collapse.

SPHYNX is released under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

If you use SPHYNX please, cite the main paper Astronomy & Astrophysics (now in forthcoming papers). We would also be very happy to see which exciting results you achieve with our code, so pictures, videos, and references are welcome, so that we can publish them here.

* Required fields

Published papers that use/acknowledge SPHYNX

An advanced leakage scheme for neutrino treatment in astrophysical simulations.
Perego, A.; Cabezón, R. M.; Käppeli, R.
Astrophysical Journal Supplement Series, 223, 22 (2016)

Type Ia Supernovae: Can Coriolis force break the symmetry of the gravitational confined detonation explosion mechanism?
García-Senz, D.; Cabezón, R. M.; Domínguez, I.; Thielemann, F. K. 
Astrophysical Journal, 819, 132 (2016)

Equalizing resolution in smoothing particle hydrodynamics calculations using self-adaptive sinc kernels.
García-Senz, D.; Cabezón, R. M.; Escartín, J. A.; Ebinger, K. 
Astronomy & Astrophysics, 570, A14 (2014)

High resolution simulations of the head-on collision of white dwarfs.
García-Senz, D.; Cabezón, R. M.; Arcones, A.; Relaño, A.; Thielemann, F.-K. 
MNRAS, 436, 3413 (2013)

Smoothed Particle Hydrodynamics: checking a tensor approach to calculating gradients.
Escartín, J. A.; García-Senz, D.; Cabezón R. M. 
Highlights of Spanish Astrophysics VII.
Proceedings of the X Scientific Meeting of the Spanish Astronomical Society

Testing the concept of integral approach to derivatives within the smoothed particle hydrodynamics technique in astrophysical scenarios.
Cabezón, R. M.; García-Senz, D.; Escartín J. A. 
Astronomy & Astrophysics, 545, A112 (2012)

Improving smoothed particle hydrodynamics with an integral approach to calculating gradients.
García-Senz, D.; Cabezón, R. M.; Escartín, J. 
Astronomy & Astrophysics, 538, A9 (2012)



The main authors of SPHYNX are Rubén M. Cabezón and Domingo García-Senz.

For questions, bug-reports, and/or suggestions you can contact them writting an email to:

  • ruben.cabezon <at>
  • domingo.garcia <at>

Installation instructions and pre-requisites

Installing SPHYNX is very easy:

  1. After downloading SPHYNX, uncompress it with
    tar xjvf sphynx-<version>.tar.bz2
  2. This will create a directory named SPHYNX-<version>
  3. Done!

In order to run SPHYNX you need a fortran compiler and an MPI library. Current version has been tested with Intel cluster compiler and GNU fortran compiler.


SPHYNX takes part on the SPH-EXA project, founded by the Platform fro Advanced Scientific Computing (PASC), aiming at the development of a scalable and fault tolerant SPH co-design code that can benefit from the next generation Exascale supercomputers.


Latest news about SPHYNX



14. Aug:

SPHYNX has a logo! Which is basically a cool font that I found, named Space Age (by Justin Callaghan), literally in page one of sci-fi fonts in I like it because it has some dots that resemble SPH particles, the letters are smooth (as SPH), and the X reminds me of a sketch of an accretting neutron star with a disk...

11. Aug:

Version 1.2 released! Not big changes, apart from an OMP loop that I changed from dynamic to static schedule. This was probably lingering around from an older version of the code, and correcting it improved the overall time in the Evrard test a 10%. I also added GNU support. Not bad for just coming from holidays!

18. Jul:

Version 1.1 released! Several updates in many files, where a simple bug on the output was solved. Now the tar ball includes a README with detailed information about the changes in the code.

1. Jul:

SPHYNX paper has been accepted by A&A. Woohoo! Nice way of starting the month.

9. Jun:

Version 1.0 of the documentation is now available, including a short tutorial on how to modify the code to perform a 3D shock-bubble interaction test. ICs are also provided.

2. Jun:

SPHYNX is publicly released. Version 1.0 can be downloaded from our brand new website.