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
b1dd226e
Commit
b1dd226e
authored
6 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Updated the RTD with the new properties of the Initial conditions.
parent
57e47240
No related branches found
No related tags found
1 merge request
!642
Read the periodicity flag from the YAML file
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/RTD/source/InitialConditions/index.rst
+1
-12
1 addition, 12 deletions
doc/RTD/source/InitialConditions/index.rst
with
1 addition
and
12 deletions
doc/RTD/source/InitialConditions/index.rst
+
1
−
12
View file @
b1dd226e
...
...
@@ -117,15 +117,6 @@ GADGET-2 based analysis programs:
+ ``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
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
...
...
@@ -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).
+ ``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
the same even between particle types. The **IDs must be >
1
**.
0 or n
egative
the same even between particle types. The **IDs must be >
= 0
**.
N
egative
IDs will be rejected by the code.
+ ``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:
Flag_Entropy_ICs=0
NumPart_Total=[0, 1, 0, 0, 4, 5]
NumPart_Total_HighWord=[0, 0, 0, 0, 0, 0]
RuntimePars/
PeriodicBoundariesOn=1
Units/
Unit current in cgs (U_I)=1.0
Unit length in cgs (U_L)=1.0
...
...
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