Model data from the plots in Henriques et al. 2020


Fig. 3, Resolution tests:




Fig. 4, Stellar Mass Function:




Fig. 5, Red Fraction vs StellarMass:




Fig. 6, SSFR histograms:




Fig. 8, SFRD:




Fig. 9, HI Mass Function:




Fig. 10, Gas Fractions vs StellarMass:




Fig. 11, HI/Mag_r histograms:




Fig. 12, H2 density:




Fig. 13, Gas Metallicity vs StellarMass:




Fig. 14, Stellar Metallicity vs StellarMass:




Fig. 16, Sizes vs StellarMass:




Fig. 17, Morphology vs StellarMass:




Fig. 19, Milky Way Gradients:




Fig. 20, Sigma_* Gradients:




Fig. 20, Stellar Metallicity Gradients:




Fig. 20, SigmaGas Gradients:




Fig. 20, Gas Metallicity Gradients:


Before running the Henriques et al. 2020 model

If you are not familiar with the structure of L-Galaxies it is much easier to start with the Henriques2015 version. The documentation for Henriques2020 assumes that the user can run previous versions of the model.

The source code can be downloaded from the L-Galaxies GitHub Repository: LGalaxies_Repository

Compiling the code

To Switch from Henriques2015 to Henriques2020, only 2 aditional makefile options are needed (and respective sub-options):

An example My_Makefile_options file can be found in ./Makefile_options/Makefile_options_Henriques20

Running the code

After the code has been compiled, an executable called L-Galaxies will be created. To run the code simply execute the file in the command line giving it an input.par file as a runtime argument:

./L-Galaxies ./input/input_Henriques2020_MR_W1_PLANCK.par

With this input file, as downloaded from the online repository, you will be running exactly the Henriques2020 version of L-Galaxies.

The variables FirstFile and LastFile, in the input file, define the first and last dark matter merger tree files in which the galaxy formation model will be run. These correspond to sub-volumes of the dark matter simulation. As default, only file 5 is computed (a subvolume roughly representative of the full simulation) but you have files 0-9 in the download package (the full Millennium simulation ocrresponds to files 0-511).

Analysing the Output

The output format changes with different makefile options and as you run different models. The following file can be used to read in the galaxy structure saved by the default version of the model: LGalaxies_Henriques2020_struct.py

Credits & Copyright

The source code for the Munich model of galaxy formation and evolution, L-Galaxies, is published under the GNU General Public License. If you make use of the code in a scientific paper, please include the following line in the acknowledgements:

"This work used the 2020 public version of the Munich model of galaxy formation and evolution: L-Galaxies. The source code and a full description of the model are available at https://lgalaxiespublicrelease.github.io/"