# Define some meta-data about the simulation
MetaData:
  run_name:   Santa-Barbara cluster comparison project 256^3

# Define the system of units to use internally. 
InternalUnitSystem:
  UnitMass_in_cgs:     1.98841e43    # 10^10 Msun 
  UnitLength_in_cgs:   3.08567758e24 # 1 Mpc 
  UnitVelocity_in_cgs: 1e5           # 1 km/s 
  UnitCurrent_in_cgs:  1             # Amperes
  UnitTemp_in_cgs:     1             # Kelvin

# Cosmological parameters
Cosmology:
  h:              0.5        
  a_begin:        0.047619048        # z_ini = 20
  a_end:          1.0                # z_end = 0
  Omega_cdm:      0.9        
  Omega_lambda:   0.0        
  Omega_b:        0.1        
  
# Parameters governing the time integration
TimeIntegration:
  dt_max:     0.01
  dt_min:     1e-10

Scheduler:
  max_top_level_cells: 16
  cell_split_size:     100

# Parameters governing the snapshots
Snapshots:
  basename:            santabarbara 
  scale_factor_first:  0.05
  delta_time:          1.02

# Parameters governing the conserved quantities statistics
Statistics:
  delta_time:           1.02
  scale_factor_first:   0.05

# Parameters for the self-gravity scheme
Gravity:
  eta:                      0.025
  MAC:                      adaptive
  theta_cr:                 0.7
  epsilon_fmm:              0.001
  use_tree_below_softening: 1
  comoving_DM_softening:         0.01    # 10 kpc = 1/25 mean inter-particle separation
  max_physical_DM_softening:     0.00263 # 10 ckpc = 2.63 pkpc at z=2.8 (EAGLE-like evolution of softening).
  comoving_baryon_softening:     0.01    # 10 kpc = 1/25 mean inter-particle separation
  max_physical_baryon_softening: 0.00263 # 10 ckpc = 2.63 pkpc at z=2.8 (EAGLE-like evolution of softening).
  mesh_side_length:       256

# Parameters of the hydro scheme
SPH:
  resolution_eta:      1.2348   # "48 Ngb" with the cubic spline kernel
  h_min_ratio:         0.1
  CFL_condition:       0.1
  initial_temperature: 1200.    # (1 + z_ini)^2 * 2.72K
  minimal_temperature: 100.

# Parameters related to the initial conditions
InitialConditions:
  file_name:  ./SantaBarbara_256.hdf5
  periodic:   1
  cleanup_h_factors: 1              # ICs were generated for Gadget, we need to get rid of h-factors
  cleanup_velocity_factors: 1       # ICs were generated for Gadget, we need to get rid of sqrt(a) factors in the velocity
  generate_gas_in_ics: 1            # Generate gas particles from the DM-only ICs
  cleanup_smoothing_lengths: 1      # Since we generate gas, make use of the (expensive) cleaning-up procedure.

# Impose primoridal metallicity
EAGLEChemistry:
  init_abundance_metal:     0.0
  init_abundance_Hydrogen:  0.752
  init_abundance_Helium:    0.248
  init_abundance_Carbon:    0.0
  init_abundance_Nitrogen:  0.0
  init_abundance_Oxygen:    0.0
  init_abundance_Neon:      0.0
  init_abundance_Magnesium: 0.0
  init_abundance_Silicon:   0.0
  init_abundance_Iron:      0.0

EAGLECooling:
  dir_name:                ./coolingtables/
  H_reion_z:               11.5 
  H_reion_eV_p_H:          2.0
  He_reion_z_centre:       3.5
  He_reion_z_sigma:        0.5
  He_reion_eV_p_H:         2.0

