diff --git a/examples/EAGLE_100/README b/examples/EAGLE_100/README new file mode 100644 index 0000000000000000000000000000000000000000..e3af3c0e1281f8e9ba9e0aae3fa6dd8475359a47 --- /dev/null +++ b/examples/EAGLE_100/README @@ -0,0 +1,16 @@ +ICs extracted from the EAGLE suite of simulations. + +WARNING: The ICs are 217GB in size. They contain ~3.4G DM particles, +~3.2G gas particles and ~170M star particles + +The particle distribution here is the snapshot 27 (z=0.1) of the 100Mpc +Ref-model. h- and a- factors from the original Gadget code have been +corrected for. Variables not used in a pure hydro & gravity code have +been removed. +Everything is ready to be run without cosmological integration. + +The particle load of the main EAGLE simulation can be reproduced by +running these ICs on 4096 cores. + +MD5 checksum of the ICs: +2301ea73e14207b541bbb04163c5269e EAGLE_ICs_100.hdf5 diff --git a/examples/EAGLE_100/eagle_100.yml b/examples/EAGLE_100/eagle_100.yml new file mode 100644 index 0000000000000000000000000000000000000000..a9b83b81f085e66b36d115c5265b66d6093ffdfb --- /dev/null +++ b/examples/EAGLE_100/eagle_100.yml @@ -0,0 +1,35 @@ +# Define the system of units to use internally. +InternalUnitSystem: + UnitMass_in_cgs: 1.989e43 # 10^10 M_sun in grams + UnitLength_in_cgs: 3.085678e24 # Mpc in centimeters + UnitVelocity_in_cgs: 1e5 # km/s in centimeters per second + UnitCurrent_in_cgs: 1 # Amperes + UnitTemp_in_cgs: 1 # Kelvin + +# Parameters governing the time integration +TimeIntegration: + time_begin: 0. # The starting time of the simulation (in internal units). + time_end: 1e-2 # The end time of the simulation (in internal units). + dt_min: 1e-10 # The minimal time-step size of the simulation (in internal units). + dt_max: 1e-4 # The maximal time-step size of the simulation (in internal units). + +# Parameters governing the snapshots +Snapshots: + basename: eagle # Common part of the name of output files + time_first: 0. # Time of the first output (in internal units) + delta_time: 1e-3 # Time difference between consecutive outputs (in internal units) + +# Parameters governing the conserved quantities statistics +Statistics: + delta_time: 1e-2 # Time between statistics output + +# Parameters for the hydrodynamics scheme +SPH: + resolution_eta: 1.2348 # Target smoothing length in units of the mean inter-particle separation (1.2348 == 48Ngbs with the cubic spline kernel). + delta_neighbours: 0.1 # The tolerance for the targetted number of neighbours. + CFL_condition: 0.1 # Courant-Friedrich-Levy condition for time integration. + +# Parameters related to the initial conditions +InitialConditions: + file_name: ./EAGLE_ICs_100.hdf5 # The file to read + diff --git a/examples/EAGLE_100/getIC.sh b/examples/EAGLE_100/getIC.sh new file mode 100755 index 0000000000000000000000000000000000000000..227df3f9f79d294cd8ccbfd3b72b02dfbea2ebd6 --- /dev/null +++ b/examples/EAGLE_100/getIC.sh @@ -0,0 +1,2 @@ +#!/bin/bash +wget http://virgodb.cosma.dur.ac.uk/swift-webstorage/ICs/EAGLE_ICs_100.hdf5 diff --git a/examples/EAGLE_100/run.sh b/examples/EAGLE_100/run.sh new file mode 100755 index 0000000000000000000000000000000000000000..6ef47d5d98172cc8a318242923ede37332bd5590 --- /dev/null +++ b/examples/EAGLE_100/run.sh @@ -0,0 +1,11 @@ +#!/bin/bash + + # Generate the initial conditions if they are not present. +if [ ! -e EAGLE_ICs_100.hdf5 ] +then + echo "Fetching initial conditions for the EAGLE 100Mpc example..." + ./getIC.sh +fi + +../swift -s -t 16 eagle_100.yml 2>&1 | tee output.log +