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

Updated the RTD with the new properties of the Initial conditions.

parent 57e47240
Branches
Tags
1 merge request!642Read the periodicity flag from the YAML file
...@@ -117,15 +117,6 @@ GADGET-2 based analysis programs: ...@@ -117,15 +117,6 @@ GADGET-2 based analysis programs:
+ ``Time``, time of the start of the simulation in internal units or expressed + ``Time``, time of the start of the simulation in internal units or expressed
as a scale-factor for cosmological runs. SWIFT ignores this and reads it from as a scale-factor for cosmological runs. SWIFT ignores this and reads it from
the parameter file. the parameter file.
RuntimePars
~~~~~~~~~~~
In the ``/RuntimePars/``, the following attributes are required:
+ ``PeriodicBoundariesOn``, a flag to tell the code whether or not you
have periodic boundaries switched on. Again, this is historical; it should be
set to 1 (default) if you have the code running in periodic mode, or 0 otherwise.
Particle Data Particle Data
...@@ -145,7 +136,7 @@ individual particle type (e.g. ``/PartType0/``) that have the following *dataset ...@@ -145,7 +136,7 @@ individual particle type (e.g. ``/PartType0/``) that have the following *dataset
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
the same even between particle types. The **IDs must be >1**. 0 or negative the same even between particle types. The **IDs must be >= 0**. Negative
IDs will be rejected by the code. IDs will be rejected by the code.
+ ``Masses``, an array of length N that gives the masses of the particles. + ``Masses``, an array of length N that gives the masses of the particles.
...@@ -214,8 +205,6 @@ You should have an HDF5 file with the following structure: ...@@ -214,8 +205,6 @@ You should have an HDF5 file with the following structure:
Flag_Entropy_ICs=0 Flag_Entropy_ICs=0
NumPart_Total=[0, 1, 0, 0, 4, 5] NumPart_Total=[0, 1, 0, 0, 4, 5]
NumPart_Total_HighWord=[0, 0, 0, 0, 0, 0] NumPart_Total_HighWord=[0, 0, 0, 0, 0, 0]
RuntimePars/
PeriodicBoundariesOn=1
Units/ Units/
Unit current in cgs (U_I)=1.0 Unit current in cgs (U_I)=1.0
Unit length in cgs (U_L)=1.0 Unit length in cgs (U_L)=1.0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment