Skip to content

[newchem-cpp] Factor out metallicity and electron density calculations from cool1d_multi_g#545

Merged
brittonsmith merged 9 commits into
grackle-project:newchem-cppfrom
mabruzzo:ncc/extended-gas-props
May 21, 2026
Merged

[newchem-cpp] Factor out metallicity and electron density calculations from cool1d_multi_g#545
brittonsmith merged 9 commits into
grackle-project:newchem-cppfrom
mabruzzo:ncc/extended-gas-props

Conversation

@mabruzzo

@mabruzzo mabruzzo commented May 3, 2026

Copy link
Copy Markdown
Collaborator

To be reviewed after #537 has been merged


This PR factors out the logic for computing metallicity and the number density of free electrons from cool1d_multi_g. As part of this PR, I introduced extended_gas_props, which is a function that takes care of all of the prerequisite calculations before we can start calculating rates (these prerequisite calculations have all been factored out of cool1d_multi_g, step-by-step in the current PR sequence)

Note

This should not require a gold-standard update (i.e. once we update the gold-standard from merging #537, all tests should pass)

@brittonsmith brittonsmith merged commit 5f9fdf9 into grackle-project:newchem-cpp May 21, 2026
6 checks passed
@mabruzzo mabruzzo deleted the ncc/extended-gas-props branch June 23, 2026 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants