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

Added description of the PartType2 in the ICs and snapshots.

parent 632c6d1e
Branches
Tags
1 merge request!884Support for multiple softening lengths in the gravity solver
...@@ -44,27 +44,29 @@ There are several groups that contain 'auxiliary' information, such as ...@@ -44,27 +44,29 @@ There are several groups that contain 'auxiliary' information, such as
the particles. Some types are currently ignored by SWIFT but are kept in the the particles. Some types are currently ignored by SWIFT but are kept in the
file format for compatibility reasons. file format for compatibility reasons.
+---------------------+------------------------+----------------------------+ +---------------------+------------------------+----------------------------------------+
| HDF5 Group Name | Physical Particle Type | In code ``enum part_type`` | | HDF5 Group Name | Physical Particle Type | In code ``enum part_type`` |
+=====================+========================+============================+ +=====================+========================+========================================+
| ``/PartType0/`` | Gas | ``swift_type_gas`` | | ``/PartType0/`` | Gas | ``swift_type_gas`` |
+---------------------+------------------------+----------------------------+ +---------------------+------------------------+----------------------------------------+
| ``/PartType1/`` | Dark Matter | ``swift_type_dark_matter`` | | ``/PartType1/`` | Dark Matter | ``swift_type_dark_matter`` |
+---------------------+------------------------+----------------------------+ +---------------------+------------------------+----------------------------------------+
| ``/PartType2/`` | Ignored | | | ``/PartType2/`` | Background Dark Matter | ``swift_type_dark_matter_background`` |
+---------------------+------------------------+----------------------------+ +---------------------+------------------------+----------------------------------------+
| ``/PartType3/`` | Ignored | | | ``/PartType3/`` | Ignored | |
+---------------------+------------------------+----------------------------+ +---------------------+------------------------+----------------------------------------+
| ``/PartType4/`` | Stars | ``swift_type_star`` | | ``/PartType4/`` | Stars | ``swift_type_star`` |
+---------------------+------------------------+----------------------------+ +---------------------+------------------------+----------------------------------------+
| ``/PartType5/`` | Black Holes | ``swift_type_black_hole`` | | ``/PartType5/`` | Black Holes | ``swift_type_black_hole`` |
+---------------------+------------------------+----------------------------+ +---------------------+------------------------+----------------------------------------+
The last column in the table gives the ``enum`` value from ``part_type.h`` The last column in the table gives the ``enum`` value from ``part_type.h``
corresponding to a given entry in the files. corresponding to a given entry in the files.
Note that the only particles that have hydrodynamical forces calculated between Note that the only particles that have hydrodynamical forces calculated
them are those in ``PartType0``. between them are those in ``PartType0``. The background dark matter
particles are used for zoom-in simulations and can have different masses
(and as a consequence softening length) within the ``/PartType2`` arrays.
Necessary Components Necessary Components
...@@ -137,8 +139,8 @@ individual particle type (e.g. ``/PartType0/``) that have the following *dataset ...@@ -137,8 +139,8 @@ individual particle type (e.g. ``/PartType0/``) that have the following *dataset
within [0, L)^3 where L is the side-length of the simulation volume. In the within [0, L)^3 where L is the side-length of the simulation volume. In the
case of cosmological simulations, these are the co-moving positions. case of cosmological simulations, these are the co-moving positions.
+ ``Velocities``, an array of shape (N, 3) that is the cartesian velocities of + ``Velocities``, an array of shape (N, 3) that is the cartesian velocities of
the particles. When running cosmological simulations, these are the peculiar the particles. When running cosmological simulations, these are the **peculiar
velocities. Note that this is different from GADGET which uses peculiar velocities**. Note that this is different from GADGET which uses peculiar
velocities divided by ``sqrt(a)`` (see below for a fix). velocities divided by ``sqrt(a)`` (see below for a fix).
+ ``ParticleIDs``, an array of length N that are unique identifying numbers for + ``ParticleIDs``, an array of length N that are unique identifying numbers for
each particle. Note that these have to be unique to a particle, and cannot be each particle. Note that these have to be unique to a particle, and cannot be
......
...@@ -107,17 +107,19 @@ There are several groups that contain 'auxiliary' information, such as ...@@ -107,17 +107,19 @@ There are several groups that contain 'auxiliary' information, such as
the particles. The type use the naming convention of Gadget-2 (with the particles. The type use the naming convention of Gadget-2 (with
the OWLS and EAGLE extensions). the OWLS and EAGLE extensions).
+---------------------+------------------------+----------------------------+ +---------------------+------------------------+----------------------------------------+
| HDF5 Group Name | Physical Particle Type | In code ``enum part_type`` | | HDF5 Group Name | Physical Particle Type | In code ``enum part_type`` |
+=====================+========================+============================+ +=====================+========================+========================================+
| ``/PartType0/`` | Gas | ``swift_type_gas`` | | ``/PartType0/`` | Gas | ``swift_type_gas`` |
+---------------------+------------------------+----------------------------+ +---------------------+------------------------+----------------------------------------+
| ``/PartType1/`` | Dark Matter | ``swift_type_dark_matter`` | | ``/PartType1/`` | Dark Matter | ``swift_type_dark_matter`` |
+---------------------+------------------------+----------------------------+ +---------------------+------------------------+----------------------------------------+
| ``/PartType4/`` | Stars | ``swift_type_star`` | | ``/PartType2/`` | Background Dark Matter | ``swift_type_dark_matter_background`` |
+---------------------+------------------------+----------------------------+ +---------------------+------------------------+----------------------------------------+
| ``/PartType5/`` | Black Holes | ``swift_type_black_hole`` | | ``/PartType4/`` | Stars | ``swift_type_star`` |
+---------------------+------------------------+----------------------------+ +---------------------+------------------------+----------------------------------------+
| ``/PartType5/`` | Black Holes | ``swift_type_black_hole`` |
+---------------------+------------------------+----------------------------------------+
The last column in the table gives the ``enum`` value from ``part_type.h`` The last column in the table gives the ``enum`` value from ``part_type.h``
corresponding to a given entry in the files. corresponding to a given entry in the files.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment