Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
d4fd4da1
Commit
d4fd4da1
authored
5 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Added description of the PartType2 in the ICs and snapshots.
parent
632c6d1e
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!884
Support for multiple softening lengths in the gravity solver
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/RTD/source/InitialConditions/index.rst
+21
-19
21 additions, 19 deletions
doc/RTD/source/InitialConditions/index.rst
doc/RTD/source/Snapshots/index.rst
+13
-11
13 additions, 11 deletions
doc/RTD/source/Snapshots/index.rst
with
34 additions
and
30 deletions
doc/RTD/source/InitialConditions/index.rst
+
21
−
19
View file @
d4fd4da1
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
doc/RTD/source/Snapshots/index.rst
+
13
−
11
View file @
d4fd4da1
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment