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
43da6f21
Commit
43da6f21
authored
3 years ago
by
Willem Elbers
Browse files
Options
Downloads
Patches
Plain Diff
Update documentation
parent
b632c10b
No related branches found
No related tags found
1 merge request
!1450
Implement additional neutrino models
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/RTD/source/Neutrinos/index.rst
+7
-3
7 additions, 3 deletions
doc/RTD/source/Neutrinos/index.rst
examples/parameter_example.yml
+1
-1
1 addition, 1 deletion
examples/parameter_example.yml
with
8 additions
and
4 deletions
doc/RTD/source/Neutrinos/index.rst
+
7
−
3
View file @
43da6f21
...
...
@@ -103,15 +103,19 @@ are:
dataset_delta_cdm: Functions/d_cdm # For linear response neutrinos, name of the dataset with the cdm density transfer function (N_z x N_k)
dataset_delta_baryon: Functions/d_b # For linear response neutrinos, name of the dataset with the baryon density transfer function (N_z x N_k)
dataset_delta_nu: Functions/d_ncdm[0] # For linear response neutrinos, name of the dataset with the neutrino density transfer function (N_z x N_k)
fixed_bg_density: 1 # For linear response neutrinos, whether to use a fixed present-day background density
In this example, the code reads an HDF5 file "perturb.hdf5" with transfer
functions. The file must contain a vector with redshifts of length :math:`N_z`,
a vector with wavenumbers :math:`N_k`, and three arrays with dimensions
:math:`N_z \times N_k` of density transfer functions for cdm, baryons, and
neutrinos respectively. It is recommended to store the units of the wavenumbers
as an attribute at "Units/Unit length in cgs (U_L)".
as an attribute at "Units/Unit length in cgs (U_L)". The `fixed_bg_density`
flag determines whether the linear response scales as :math:`\Omega_\nu(a)`
or the present-day value :math:`\Omega_{\nu,0}`, either of which may be
appropriate depending on the initial conditions.
Th
is
mode currently only supports degenerate mass models
with a single
neutrino transfer function.
Th
e linear response
mode currently only supports degenerate mass models
with a single
neutrino transfer function.
.. [#f1] Currently, it is not guaranteed that a particle ID is unique.
This diff is collapsed.
Click to expand it.
examples/parameter_example.yml
+
1
−
1
View file @
43da6f21
...
...
@@ -649,7 +649,7 @@ Neutrino:
use_delta_f
:
1
# Use the delta-f method for shot noise reduction
use_delta_f_mesh_only
:
0
# Use the delta-f method, but only in the mesh gravity calculation and outputs
generate_ics
:
0
# Automatically generate neutrino velocities at the start of the run
neutrino_seed
:
1234
# Seed used in the delta-f weighting step for Fermi-Dirac momentum generation
neutrino_seed
:
0
# Seed used in the delta-f weighting step for Fermi-Dirac momentum generation
use_linear_response
:
0
# Option to use the linear response method
transfer_functions_filename
:
perturb.hdf5
# For linear response neutrinos, path to an hdf5 file with transfer functions, redshifts, and wavenumbers
dataset_redshifts
:
Redshifts
# For linear response neutrinos, name of the dataset with the redshifts (a vector of length N_z)
...
...
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