Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
a098cb58
Commit
a098cb58
authored
May 23, 2020
by
Matthieu Schaller
Browse files
Add the LoS parameters to the relevant parameter files
parent
a85e2611
Changes
6
Hide whitespace changes
Inline
Side-by-side
examples/EAGLE_ICs/EAGLE_12/eagle_12.yml
View file @
a098cb58
...
...
@@ -91,6 +91,15 @@ InitialConditions:
generate_gas_in_ics
:
1
# Generate gas particles from the DM-only ICs
cleanup_smoothing_lengths
:
1
# Since we generate gas, make use of the (expensive) cleaning-up procedure.
# Parameters of the line-of-sight outputs
LineOfSight
:
basename
:
eagle_los
num_along_x
:
0
num_along_y
:
0
num_along_z
:
100
scale_factor_first
:
0.1
delta_time
:
1.1
# Impose primoridal metallicity
EAGLEChemistry
:
init_abundance_metal
:
0.
...
...
@@ -104,6 +113,7 @@ EAGLEChemistry:
init_abundance_Silicon
:
0.0
init_abundance_Iron
:
0.0
# EAGLE cooling parameters
EAGLECooling
:
dir_name
:
./coolingtables/
H_reion_z
:
7.5
# Planck 2018
...
...
examples/EAGLE_ICs/EAGLE_25/eagle_25.yml
View file @
a098cb58
...
...
@@ -91,6 +91,15 @@ InitialConditions:
generate_gas_in_ics
:
1
# Generate gas particles from the DM-only ICs
cleanup_smoothing_lengths
:
1
# Since we generate gas, make use of the (expensive) cleaning-up procedure.
# Parameters of the line-of-sight outputs
LineOfSight
:
basename
:
eagle_los
num_along_x
:
0
num_along_y
:
0
num_along_z
:
100
scale_factor_first
:
0.1
delta_time
:
1.1
# Impose primoridal metallicity
EAGLEChemistry
:
init_abundance_metal
:
0.
...
...
examples/EAGLE_ICs/EAGLE_50/eagle_50.yml
View file @
a098cb58
...
...
@@ -89,6 +89,15 @@ InitialConditions:
generate_gas_in_ics
:
1
# Generate gas particles from the DM-only ICs
cleanup_smoothing_lengths
:
1
# Since we generate gas, make use of the (expensive) cleaning-up procedure.
# Parameters of the line-of-sight outputs
LineOfSight
:
basename
:
eagle_los
num_along_x
:
0
num_along_y
:
0
num_along_z
:
100
scale_factor_first
:
0.1
delta_time
:
1.1
# Impose primoridal metallicity
EAGLEChemistry
:
init_abundance_metal
:
0.
...
...
examples/EAGLE_ICs/EAGLE_50_low_res/eagle_50.yml
View file @
a098cb58
...
...
@@ -88,6 +88,15 @@ InitialConditions:
generate_gas_in_ics
:
1
# Generate gas particles from the DM-only ICs
cleanup_smoothing_lengths
:
1
# Since we generate gas, make use of the (expensive) cleaning-up procedure.
# Parameters of the line-of-sight outputs
LineOfSight
:
basename
:
eagle_los
num_along_x
:
0
num_along_y
:
0
num_along_z
:
100
scale_factor_first
:
0.1
delta_time
:
1.1
# Impose primoridal metallicity
EAGLEChemistry
:
init_abundance_metal
:
0.
...
...
examples/QuickLymanAlpha/L050N0752/qla_50.yml
View file @
a098cb58
...
...
@@ -62,7 +62,7 @@ Scheduler:
Restarts
:
onexit
:
1
delta_hours
:
2
.0
delta_hours
:
6
.0
# Parameters related to the initial conditions
InitialConditions
:
...
...
@@ -73,6 +73,15 @@ InitialConditions:
generate_gas_in_ics
:
1
# Generate gas particles from the DM-only ICs
cleanup_smoothing_lengths
:
1
# Since we generate gas, make use of the (expensive) cleaning-up procedure.
# Parameters of the line-of-sight outputs
LineOfSight
:
basename
:
los
num_along_x
:
0
num_along_y
:
0
num_along_z
:
100
scale_factor_first
:
0.1
delta_time
:
1.1
# Quick Lyman-alpha cooling (EAGLE with fixed primoridal Z)
QLACooling
:
dir_name
:
./coolingtables/
...
...
src/line_of_sight.c
View file @
a098cb58
...
...
@@ -110,11 +110,11 @@ void los_init(const double dim[3], struct los_props *los_params,
/* How many line of sights in each plane. */
los_params
->
num_along_z
=
parser_get_
opt_
param_int
(
params
,
"LineOfSight:num_along_z"
,
0
);
parser_get_param_int
(
params
,
"LineOfSight:num_along_z"
);
los_params
->
num_along_x
=
parser_get_
opt_
param_int
(
params
,
"LineOfSight:num_along_x"
,
0
);
parser_get_param_int
(
params
,
"LineOfSight:num_along_x"
);
los_params
->
num_along_y
=
parser_get_
opt_
param_int
(
params
,
"LineOfSight:num_along_y"
,
0
);
parser_get_param_int
(
params
,
"LineOfSight:num_along_y"
);
/* Min/max range across x,y and z (simulation axes) where random
* LOS's are allowed. */
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment