Skip to content
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

Add support for self-shielding in heating/cooling rates calculation #4843

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

cphyc
Copy link
Member

@cphyc cphyc commented Mar 5, 2024

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 as
boost =exp(-nH/0.01), and the effective density used to look-up the cooling tables is nH/boost.

PR Checklist

  • New features are documented, with docstrings and narrative docs
  • Adds a test for any bugs fixed. Adds tests for new features.

Hydrogen abundances are defined as (1 - Y) × (1 - Z), where Y is the hard-coded primordial Helium fraction and Z is the regular metallicity.

Co-authored-by: Víctor Rufo Pastor <67118212+V-Nathir@users.noreply.github.com>
@cphyc cphyc marked this pull request as ready for review April 11, 2024 15:44
@cphyc cphyc added code frontends Things related to specific frontends refactor improve readability, maintainability, modularity labels Apr 11, 2024
yt/frontends/ramses/data_structures.py Outdated Show resolved Hide resolved
yt/frontends/ramses/data_structures.py Outdated Show resolved Hide resolved
Co-authored-by: Chris Havlin <chris.havlin@gmail.com>
@neutrinoceros
Copy link
Member

@yt-fido test this please

@cphyc cphyc added this to the 4.4.0 milestone Apr 12, 2024
@cphyc
Copy link
Member Author

cphyc commented Apr 18, 2024

Let's hold this a bit more, we probably need testing before this goes in!

@neutrinoceros neutrinoceros marked this pull request as draft April 18, 2024 12:28
@neutrinoceros
Copy link
Member

okay, converting to draft then !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code frontends Things related to specific frontends refactor improve readability, maintainability, modularity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants