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
b6c6b2cb
Commit
b6c6b2cb
authored
6 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Document the amount of energy injected by H reionization in the RTD.
parent
8eee0a80
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!760
H and He Reionization heating
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/RTD/source/SubgridModels/EAGLE/index.rst
+11
-6
11 additions, 6 deletions
doc/RTD/source/SubgridModels/EAGLE/index.rst
src/cooling/EAGLE/cooling.c
+5
-5
5 additions, 5 deletions
src/cooling/EAGLE/cooling.c
with
16 additions
and
11 deletions
doc/RTD/source/SubgridModels/EAGLE/index.rst
+
11
−
6
View file @
b6c6b2cb
...
@@ -280,7 +280,7 @@ these elements from the abundance of `Si`. More specifically, we assume that
...
@@ -280,7 +280,7 @@ these elements from the abundance of `Si`. More specifically, we assume that
their abundance by mass relative to the table's solar abundance pattern is the
their abundance by mass relative to the table's solar abundance pattern is the
same as the relative abundance of `Si` (i.e. :math:`[Ca/Si] = 0` and
same as the relative abundance of `Si` (i.e. :math:`[Ca/Si] = 0` and
:math:`[S/Si] = 0`). Users can optionally modify the ratios used for `S` and
:math:`[S/Si] = 0`). Users can optionally modify the ratios used for `S` and
`Ca`.
`Ca`.
Note that we use the *smoothed* abundances of elements for all calculations.
Above the redshift of Hydrogen re-ionization we use the extra table containing
Above the redshift of Hydrogen re-ionization we use the extra table containing
net cooling rates for gas exposed to the CMB and a UV + X-ray background at
net cooling rates for gas exposed to the CMB and a UV + X-ray background at
...
@@ -288,9 +288,13 @@ redshift nine truncated above 1 Rydberg. At the redshift or re-ionization, we
...
@@ -288,9 +288,13 @@ redshift nine truncated above 1 Rydberg. At the redshift or re-ionization, we
additionally inject a fixed user-defined amount of energy per unit mass to all
additionally inject a fixed user-defined amount of energy per unit mass to all
the gas particles.
the gas particles.
In addition to the tables we inject extra energy from Helium re-ionization using
In addition to the tables we inject extra energy from Helium II re-ionization
a Gaussian model with a user-defined redshift for the centre, width and total
using a Gaussian model with a user-defined redshift for the centre, width and
amount of energy injected per unit mass.
total amount of energy injected per unit mass. Additional energy is also
injected instantaneously for Hydrogen re-ionisation to all particles (active and
inactive) to make sure the whole Universe reaches the expected temperature
quickly (i.e not just via the interaction with the now much stronger UV
background).
For non-cosmological run, we use the :math:`z = 0` table and the interpolation
For non-cosmological run, we use the :math:`z = 0` table and the interpolation
along the redshift dimension then becomes a trivial operation.
along the redshift dimension then becomes a trivial operation.
...
@@ -326,7 +330,7 @@ they are listed for every gas particle:
...
@@ -326,7 +330,7 @@ they are listed for every gas particle:
+---------------------+-------------------------------------+-----------+-------------------------------------+
+---------------------+-------------------------------------+-----------+-------------------------------------+
Note that if one is running without cooling switched on at runtime, the
Note that if one is running without cooling switched on at runtime, the
temperatures can be computed by passing the ``--temp
a
rature`` runtime flag (see
temperatures can be computed by passing the ``--temp
e
rature`` runtime flag (see
:ref:`cmdline-options`). Note that the tables then have to be available as in
:ref:`cmdline-options`). Note that the tables then have to be available as in
the case with cooling switched on.
the case with cooling switched on.
...
@@ -341,9 +345,10 @@ implicit problem. A valid section of the YAML file looks like:
...
@@ -341,9 +345,10 @@ implicit problem. A valid section of the YAML file looks like:
EAGLECooling:
EAGLECooling:
dir_name: /path/to/the/Wiersma/tables/directory # Absolute or relative path
dir_name: /path/to/the/Wiersma/tables/directory # Absolute or relative path
H_reion_z: 11.5 # Redhift of Hydrogen re-ionization
H_reion_z: 11.5 # Redhift of Hydrogen re-ionization
H_reion_ev_p_H: 2.0 # Energy injected in eV per Hydrogen atom for Hydrogen re-ionization.
He_reion_z_centre: 3.5 # Centre of the Gaussian used for Helium re-ionization
He_reion_z_centre: 3.5 # Centre of the Gaussian used for Helium re-ionization
He_reion_z_sigma: 0.5 # Width of the Gaussian used for Helium re-ionization
He_reion_z_sigma: 0.5 # Width of the Gaussian used for Helium re-ionization
He_reion_ev_p_H: 2.0 # Energy injected in eV per Hydrogen atom for Helium re-ionization.
He_reion_ev_p_H: 2.0 # Energy injected in eV per Hydrogen atom for Helium
II
re-ionization.
And the optional parameters are:
And the optional parameters are:
...
...
This diff is collapsed.
Click to expand it.
src/cooling/EAGLE/cooling.c
+
5
−
5
View file @
b6c6b2cb
...
@@ -826,8 +826,8 @@ void cooling_init_backend(struct swift_params *parameter_file,
...
@@ -826,8 +826,8 @@ void cooling_init_backend(struct swift_params *parameter_file,
/* read some parameters */
/* read some parameters */
/* Despite the names, the values of H_reion_heat_cgs and He_reion_heat_cgs
/* Despite the names, the values of H_reion_heat_cgs and He_reion_heat_cgs
that are read in are actually in units of electron volts per proton mass.
*
that are read in are actually in units of electron volts per proton mass.
We later convert to
cgs
units */
*
We later convert to units
just below
*/
parser_get_param_string
(
parameter_file
,
"EAGLECooling:dir_name"
,
parser_get_param_string
(
parameter_file
,
"EAGLECooling:dir_name"
,
cooling
->
cooling_table_path
);
cooling
->
cooling_table_path
);
...
@@ -851,9 +851,9 @@ void cooling_init_backend(struct swift_params *parameter_file,
...
@@ -851,9 +851,9 @@ void cooling_init_backend(struct swift_params *parameter_file,
parameter_file
,
"EAGLECooling:S_over_Si_in_solar"
,
1
.
f
);
parameter_file
,
"EAGLECooling:S_over_Si_in_solar"
,
1
.
f
);
/* Convert H_reion_heat_cgs and He_reion_heat_cgs to cgs
/* Convert H_reion_heat_cgs and He_reion_heat_cgs to cgs
(units used internally by the cooling routines). This is done by
*
(units used internally by the cooling routines). This is done by
multiplying by 'eV/m_H' in internal units, then converting to cgs units.
*
multiplying by 'eV/m_H' in internal units, then converting to cgs units.
Note that the dimensions of these quantities are energy/mass = velocity^2
*
Note that the dimensions of these quantities are energy/mass = velocity^2
*/
*/
cooling
->
H_reion_heat_cgs
*=
cooling
->
H_reion_heat_cgs
*=
...
...
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