.. Running a zoom Will Roper, 14th March 2024 Running a Zoom Simulation ========================= Very little extra is needed to run a zoom simulation. All you need is the command line option, a set of zoom initial conditions, and the ``ZoomRegion`` parameter file block. Each of these is described below. Command Line Option ------------------- To tell SWIFT to run with a zoom region you simply include ``--zoom`` (or ``-z``) at runtime. This option can be combined with almost all other options, i.e. to run a zoom with the eagle model and 128 threads you can invoke ``swift --zoom --eagle -t 128 ``. Initial Conditions ------------------ The initial conditions should have all hydrodynamic particles stored under ``PartType0`` and all high resolution dark matter particles should be stored under ``PartType1``. All background dark matter particles should be stored under ``PartType2``. For further details on the initial conditions see their :doc:`docs <../InitialConditions/index>`. No extra data is needed in the initial conditions to run a zoom beyond the background particles. Parameter File -------------- The ``ZoomRegion`` parameter block is used to define the properties of the zoom region and background. An example is shown below. .. code-block:: yaml ZoomRegion: region_pad_factor: 1.1 bkg_top_level_cells: 16 zoom_top_level_depth: 2 buffer_top_level_depth: 0 neighbour_max_tree_depth: 2 bkg_subdepth_diff_grav: 3 The top 4 parameters here control the construction of the cell hierarchy enabling the efficient division of a zoom calculation (see the :doc:`cell docs ` for more information), while the latter 2 control the construction of tasks within the cell tree. Below is a description of each of these parameters. ``region_pad_factor`` ~~~~~~~~~~~~~~~~~~~~~ The extent of the zoom region is defined as the extent of the high resolution particle distribution mutliplied by ``region_pad_factor``. This is not to be confused with any padding applied during initial condition generation, that is naturally included in the high-resolution particle distribution. The ``region_pad_factor`` should be selected to be as small as possible while still providing a sufficient padding when running with hydrodynamics (see :doc:`Zoom Hydrodynamics