As discussed in the Lecture, there is a famous relation observed in galaxies relating the surface density of gas with the star formation rate: the so-called SK relation.
You can start from several initial conditions of idealized galaxies:
wget https://www.usm.uni-muenchen.de/~dolag/Lille2026/T07/7320c.datwget https://www.usm.uni-muenchen.de/~dolag/Lille2026/T07/7318b.datwget https://www.usm.uni-muenchen.de/~dolag/Lille2026/T07/7318a.datwget https://www.usm.uni-muenchen.de/~dolag/Lille2026/T07/7319.dat Preparing the simulation:
PERIODIC, NOGRAVITY, LONG_X/Y/Z in the Config.sh file.
COOLING and SFR and set GENERATIONS=4 in the Config.sh file and compile the code.
TREECOOL file from the OpenGadget3 directory into your simulation directory.
InitCondFileICFormat 1 if you’re using one of the initial-conditions files above;TimeMax 1TimeBetSnapshot 0.01PeriodicBoundariesOn 0PartAllocFactor 5.5
CoolingOn 1StarformationOn 1SofteningGas 0.02SofteningHalo 0.02SofteningDisk 0.02SofteningBulge 0.02SofteningStars 0.02SofteningGasMaxPhys 0.02SofteningHaloMaxPhys 0.02SofteningDiskMaxPhys 0.02SofteningBulgeMaxPhys 0.02SofteningStarsMaxPhys 0.02UnitLength_in_cm 3.085678e21UnitMass_in_g 1.989e43UnitVelocity_in_cm_per_s 1e5MaxSfrTimescale 1.5 and see what is changing.
ntasks=8 and cpus-per-task=4 for the optimal performance.
wget https://www.usm.uni-muenchen.de/~dolag/Lille2026/T07/show_galaxy.py
python3 show_galaxy.py

wget https://www.usm.uni-muenchen.de/~dolag/Lille2026/T07/show_sk.py
python3 show_sk.py
You can additionally switch on the kinetic feedback and see what happens, especially if now a galactic outflow/wind is established.
WINDS in the Config.sh file.
WindEfficiency 2.0WindFreeTravelMaxTimeFactor 0.025WindEnergyFraction 0.5WindFreeTravelDensFac 0.5docker run -it -v :/mnt --name opengadget3_container opengadget3:XXX
docker exec -it opengadget3_container bash
cp -r ~/OpenGadget3 .
wget https://www.usm.uni-muenchen.de/~dolag/Hydro/Hydro/Config.sh
wget https://www.usm.uni-muenchen.de/~dolag/Hydro/Hydro/box.param
source Build/Container_build.sh
make -j
mpiexec -np 2 OpenGadget3/OpenGadget3 box.param