Skip to content
Snippets Groups Projects
Commit f79402e4 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Moved the new example into the 'Cooling' category and made it non EAGLE specific.

parent 76187a09
Branches
Tags
1 merge request!760H and He Reionization heating
Showing
with 6 additions and 9 deletions
......@@ -22,7 +22,7 @@ TimeIntegration:
# Parameters governing the snapshots
Snapshots:
basename: eagle_cooling_box
basename: cooling_box
delta_time: 1.04
scale_factor_first: 0.00991
compression: 4
......@@ -42,9 +42,8 @@ SPH:
InitialConditions:
file_name: ./constantBox.hdf5 # The file to read
periodic: 1
cleanup_h_factors: 0 # Remove the h-factors inherited from Gadget
cleanup_velocity_factors: 0 # Remove the sqrt(a) factor in the velocities inherited from Gadget
# Parameters for the EAGLE chemistry
EAGLEChemistry: # Solar abundances
init_abundance_metal: 0.
init_abundance_Hydrogen: 0.752
......@@ -57,6 +56,7 @@ EAGLEChemistry: # Solar abundances
init_abundance_Silicon: 0.
init_abundance_Iron: 0.
# Parameters for the EAGLE cooling
EAGLECooling:
dir_name: ./coolingtables/
H_reion_z: 11.5
......
......@@ -9,7 +9,7 @@ fi
if [ ! -e coolingtables ]
then
echo "Fetching EAGLE Cooling Tables"
./getCoolingTable.sh
../getEagleCoolingTable.sh
fi
# Fetch the cooling tables
......@@ -20,7 +20,7 @@ then
fi
# Run SWIFT
../swift --hydro --cosmology --cooling --threads=4 eagle_cooling_box.yml 2>&1 | tee output.log
../../swift --hydro --cosmology --cooling --threads=4 const_cosmo_temp_evol.yml 2>&1 | tee output.log
# Plot the result
python3 plot_thermal_history.py eagle_cooling_box thermal_history_default_gadget2.pdf
python3 plot_thermal_history.py cooling_box
#!/bin/bash
wget http://virgodb.cosma.dur.ac.uk/swift-webstorage/CoolingTables/EAGLE/coolingtables.tar.gz
tar -xf coolingtables.tar.gz
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment