-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ENH] Add support for self-shielding in heating/cooling rates calculation for RAMSES #4843
Conversation
1aeb427
to
37490b0
Compare
37490b0
to
fee05ef
Compare
@yt-fido test this please |
Let's hold this a bit more, we probably need testing before this goes in! |
okay, converting to draft then ! |
Update: this is almost ready to review. I will add a test once #4817 is merged in. |
8612f0d
to
05c8ff0
Compare
The error is due to a missing simulation dataset on Jenkins ( |
@yt-fido test this please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
generally LGTM, but left a couple of questions/comments
be6cdae
to
6a6813c
Compare
Hydrogen abundances are defined as (1 - Y) × (1 - Z), where Y is the hard-coded primordial Helium fraction and Z is metallicity. Co-authored-by: Víctor Rufo Pastor <[email protected]>
Co-authored-by: Chris Havlin <[email protected]>
b1e35bd
to
5976261
Compare
@cphyc mind fixing the conflict here once more? then I think we can go ahead and merge this one. |
it was actually a trivial merge, so just did it myself :) |
PR Summary
RAMSES uses some self-shiedling to compute the cooling/heating rates.
This parameter is used in
hydro/cooling_fine.f90
. When self-shielding is activated, a "boost factor" is computed asboost =exp(-nH/0.01), and the effective density used to look-up the cooling tables is
nH/boost
.PR Checklist