GADGET 2 portlet - SouthAfricaDigitalScience/GADGET-portlet GitHub Wiki

GADGET-2 portlet wiki

This is the wiki for the development of the GADGET-2 portlet.

Layout

The layout is discussed at https://moqups.com/brucellino/XuhvcGCM/p:af5c35454

Configuration and Execution of GADGET

Configuration takes place in two stages

  • initial conditions generation with MUSIC: requires a .conf file and creates a .dat file
  • creation of a parameter file which GADGET-2 will use as input to run. In order to run, GADGET needs both the initial conditions

Generation of the initial conditions file

We expect that the initial conditions file will be created in two ways :

  1. Upload of prewritten .conf file, provided by the user
  2. Generation of a .conf file, where users can tune options via sliders, checkboxes etc

An example of an initial conditions generation file (the .conf file) is below :

[setup]
boxlength		= 100
zstart			= 50
levelmin		= 7
levelmin_TF		= 8
levelmax		= 9
padding			= 8 
overlap			= 4
ref_center		= 0.5, 0.5, 0.5
ref_extent		= 0.2, 0.2, 0.2
align_top		= no
baryons			= no
use_2LPT		= no
use_LLA			= no
periodic_TF		= yes


[cosmology]
Omega_m			= 0.276
Omega_L			= 0.724
Omega_b			= 0.045
H0			= 70.3
sigma_8			= 0.811
nspec			= 0.961
transfer		= eisenstein

[random]
seed[7]			= 12345
seed[8]			= 23456
seed[9]			= 34567
seed[10]		= 45678
seed[11]		= 56789
seed[12]		= 67890


[output]
##generic MUSIC data format (used for testing)
##requires HDF5 installation and HDF5 enabled in Makefile
#format			= generic
#filename		= debug.hdf5

##ENZO - also outputs the settings for the parameter file
##requires HDF5 installation and HDF5 enabled in Makefile
#format			= enzo
#filename		= ic.enzo

##Gadget-2 (type=1: high-res particles, type=5: rest)
#format			= gadget2
#filename		= ics_gadget.dat

##Grafic2 compatible format for use with RAMSES
##option 'ramses_nml'=yes writes out a startup nml file
#format			= grafic2	
#filename		= ics_ramses
#ramses_nml		= yes

##TIPSY compatible with PKDgrav and Gasoline
#format			= tipsy
#filename		= ics_tipsy.dat

## NYX compatible output format
##requires boxlib installation and boxlib enabled in Makefile
#format			= nyx
#filename		= init

[poisson]
fft_fine		= yes
accuracy		= 1e-5
pre_smooth		= 3
post_smooth		= 3
smoother		= gs
laplace_order		= 6
grad_order		= 6

As you can see, there are several sections. These should be taken into account in the web interface, guiding the user through the selection of these parameters.