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
1be7f08b
Commit
1be7f08b
authored
Feb 05, 2019
by
Matthieu Schaller
Browse files
Better choice of bracketing constant in the EAGLE cooling bisection code.
parent
5bf1cecf
Changes
2
Hide whitespace changes
Inline
Side-by-side
examples/CoolingRates/README
View file @
1be7f08b
...
...
@@ -11,8 +11,9 @@ The test may be run by:
python plot_cooling_rates.py
where X is the redshift at which the cooling rates are evaluated and Y
is the base 10 logarithm of the hydrogen number density. Different
metallicities may be specified in testCooling.yml
is the base 10 logarithm of the hydrogen number density expressed in
cgs (i.e. cm^-3). Different metallicities may be specified in
testCooling.yml
Running with -z 3 -d -4 should reproduce the Fig.4 of Wiersma+09 with
the added Compton cooling contribution.
src/cooling/EAGLE/cooling.c
View file @
1be7f08b
...
...
@@ -56,7 +56,7 @@ static const float explicit_tolerance = 0.05;
static
const
float
newton_tolerance
=
1.0e-4
;
static
const
float
bisection_tolerance
=
1.0e-6
;
static
const
float
rounding_tolerance
=
1.0e-4
;
static
const
double
bracket_factor
=
1
.
04
8808848170151
5
;
/* sqrt(1.1) */
static
const
double
bracket_factor
=
1
.
5
;
/* sqrt(1.1) */
static
const
double
newton_log_u_guess_cgs
=
12
.
30103
;
/* log10(2e12) */
/**
...
...
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