Skip to content

fix: erroneous formulae in neu module - #1103

Open
AstroBarker wants to merge 5 commits into
mainfrom
blb/fix-neu
Open

AstroBarker wants to merge 5 commits into
mainfrom
blb/fix-neu

Conversation

@AstroBarker

@AstroBarker AstroBarker commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

An error in the neu module was reported on the mailing list pointing out issues in the expressions for tfermi and its derivative used in the neutrino Bremsstrahlung routines. This impacts the regime chosen to model the cooling.

For example, the plot below shows the old ("Erroneous") and new ("corrected") formulae for a range of densities at ye of 0.5. Notice that the old form can lead to a negative Fermi temperature when $$\rho_6 y_e$$ < 1.0.
tfermi

I have also incorporated an additional correction pointed out by @Debraheem where we old expressions that were corrected in Itoh 1996.

TODO

  • This causes build-time test failures due to changes in the neu module.
  • Update the changelog

@Debraheem Debraheem added bug Something isn't working neu Neutrino loss rates module labels Nov 2, 2026
@Debraheem Debraheem assigned AstroBarker and Debraheem and unassigned Debraheem Nov 2, 2026
@Debraheem

Copy link
Copy Markdown
Member

awesome! Thanks for taking this up. We just need some testing to make sure this doesn't spell doom for anything and a changelog entry to mark these few bugs that have been corrected.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working neu Neutrino loss rates module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants