8000 Introducing non-thermal EDFs by pedronaethe · Pull Request #9 · black-hole-group/gpumonty · GitHub
[go: up one dir, main page]

Skip to content

Introducing non-thermal EDFs - #9

Open
pedronaethe wants to merge 19 commits into
mainfrom
feature/non-thermal
Open

pedronaethe wants to merge 19 commits into
mainfrom
feature/non-thermal

Conversation

@pedronaethe
Copy link
Copy Markdown
Collaborator

This PR adds support for non-thermal electron distribution functions (EDFs), including κ, power-law, and variable κ models.

To support this, a few parts of the code had to be updated:

  • electron sampling during scattering
  • construction of the hot cross-section tables
  • emissivity calculations

The results agree well with igrmonty. In igrmonty, the electron distribution is sampled numerically, while kmonty uses a semi-analytical approach. Both options are now implemented here and seem to have similar runtimes.

image

One issue that still needs to be understood: when using VARIABLE_KAPPA with GRMHD data, gpumonty shows sharp, likely non-physical bumps in the scattering-dominated part of the spectrum:

image

I haven’t tracked down the cause yet. My current suspicion is the electron sampling, but that’s still under investigation.

Pedro Naethe and others added 18 commits April 3, 2026 00:12
…uns but haven't been tested

- kappa seems much slower than the other distributions
- no tests were performed so far
…phere model. Changed makefile to recompile everything only when necessary
- I have to update the CI to account for this
- Still have to fix the CI
- I have to implement mixed thermal + nonthermal components
- I still have to add dNe/dgamma_y for the non thermal processes
- I still haven't tested it at all against igrmonty.
…is version, there's probably a bug somewhere
@pedronaethe
pedronaethe requested a review from avjoshi21 April 13, 2026 20:42

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0